|
WarpX
|
#include <MsgLogger.H>
Public Member Functions | |
| std::vector< char > | serialize () const |
| This function returns a byte representation of the struct. | |
Static Public Member Functions | |
| static Msg | deserialize (std::vector< char >::const_iterator &it) |
| This function generates a Msg struct from a byte vector. | |
| static Msg | deserialize (std::vector< char >::const_iterator &&rit) |
| Same as static Msg deserialize(std::vector<char>::const_iterator& it) but accepting an rvalue as an argument. | |
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] | rit | iterator of a byte array |
|
static |
|
nodiscard |
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