CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ISerializer Class Referenceabstract

The serializer is responsible from taking a C++ object and make it into stream of bytes from it. More...

#include <CeresEngine/Serialization/Serializer.hpp>

Inheritance diagram for CeresEngine::ISerializer:
CeresEngine::Serializer CeresEngine::BinarySerializer CeresEngine::JSONSerializer

Public Member Functions

virtual ~ISerializer () noexcept=default
 
virtual void serialize (const Box &value)=0
 Serializes the given value into a stream of bytes written to dataStream.
 

Detailed Description

The serializer is responsible from taking a C++ object and make it into stream of bytes from it.

The object can be reconstructed from the written stream of bytes by using a compatible Deserializer.

Constructor & Destructor Documentation

◆ ~ISerializer()

virtual CeresEngine::ISerializer::~ISerializer ( )
virtualdefaultnoexcept

Member Function Documentation

◆ serialize()

virtual void CeresEngine::ISerializer::serialize ( const Box value)
pure virtual

Serializes the given value into a stream of bytes written to dataStream.

The layout, format and details on how the object is serialized is open for the serializer implementation to decide.

Parameters
valueThe value to be written to the data stream.

Implemented in CeresEngine::Serializer.


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