|
cisst-saw
|
#include <mtsStateData.h>
Public Member Functions | |
| void | Get (const mtsStateIndex &when, value_type &data) const |
| void | GetLatest (value_type &obj) const |
| void | GetHistory (const mtsStateIndex &end, mtsVector< value_type > &data) const |
| void | Set (const value_type &obj) |
| mtsStateData () | |
| ~mtsStateData () | |
| ThisType & | operator= (value_type data) |
| operator value_type & (void) | |
| void | AddToStateTable (mtsStateTable &table, const std::string &dataName="") |
| void | AddReadCommandToInterface (mtsInterfaceProvided *interfaceProvided, const std::string &commandName) |
| void | AddWriteCommandToInterface (mtsInterfaceProvided *interfaceProvided, const std::string &commandName) |
Public Attributes | |
| value_type | Data |
Protected Types | |
| typedef mtsStateData< _elementType > | ThisType |
| typedef mtsStateTable::Accessor< _elementType > | AccessorType |
| typedef _elementType | value_type |
Protected Attributes | |
| mtsStateDataId | Id |
| mtsStateTable * | Table |
| const AccessorType * | Accessor |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
Adds command objects to the specified device interface. Note that there are two command objects: a 'read' command to get the latest value, and a 'qualified read' command to get the value at the specified time. This is normally called from the constructor, and the commandName would typically be GetXXX, where XXX is the name of the state data.
|
inline |
Adds a new element (array) for this state data to the state table. This is normally called from the constructor. The dataName is optional.
|
inline |
Add write command to the specified task interface. Note that this must be a task so that the write is thread-safe.
|
inline |
|
inline |
|
inline |
|
inline |
Cast operator. This allows to assign to an object of the actual type without explicitly referencing the public data member "Data".
|
inline |
Conversion assignment. This allows to assign from an object of the actual type without explicitly referencing the public member "Data".
|
inline |
|
protected |
| value_type mtsStateData< _elementType >::Data |
|
protected |
|
protected |