IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
ISerializer Class Referenceabstract

#include <peak_common/serialization/peak_common_iserializer.hpp>

Inheritance diagram for ISerializer:

Public Member Functions

virtual ~ISerializer ()=default
 
virtual void Write (const IArchive &archive, std::ostream &stream)=0
 Serializes data and writes it to the specified output stream.
 

Detailed Description

Interface for serializing data to an output stream.

This interface defines a contract for writing structured or binary data into an output stream.

Implementations of this interface are responsible for formatting and writing the contents of one or more archives to a given output destination.

Since
ids_peak_common 1.0

Definition at line 36 of file peak_common_iserializer.hpp.

Constructor & Destructor Documentation

◆ ~ISerializer()

virtual ~ISerializer ( )
virtualdefault

Member Function Documentation

◆ Write()

virtual void Write ( const IArchive & archive,
std::ostream & stream )
pure virtual

Serializes data and writes it to the specified output stream.

Parameters
archiveThe archive which will be written to file.
streamThe output stream to which serialized data will be written.

Implemented in Serializer.