CEBL  2.1
Public Member Functions
RandomDataStream Class Reference

#include <RandomDataStream.hpp>

Public Member Functions

 RandomDataStream ()
 ~RandomDataStream ()
- Public Member Functions inherited from EEGDataStream
 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
- Public Member Functions inherited from TimeoutThread
 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

- Protected Attributes inherited from EEGDataStream
EEGData buffer
int sample_rate
- Protected Attributes inherited from TimeoutThread
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

Detailed Description

RandomStream.hpp

Author:
Jeshua Bratman

An EEG DataStream to generate random data.

Definition at line 31 of file RandomDataStream.hpp.


Constructor & Destructor Documentation

RandomDataStream::RandomDataStream ( )

Definition at line 16 of file RandomDataStream.cpp.

RandomDataStream::~RandomDataStream ( )

Definition at line 18 of file RandomDataStream.cpp.


The documentation for this class was generated from the following files: