|
libGDF
|
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) | |
| EventHeader * | getEventHeader () |
| get writable reference to event header | |
| const EventHeader * | getEventHeader_readonly () |
| get const reference to event header | |
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.
| double gdf::Modifier::getSample | ( | uint16 | channel_idx, |
| size_t | sample_idx | ||
| ) |
Get a single Sample (physical units)
| [in] | channel_idx | channel index |
| [in] | sample_idx | sample 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)
| [in] | channel_idx | channel index |
| [in] | sample_idx | sample index |
| [in] | value |
Definition at line 125 of file Modifier.cpp.
Here is the call graph for this function: