Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DataCache Class Reference

#include <WiiMoteDriver.h>

Inheritance diagram for DataCache:

Detailed Description

Definition at line 20 of file WiiMoteDriver.h.

List of all members.

Public Member Functions

 DataCache ()
virtual ~DataCache ()
virtual unsigned int nextTimestamp ()
 Returns the simulator time of the next data segment.
virtual const std::string & nextName ()
 Returns a descriptive name of the next data segment for user feedback (e.g. a filename for logged data).
virtual unsigned int getData (const char *&payload, unsigned int &size, unsigned int &timestamp, std::string &name)
virtual void setDataSourceThread (LoadDataThread *p)
virtual void updateAccMesg (const wiimote_acc_mesg &mesg)
virtual void updateBtnMesg (const wiimote_btn_mesg &mesg)

Protected Member Functions

virtual void doFreeze ()
 user hook for when frozen is set to true
virtual void doUnfreeze ()
 user hook for when frozen is set to false

Protected Attributes

wiimote_acc_mesg acc_mesg
wiimote_btn_mesg btn_mesg
unsigned int number
std::ostringstream state
std::string states [2]
int cstate
ThreadNS::Condition updateCond
ThreadNS::Lock updateLock
short updated

Private Member Functions

 DataCache (const DataCache &)
 do not call
DataCacheoperator= (const DataCache &)
 do not call

Constructor & Destructor Documentation

DataCache (  ) 
virtual ~DataCache (  )  [virtual]

Definition at line 23 of file WiiMoteDriver.h.

DataCache ( const DataCache  )  [private]

do not call


Member Function Documentation

virtual void doFreeze (  )  [protected, virtual]

user hook for when frozen is set to true

Reimplemented from DataSource.

Definition at line 51 of file WiiMoteDriver.h.

virtual void doUnfreeze (  )  [protected, virtual]

user hook for when frozen is set to false

Reimplemented from DataSource.

Definition at line 52 of file WiiMoteDriver.h.

virtual unsigned int getData ( const char *&  payload,
unsigned int &  size,
unsigned int &  timestamp,
std::string &  name 
) [virtual]
virtual const std::string& nextName (  )  [virtual]

Returns a descriptive name of the next data segment for user feedback (e.g. a filename for logged data).

Just use your class name if you don't have a useful name for individual samples.

Implements DataSource.

Definition at line 25 of file WiiMoteDriver.h.

virtual unsigned int nextTimestamp (  )  [virtual]

Returns the simulator time of the next data segment.

Should be in the future if nothing new since last data segment, otherwise should be the timestamp of the most recent data segment (older segments are skipped), return -1U if there is no more data

Implements DataSource.

Definition at line 24 of file WiiMoteDriver.h.

DataCache& operator= ( const DataCache  )  [private]

do not call

virtual void setDataSourceThread ( LoadDataThread *  p  )  [virtual]
virtual void updateAccMesg ( const wiimote_acc_mesg &  mesg  )  [virtual]
virtual void updateBtnMesg ( const wiimote_btn_mesg &  mesg  )  [virtual]

Member Data Documentation

wiimote_acc_mesg acc_mesg [protected]

Definition at line 37 of file WiiMoteDriver.h.

wiimote_btn_mesg btn_mesg [protected]

Definition at line 38 of file WiiMoteDriver.h.

int cstate [protected]

Definition at line 44 of file WiiMoteDriver.h.

unsigned int number [protected]

Definition at line 40 of file WiiMoteDriver.h.

std::ostringstream state [protected]

Definition at line 42 of file WiiMoteDriver.h.

std::string states[2] [protected]

Definition at line 43 of file WiiMoteDriver.h.

ThreadNS::Condition updateCond [protected]

Definition at line 46 of file WiiMoteDriver.h.

short updated [protected]

Definition at line 49 of file WiiMoteDriver.h.

ThreadNS::Lock updateLock [protected]

Definition at line 47 of file WiiMoteDriver.h.


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:40 2016 by Doxygen 1.6.3