|
ARTEMIS
|
#include <MsgLogger.H>
Public Member Functions | |
| std::vector< char > | serialize () const |
| This function returns a byte representation of the struct. More... | |
Static Public Member Functions | |
| static Msg | deserialize (std::vector< char >::const_iterator &it) |
| This function generates a Msg struct from a byte vector. More... | |
| static Msg | deserialize (std::vector< char >::const_iterator &&it) |
| Same as static Msg deserialize(std::vector<char>::const_iterator& it) but accepting an rvalue as an argument. More... | |
Public Attributes | |
| std::string | topic |
| std::string | text |
| Priority | priority |
This struct represents a message, which is composed by a topic, a text and a priority. It also provides methods for serialization and deserialization.
|
static |
Same as static Msg deserialize(std::vector<char>::const_iterator& it) but accepting an rvalue as an argument.
| [in] | it | iterator of a byte array |
|
static |
| std::vector< char > Msg::serialize | ( | ) | const |
This function returns a byte representation of the struct.
| Priority ablastr::utils::msg_logger::Msg::priority |
The priority of the message
| std::string ablastr::utils::msg_logger::Msg::text |
The message text
| std::string ablastr::utils::msg_logger::Msg::topic |
The message topic