|
CEBL
2.1
|
#include <DataSource.hpp>
Public Member Functions | |
| DataSource (CEBLModel *model) | |
| ~DataSource () | |
| EEGData | read (int samples) |
| reads and returns n samples from data stream | |
| EEGData | readAll () |
| reads and returns all samples from data stream | |
| int | samplesAvailable () |
| std::vector< string > | getSources () |
| int | getSource () |
| bool | sourceReady () |
| bool | isStarted () |
| bool | getStoreFlag () |
| int | getStoreNumSamples () |
| EEGData | getStoredData () |
| void | clearStoredData () |
| void | setStoreFlag (bool flag) |
| void | setSource (int source) |
| void | setSource (string source) |
| void | clearSamples () |
| void | start () |
| void | stop () |
Friends | |
| class | SessionManager |
Class to deal with data recording and output.
Definition at line 39 of file DataSource.hpp.
| DataSource::DataSource | ( | CEBLModel * | model | ) |
Definition at line 11 of file DataSource.cpp.
References EEGData::clear().
| DataSource::~DataSource | ( | ) |
Definition at line 26 of file DataSource.cpp.
| void DataSource::clearSamples | ( | ) |
Definition at line 140 of file DataSource.cpp.
References EEGDataStream::readAll().
Referenced by CEBLModel::dataClearSamples().
| void DataSource::clearStoredData | ( | ) |
Definition at line 112 of file DataSource.cpp.
References EEGData::clear().
Referenced by CEBLModel::dataClearStoredData().
|
inline |
Definition at line 80 of file DataSource.hpp.
Referenced by CEBLModel::dataGetSource().
|
inline |
Definition at line 79 of file DataSource.hpp.
Referenced by CEBLModel::dataGetSources().
| EEGData DataSource::getStoredData | ( | ) |
Definition at line 104 of file DataSource.cpp.
Referenced by CEBLModel::dataGetStoredData().
| bool DataSource::getStoreFlag | ( | ) |
Definition at line 95 of file DataSource.cpp.
Referenced by CEBLModel::dataGetStoreFlag().
| int DataSource::getStoreNumSamples | ( | ) |
Definition at line 100 of file DataSource.cpp.
References EEGData::numSamples().
Referenced by CEBLModel::dataGetStoreNumSamples().
| bool DataSource::isStarted | ( | ) |
Definition at line 87 of file DataSource.cpp.
References EEGDataStream::isStarted().
Referenced by CEBLModel::dataIsStarted().
| EEGData DataSource::read | ( | int | samples | ) |
reads and returns n samples from data stream
Definition at line 41 of file DataSource.cpp.
References EEGData::append(), EEGDataStream::read(), and sourceReady().
| EEGData DataSource::readAll | ( | ) |
reads and returns all samples from data stream
Definition at line 58 of file DataSource.cpp.
References EEGData::append(), EEGDataStream::readAll(), and sourceReady().
Referenced by CEBLModel::dataRead(), CEBLModel::dataReadAll(), CEBLModel::dataReadAllRaw(), and CEBLModel::dataReadRaw().
| int DataSource::samplesAvailable | ( | ) |
Definition at line 72 of file DataSource.cpp.
References EEGDataStream::getSamplesAvailable(), and sourceReady().
Referenced by CEBLModel::dataSamplesAvailable().
| void DataSource::setSource | ( | int | source | ) |
Definition at line 122 of file DataSource.cpp.
Referenced by CEBLModel::dataSetSource().
| void DataSource::setSource | ( | string | source | ) |
Definition at line 127 of file DataSource.cpp.
| void DataSource::setStoreFlag | ( | bool | flag | ) |
Definition at line 117 of file DataSource.cpp.
Referenced by CEBLModel::dataSetStoreFlag().
| bool DataSource::sourceReady | ( | ) |
Definition at line 79 of file DataSource.cpp.
References EEGDataStream::isStarted().
Referenced by CEBLModel::dataSourceReady(), read(), readAll(), and samplesAvailable().
| void DataSource::start | ( | ) |
Definition at line 173 of file DataSource.cpp.
References EEGDataStream::start().
Referenced by CEBLModel::dataStart().
| void DataSource::stop | ( | ) |
Definition at line 184 of file DataSource.cpp.
References EEGDataStream::stop().
Referenced by CEBLModel::dataStop().
|
friend |
Definition at line 43 of file DataSource.hpp.
1.8.1.1