The root of the Dxc data definition hierarchy. More...
#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DataTypes/DxcData.hpp>
Public Member Functions | |
DxcData (Timestamp timeStamp) | |
Constructor. | |
Timestamp | getTimeStamp () const |
Get message timestamp. | |
void | setTimeStamp (Timestamp timeStamp) |
Set timestamp for DxcData. | |
std::string | getSource () const |
Get message source. | |
void | setSource (std::string source) |
Set message source. | |
virtual DxcData * | clone () const =0 |
Virtual copy constructor. | |
virtual std::ostream & | put (std::ostream &) const =0 |
Prints DxcData in standardized, parseable format. | |
Static Public Member Functions | |
static Timestamp | currentTime () |
Static method to obtain current time. |
The root of the Dxc data definition hierarchy.
Dxc::DxcData::DxcData | ( | Timestamp | timeStamp | ) | [inline] |
Constructor.
timeStamp | - The desired timestamp in milliseconds since 1970-1-1 00:00:00 GMT |
virtual DxcData* Dxc::DxcData::clone | ( | ) | const [pure virtual] |
Virtual copy constructor.
Returns a pointer to a copy of the DxcData. The user is responsible for managing the memory.
Implemented in Dxc::CommandData, Dxc::DiagnosisData, Dxc::ErrorData, Dxc::FaultInjectData, Dxc::ProfilingData, Dxc::RecoveryData, Dxc::ScenarioData, Dxc::ScenarioStatusData, and Dxc::SensorData.
Timestamp DxcData::currentTime | ( | ) | [static] |
Static method to obtain current time.
Timestamp Dxc::DxcData::getTimeStamp | ( | ) | const [inline] |
Get message timestamp.
void Dxc::DxcData::setTimeStamp | ( | Timestamp | timeStamp | ) | [inline] |
Set timestamp for DxcData.
Although timestamps can be freely manipulated by users in local instances of DxcData, they serve only for informative purposes. There is no guarantee that a DxcData message recipient won't overwrite the timestamp with the time of message arrival.
timeStamp | - The desired timestamp in milliseconds since 1970-1-1 00:00:00 GMT |