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

container class for SampleDeserializerFactory More...

#include <adtf_file_reader.h>

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

Public Member Functions

SampleDeserializerFactoriesadd (const std::shared_ptr< SampleDeserializerFactory > &factory)
 Adds a deserializer factory implemention to the container.
 
std::shared_ptr< SampleDeserializerbuild (const std::string &id) const
 creates the SampleDeserializer for the given id
 

Detailed Description

container class for SampleDeserializerFactory

Member Function Documentation

◆ add()

SampleDeserializerFactories & adtf_file::SampleDeserializerFactories::add ( const std::shared_ptr< SampleDeserializerFactory > & factory)
inline

Adds a deserializer factory implemention to the container.

Parameters
factorythe deserializer factory to add
Returns
*this

◆ build()

std::shared_ptr< SampleDeserializer > adtf_file::SampleDeserializerFactories::build ( const std::string & id) const
inline

creates the SampleDeserializer for the given id

Parameters
idthe id identify the deserializer
Returns
std::shared_ptr<SampleDeserializer>
Exceptions
std::runtime_errorif no SampleDeserializerFactory found for given id

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