Defines the types of messages which can be sent. More...
Classes | |
struct | MessageType |
A templated message class A valid message is defined by constructing a MessageType around it. More... | |
struct | MessageType< false, Info > |
A specification for non-header only messages. More... | |
struct | MessageType< true, Info > |
A specification for header only messages. More... | |
Public Types | |
template<typename T > | |
using | HeaderOnly = MessageType< true, T > |
A typedef for header only type. More... | |
template<typename T > | |
using | WithBody = MessageType< false, T > |
A typedef for non-header only type. More... | |
Static Private Member Functions | |
static const char * | set_length (char *const dst, const char *const src, const int n) |
Copies n bytes from src into dst during static initilization If src is less than n bytes, fills the rest of dst with zeros. More... | |
Defines the types of messages which can be sent.
using Message::Msg::HeaderOnly = MessageType<true, T> |
A typedef for header only type.
using Message::Msg::WithBody = MessageType<false, T> |
A typedef for non-header only type.
|
staticprivate |
Copies n bytes from src into dst during static initilization If src is less than n bytes, fills the rest of dst with zeros.
It will return dst so that dst can be assigned to a static initalization