IDS peak genericC++ v1.12.0
Loading...
Searching...
No Matches
peak::common::serialization::ISerializer Class Referenceabstract

Interface for serializing data to an output stream. More...

#include <peak_common/serialization/peak_common_iserializer.hpp>

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

Constructor & Destructor Documentation

◆ ~ISerializer()

virtual peak::common::serialization::ISerializer::~ISerializer ( )
virtualdefault

Member Function Documentation

◆ Write()

virtual void peak::common::serialization::ISerializer::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.

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