libGDF
gdf::Record Class Reference

A Record is a block of data that contains a short time period of samples from all channels. More...

#include <Record.h>

Public Member Functions

 Record (const Record &other)
 Copy Constructor.
virtual ~Record ()
 Destructor.
void clear ()
 clear Record (revert to initial state)
void operator= (const Record &other)
 copy from another Record
void fill ()
 Fills free samples in all channels with defined values.
bool isFull () const
 Returns true if all channels in the record have no free samples.
bool isEmpty () const
 Returns true if all channels in the record are empty.
ChannelgetChannel (const size_t chan_idx)
 Returns reference to channel chan_idx.

Friends

class RecordBuffer
class Reader
std::ostream & operator<< (std::ostream &out, const Record &c)
 Record Serializer.
std::istream & operator>> (std::istream &in, Record &c)
 Record Deserializer.

Detailed Description

A Record is a block of data that contains a short time period of samples from all channels.

Definition at line 32 of file Record.h.


Member Function Documentation

Fills free samples in all channels with defined values.

This function is used to fill unfinished records before writing them to disc. For now we fill with NaNs if supported by the channel's data type and (physical) 0 otherwise.

Todo:
What values should we fill in? NaN would be nice for floating point, but what about other data types?

Definition at line 94 of file Record.cpp.


The documentation for this class was generated from the following files:
 All Data Structures Functions Variables Friends