ADTF File Library
Loading...
Searching...
No Matches
adtf_file::StreamTypeDeserializers Class Reference

container class for StreamTypeDeserializers More...

#include <adtf_file_reader.h>

Inheritance diagram for adtf_file::StreamTypeDeserializers:
[legend]
Collaboration diagram for adtf_file::StreamTypeDeserializers:
[legend]

Public Member Functions

 StreamTypeDeserializers ()=default
 CTOR.
 
StreamTypeDeserializersadd (const std::shared_ptr< StreamTypeDeserializer > &deserializer)
 Adds a deserializer implemention to the container.
 
void Deserialize (const std::string &id, InputStream &stream, PropertyStreamType &stream_type) const
 deserializes the given stream into a stream_type with the StreamTypeDeserializer with id
 

Detailed Description

container class for StreamTypeDeserializers

Member Function Documentation

◆ add()

StreamTypeDeserializers & adtf_file::StreamTypeDeserializers::add ( const std::shared_ptr< StreamTypeDeserializer > & deserializer)
inline

Adds a deserializer implemention to the container.

Parameters
deserializerthe deserializer to add
Remarks
the deserializer id is retrieved with StreamTypeDeserializer::getId and must be unique.
Returns
*this

◆ Deserialize()

void adtf_file::StreamTypeDeserializers::Deserialize ( const std::string & id,
InputStream & stream,
PropertyStreamType & stream_type ) const
inline

deserializes the given stream into a stream_type with the StreamTypeDeserializer with id

Parameters
idthe id of the deserializer
streamthe stream to deserialize
stream_typethe stream type to create

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