DDS
ver. 3.6
|
Structure holds information of message notification. More...
#include <Intercom.h>
Public Member Functions | |
SMessage () | |
Default constructor. More... | |
std::string | toJSON () |
Converts structure to JSON. More... | |
void | fromJSON (const std::string &_json) |
Init structure from JSON. More... | |
void | fromPT (const boost::property_tree::ptree &_pt) |
Init structure from boost's property tree. More... | |
bool | operator== (const SMessage &_val) const |
Equality operator. More... | |
Public Attributes | |
EMsgSeverity | m_msgSeverity |
Message severity. More... | |
std::string | m_msg |
Message text. More... | |
std::string | m_id |
ID for communication with DDS commander. More... | |
Structure holds information of message notification.
SMessage::SMessage | ( | ) |
Default constructor.
void SMessage::fromJSON | ( | const std::string & | _json | ) |
Init structure from JSON.
[in] | _json | JSON string with structure details. |
void SMessage::fromPT | ( | const boost::property_tree::ptree & | _pt | ) |
Init structure from boost's property tree.
[in] | _pt | Property tree with structure details. |
bool SMessage::operator== | ( | const SMessage & | _val | ) | const |
Equality operator.
std::string SMessage::toJSON | ( | ) |
Converts structure to JSON.
std::string dds::intercom_api::SMessage::m_id |
ID for communication with DDS commander.
std::string dds::intercom_api::SMessage::m_msg |
Message text.
EMsgSeverity dds::intercom_api::SMessage::m_msgSeverity |
Message severity.