adtf_file_library  0.13.1
Public Member Functions | List of all members
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. More...
 
std::shared_ptr< SampleDeserializerbuild (const std::string &id) const
 creates the SampleDeserializer for the given id More...
 

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:

Copyright © CARIAD SE.
Generated on Fri Apr 19 2024 by doxygen 1.9.1
GIT Commit Hash: 82d535f82776c20b12fc60740bdae991b62444a7