Go to the documentation of this file.
5 #ifndef IFW_CCF_MPTK_MESSAGE_HPP_
6 #define IFW_CCF_MPTK_MESSAGE_HPP_
10 #include <fmt/format.h>
12 #include <rad/logger.hpp>
27 Message(
const std::string& command,
28 const uint8_t priority,
29 const std::string& sender_thread_id,
30 const std::string& receiver_thread_id,
31 const std::string&
m_data);
42 const std::string&
Command()
const;
54 const std::string&
Data()
const;
60 std::string
ToString(
const uint16_t truncate = 128,
61 const bool compact =
true)
const;
76 void _Copy(
const Message& source);
81 #endif // IFW_CCF_MPTK_MESSAGE_HPP_
Message()
Definition: message.cpp:20
Definition: manager.hpp:15
void SetReceptionTime(const double timestamp)
Set the time of receiving the message from the Message Bus.
Definition: message.cpp:118
const std::string & SenderThreadId() const
Return sender Thread ID.
Definition: message.cpp:79
const std::string & Data() const
Return data (payload) of message.
Definition: message.cpp:89
std::string m_sender_thread_id
Definition: message.hpp:69
uint8_t m_priority
Definition: message.hpp:68
std::string m_data
Definition: message.hpp:71
double m_submission_time
Definition: message.hpp:72
std::string m_receiver_thread_id
Definition: message.hpp:70
std::string m_command
Definition: message.hpp:67
IFW CTD Multiprocessing Toolkit Message class.
Definition: message.hpp:19
Message & operator=(const Message &source)
Definition: message.cpp:46
uint8_t Priority() const
Return priotity of message (message queue priority).
Definition: message.cpp:74
~Message()
Definition: message.cpp:42
const std::string & Command() const
Return name of command in object.
Definition: message.cpp:69
std::string ToString(const uint16_t truncate=128, const bool compact=true) const
Generate ASCII output providing a status of the object.
Definition: message.cpp:94
const std::string & ReceiverThreadId() const
Return receiver Thread ID.
Definition: message.cpp:84
double m_reception_time
Definition: message.hpp:73
const std::string & GetMsgId() const
Return unique ID assigned to the message.
Definition: message.cpp:64
void Clear()
Clear message object.
Definition: message.cpp:123
std::string m_id
Definition: message.hpp:66