IFW CTD Multiprocessing Toolkit Message class.
More...
#include <message.hpp>
|
| Message () |
|
| Message (const Message &source) |
|
| Message (const std::string &command, const MsgPrio priority, const std::string &sender_thread_name, const std::string &receiver_thread_name, const std::string &m_data) |
| Constructor setting information about the message (to be send).
|
|
| ~Message () |
|
void | Clear () |
| Clear message object.
|
|
const std::string & | GetMsgId () const |
| Return unique ID assigned to the message.
|
|
const std::string & | Command () const |
| Return name of command in object.
|
|
MsgPrio | Priority () const |
| Return priotity of message (message queue priority).
|
|
const std::string & | SenderThreadId () const |
| Return sender Thread ID.
|
|
const std::string & | ReceiverThreadId () const |
| Return receiver Thread ID.
|
|
const std::string & | Data () const |
| Return data (payload) of message.
|
|
void | SetReceptionTime (const double timestamp) |
| Set the time of receiving the message from the Message Bus.
|
|
std::string | ToString (const uint16_t truncate=128, const bool compact=true) const |
| Generate ASCII output providing a status of the object.
|
|
Message & | operator= (const Message &source) |
|
IFW CTD Multiprocessing Toolkit Message class.
The MPTK Message class is used to transfer information between MPTK Threads.
◆ Message() [1/3]
ifw::ccf::mptk::Message::Message |
( |
| ) |
|
◆ Message() [2/3]
ifw::ccf::mptk::Message::Message |
( |
const Message & | source | ) |
|
◆ Message() [3/3]
ifw::ccf::mptk::Message::Message |
( |
const std::string & | command, |
|
|
const MsgPrio | priority, |
|
|
const std::string & | sender_thread_name, |
|
|
const std::string & | receiver_thread_name, |
|
|
const std::string & | m_data ) |
Constructor setting information about the message (to be send).
◆ ~Message()
ifw::ccf::mptk::Message::~Message |
( |
| ) |
|
◆ Clear()
void ifw::ccf::mptk::Message::Clear |
( |
| ) |
|
◆ Command()
const std::string & ifw::ccf::mptk::Message::Command |
( |
| ) |
const |
Return name of command in object.
◆ Data()
const std::string & ifw::ccf::mptk::Message::Data |
( |
| ) |
const |
Return data (payload) of message.
◆ GetMsgId()
const std::string & ifw::ccf::mptk::Message::GetMsgId |
( |
| ) |
const |
Return unique ID assigned to the message.
◆ operator=()
Message & ifw::ccf::mptk::Message::operator= |
( |
const Message & | source | ) |
|
◆ Priority()
MsgPrio ifw::ccf::mptk::Message::Priority |
( |
| ) |
const |
Return priotity of message (message queue priority).
◆ ReceiverThreadId()
const std::string & ifw::ccf::mptk::Message::ReceiverThreadId |
( |
| ) |
const |
◆ SenderThreadId()
const std::string & ifw::ccf::mptk::Message::SenderThreadId |
( |
| ) |
const |
◆ SetReceptionTime()
void ifw::ccf::mptk::Message::SetReceptionTime |
( |
const double | timestamp | ) |
|
Set the time of receiving the message from the Message Bus.
◆ ToString()
std::string ifw::ccf::mptk::Message::ToString |
( |
const uint16_t | truncate = 128, |
|
|
const bool | compact = true ) const |
Generate ASCII output providing a status of the object.
◆ m_command
std::string ifw::ccf::mptk::Message::m_command |
|
protected |
◆ m_data
std::string ifw::ccf::mptk::Message::m_data |
|
protected |
◆ m_id
std::string ifw::ccf::mptk::Message::m_id |
|
protected |
◆ m_priority
MsgPrio ifw::ccf::mptk::Message::m_priority |
|
protected |
◆ m_receiver_thread_name
std::string ifw::ccf::mptk::Message::m_receiver_thread_name |
|
protected |
◆ m_reception_time
double ifw::ccf::mptk::Message::m_reception_time |
|
protected |
◆ m_sender_thread_name
std::string ifw::ccf::mptk::Message::m_sender_thread_name |
|
protected |
◆ m_submission_time
double ifw::ccf::mptk::Message::m_submission_time |
|
protected |
The documentation for this class was generated from the following files: