CEBL
2.1
|
#include <RandomDataStream.hpp>
Public Member Functions | |
RandomDataStream () | |
~RandomDataStream () | |
![]() | |
EEGDataStream () | |
virtual | ~EEGDataStream () |
void | start () |
void | stop () |
void | setSampleRate (int sr) |
bool | isStarted () |
int | getSamplesAvailable () |
EEGData | read (int samples) |
read and remove n samples from the buffer | |
EEGData | readAll () |
read all samples from the buffer and clear the buffer | |
![]() | |
TimeoutThread () | |
virtual | ~TimeoutThread () |
bool | isHalted () |
double | getTimeoutLength () |
get length of timeout in milliseconds | |
void | setTimeoutLength (double l) |
set length of timeotu in milliseconds |
Additional Inherited Members | |
![]() | |
EEGData | buffer |
int | sample_rate |
![]() | |
boost::thread * | updater_thread |
the thread object | |
bool | is_started |
flag to indicate whether or not the thread is started | |
bool | halt |
flag to order thread to halt on next iteration | |
bool | halted |
flag to indicate whether or not thread has hlated | |
boost::mutex | thread_lock |
mutex to lock the thread | |
double | timeout_length |
how often updater is called |
RandomStream.hpp
An EEG DataStream to generate random data.
Definition at line 31 of file RandomDataStream.hpp.
RandomDataStream::RandomDataStream | ( | ) |
Definition at line 16 of file RandomDataStream.cpp.
RandomDataStream::~RandomDataStream | ( | ) |
Definition at line 18 of file RandomDataStream.cpp.