CEBL  2.1
Public Member Functions
FileDataStream Class Reference

#include <FileDataStream.hpp>

Public Member Functions

 FileDataStream (CEBLModel *model)
 ~FileDataStream ()
- 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
- 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

FileStream.hpp

Author:
Jeshua Bratman

An EEG DataStream to output data read from a file.

Definition at line 32 of file FileDataStream.hpp.


Constructor & Destructor Documentation

FileDataStream::FileDataStream ( CEBLModel model)

Definition at line 17 of file FileDataStream.cpp.

FileDataStream::~FileDataStream ( )

Definition at line 23 of file FileDataStream.cpp.


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