#include <Message.h>
abstract Message class for interprocess communication via MessageQueue
◆ Message() [1/2]
| lintel::Message::Message |
( |
const std::string & |
receiver, |
|
|
const std::string & |
sender |
|
) |
| |
constructor
- Parameters
-
| receiver | message queue name |
| sender | message queue name |
◆ Message() [2/2]
| lintel::Message::Message |
( |
| ) |
|
|
default |
◆ as()
| T lintel::Message::as |
( |
| ) |
|
|
inline |
convert m_content again the mentioned class
- Template Parameters
-
- Returns
- converted class
◆ assign()
| void lintel::Message::assign |
( |
T |
content | ) |
|
|
inline |
assign an class T to the reserved content space. Warning: class T isn't allowed to have dynamic allocation storage which is currently not checked during compiletime. Also note, that the maximum size is the sizeof m_content array.
- Template Parameters
-
- Parameters
-
| content | object which gets castet to char* and copy to m_content |
◆ receiverOf()
| const char * lintel::Message::receiverOf |
( |
| ) |
const |
- Returns
- receiver message queue
◆ senderOf()
| const char * lintel::Message::senderOf |
( |
| ) |
const |
- Returns
- sender message queue
◆ sendTimeOf()
| std::chrono::time_point< std::chrono::system_clock > lintel::Message::sendTimeOf |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- src/include/lintel/features/base/msg/Message.h