Data structure for sensor data messages. More...
#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DataTypes/SensorData.hpp>
Public Types | |
typedef std::map< std::string, const Value * > | SensorValueMap |
Typedef for mapping sensor name to Value. | |
Public Member Functions | |
SensorData (Timestamp timestamp, const SensorValueMap &sensorMap) | |
Constructor. | |
virtual std::ostream & | put (std::ostream &) const |
Prints DxcData in standardized, parseable format. | |
DEPRECATED (SensorValueMap getSensorValueMap() const) | |
Returns the map from sensor to Value. Deprecated, use getSensors() instead. | |
const SensorValueMap * | getSensors () const |
Returns the map from sensor to Value (pointer). | |
virtual SensorData * | clone () const |
Virtual copy constructor. |
Data structure for sensor data messages.
SensorData::SensorData | ( | Timestamp | timestamp, | |
const SensorValueMap & | sensorMap | |||
) |
Constructor.
timestamp | - message timestamp. | |
sensorMap | - map containing data points for each sensor. |
SensorData * SensorData::clone | ( | ) | const [virtual] |
Virtual copy constructor.
Returns a pointer to a copy of the DxcData. The user is responsible for managing the memory.
Implements Dxc::DxcData.
Dxc::SensorData::DEPRECATED | ( | SensorValueMap getSensorValueMap() | const | ) |
Returns the map from sensor to Value. Deprecated, use getSensors() instead.
If the type of datapoint is unknown (it should be made known, for example through an XML system catalog), the Value type for each point must be determined by trial and error (using RTTI or dynamic_cast null tests).