libGDF
gdf::GDFHeaderAccess Class Reference

Public Member Functions

 GDFHeaderAccess ()
 Constructor.
virtual ~GDFHeaderAccess ()
 Destructor.
void clear ()
 Reset header to initial state.
void sanitize ()
 perform sanity check on header and normalize header information.
void setRecordDuration (uint32 num, uint32 den)
 set record duration
void enableAutoRecordDuration ()
 enable automatic record duration
const MainHeadergetMainHeader_readonly () const
MainHeadergetMainHeader ()
const SignalHeadergetSignalHeader_readonly (size_t idx) const
SignalHeadergetSignalHeader (size_t idx)
bool createSignal (size_t index, bool throwexc=false)
size_t getFirstFreeSignalIndex ()
size_t getNumSignals () const
void swapSignals (size_t a, size_t b)
void relocateSignal (size_t src, size_t dst)
EventHeadergetEventHeader ()
void setLock (bool b)
 Lock write access to headers.
size_t getNumberOfSamplesInSignal (size_t signal_index) const

Friends

std::ostream & operator<< (std::ostream &out, const GDFHeaderAccess &hdr)
 Header Serializer.
std::istream & operator>> (std::istream &in, GDFHeaderAccess &hdr)
 Header Deserializer.

Detailed Description

Definition at line 31 of file GDFHeaderAccess.h.


Member Function Documentation

perform sanity check on header and normalize header information.

If there are issues with the configuration an exception with detailed information is thrown.

Definition at line 64 of file GDFHeaderAccess.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gdf::GDFHeaderAccess::setRecordDuration ( uint32  num,
uint32  den 
)

set record duration

Normally record duration is automatically set to the smallest possible value. This functionality is overriden when manually setting the record duration.

Definition at line 169 of file GDFHeaderAccess.cpp.


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