Dxc::SensorData Class Reference

Data structure for sensor data messages. More...

#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DataTypes/SensorData.hpp>

Inheritance diagram for Dxc::SensorData:
Dxc::DxcData

List of all members.

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 SensorValueMapgetSensors () const
 Returns the map from sensor to Value (pointer).
virtual SensorDataclone () const
 Virtual copy constructor.

Detailed Description

Data structure for sensor data messages.


Constructor & Destructor Documentation

SensorData::SensorData ( Timestamp  timestamp,
const SensorValueMap sensorMap 
)

Constructor.

Parameters:
timestamp - message timestamp.
sensorMap - map containing data points for each sensor.

Member Function Documentation

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).


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

Generated on 22 Feb 2013 for dxcApi by  doxygen 1.6.1