Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SensorStateAccessor Class Reference

Not a real DataSource, but an interface for the HAL command line to support set/print of values. More...

#include <SensorStateAccessor.h>

Inheritance diagram for SensorStateAccessor:

Detailed Description

Not a real DataSource, but an interface for the HAL command line to support set/print of values.

Definition at line 8 of file SensorStateAccessor.h.

List of all members.

Public Member Functions

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 bool advance ()
 Called when the simulator is stepping while paused or advancing a frozen data source, return true if successful, or false if no more data is available.
bool set (const std::string &key, const std::string &value) const
bool print (const std::string &key) const

Member Function Documentation

virtual bool advance (  )  [virtual]

Called when the simulator is stepping while paused or advancing a frozen data source, return true if successful, or false if no more data is available.

Implements DataSource.

Definition at line 12 of file SensorStateAccessor.h.

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 11 of file SensorStateAccessor.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 10 of file SensorStateAccessor.h.

bool print ( const std::string &  key  )  const

Definition at line 59 of file SensorStateAccessor.cc.

bool set ( const std::string &  key,
const std::string &  value 
) const

Definition at line 13 of file SensorStateAccessor.cc.


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

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