|
libGDF
|
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. | |
| Channel * | getChannel (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. | |
A Record is a block of data that contains a short time period of samples from all channels.
| void gdf::Record::fill | ( | ) |
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.
Definition at line 94 of file Record.cpp.