Logo Search packages:      
Sourcecode: libgdf version File versions  Download package

void gdf::EventHeader::setMode ( uint8  mode )

Set Event Mode.

mode can be 1 or 3 1: (default) Events are stored as position,type pairs 3: Events are stored with position and type, associated to a channel and have a duration or value.

Definition at line 143 of file EventHeader.cpp.

References m_mode1.

Referenced by fromStream(), and gdf::Writer::setEventMode().

        if( m_mode1.size() > 0 || m_mode3.size() > 0 )
            throw exception::illegal_eventmode_change( "EventHeader::setMode called, but header already contains events" );
        m_mode = mode;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index