libGDF
gdf::Modifier Class Reference

Class for reading, modifying and saving changes to GDF files. More...

#include <Modifier.h>

+ Inheritance diagram for gdf::Modifier:
+ Collaboration diagram for gdf::Modifier:

Public Member Functions

 Modifier ()
 Constructor.
virtual ~Modifier ()
 Destructor.
void open (const std::string filename)
 Opens file for modification.
void close ()
 Close file.
void saveChanges ()
 Write changes to disk.
double getSample (uint16 channel_idx, size_t sample_idx)
 Get a single Sample (physical units)
void setSample (uint16 channel_idx, size_t sample_idx, double value)
 Set a single Sample (physical units)
EventHeadergetEventHeader ()
 get writable reference to event header
const EventHeadergetEventHeader_readonly ()
 get const reference to event header

Detailed Description

Class for reading, modifying and saving changes to GDF files.

It is not possible to change the number of signals or their length. When a sample is set, the entire record is marked for rewriting. If the Event Header is retrieved using the non-const get function, it is marked for rewriting.

Definition at line 35 of file Modifier.h.


Member Function Documentation

double gdf::Modifier::getSample ( uint16  channel_idx,
size_t  sample_idx 
)

Get a single Sample (physical units)

Parameters:
[in]channel_idxchannel index
[in]sample_idxsample index

Reimplemented from gdf::Reader.

Definition at line 115 of file Modifier.cpp.

+ Here is the call graph for this function:

void gdf::Modifier::setSample ( uint16  channel_idx,
size_t  sample_idx,
double  value 
)

Set a single Sample (physical units)

Parameters:
[in]channel_idxchannel index
[in]sample_idxsample index
[in]value

Definition at line 125 of file Modifier.cpp.

+ Here is the call graph for this function:


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