SOLA
|
#include <serializer.h>
Public Member Functions | |
virtual std::string | serialize (const minhton::MessageVariant &msg)=0 |
virtual minhton::MessageVariant | deserialize (const std::string &input)=0 |
Interface defintion for a Serializer, based on the MessageVariant. Before sending a message from a node to another node that data needs to be serialized. Before a node can process a received packet, the data needs to be de-serialized. This two methods are taking care of die de-/serialization of MessageVariants.
|
pure virtual |
Deserialize message
input | Message as string which should be deserialized |
Implemented in minhton::serializer::SerializerCereal.
|
pure virtual |
Serialize message
msg | Message to be serialized |
Implemented in minhton::serializer::SerializerCereal.