SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
minhton::serializer::SerializerCereal Class Referencefinal

#include <serializer_cereal.h>

Inheritance diagram for minhton::serializer::SerializerCereal:
minhton::ISerializer

Public Member Functions

std::string serialize (const minhton::MessageVariant &msg) override
 
minhton::MessageVariant deserialize (const std::string &str) override
 

Detailed Description

A serializer which converts a MessageVariant into a binary format and vice versa.

Member Function Documentation

◆ deserialize()

minhton::MessageVariant minhton::serializer::SerializerCereal::deserialize ( const std::string &  input)
overridevirtual

Deserialize message

Parameters
inputMessage as string which should be deserialized
Returns
shared_ptr to the deserialized message

Implements minhton::ISerializer.

◆ serialize()

std::string minhton::serializer::SerializerCereal::serialize ( const minhton::MessageVariant &  msg)
overridevirtual

Serialize message

Parameters
msgMessage to be serialized
Returns
Message as serialized string

Implements minhton::ISerializer.


The documentation for this class was generated from the following files: