PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <DatamodelRegistryIOHelpers.h>
Public Types | |
using | MapType = std::vector< std::tuple< std::string, std::string > > |
The "map" type that is used internally. | |
Public Member Functions | |
DatamodelDefinitionHolder (MapType &&definitions) | |
Constructor from an existing collection of names and datamodel definitions. | |
DatamodelDefinitionHolder ()=default | |
~DatamodelDefinitionHolder ()=default | |
DatamodelDefinitionHolder (const DatamodelDefinitionHolder &)=delete | |
DatamodelDefinitionHolder & | operator= (const DatamodelDefinitionHolder &)=delete |
DatamodelDefinitionHolder (DatamodelDefinitionHolder &&)=default | |
DatamodelDefinitionHolder & | operator= (DatamodelDefinitionHolder &&)=default |
const std::string_view | getDatamodelDefinition (const std::string &name) const |
std::vector< std::string > | getAvailableDatamodels () const |
Protected Attributes | |
MapType | m_availEDMDefs {} |
Helper class to hold and provide the datamodel (JSON) definitions for reader classes.
Definition at line 40 of file DatamodelRegistryIOHelpers.h.
using podio::DatamodelDefinitionHolder::MapType = std::vector<std::tuple<std::string, std::string> > |
The "map" type that is used internally.
Definition at line 43 of file DatamodelRegistryIOHelpers.h.
|
inline |
Constructor from an existing collection of names and datamodel definitions.
Definition at line 45 of file DatamodelRegistryIOHelpers.h.
|
default |
|
default |
|
delete |
|
default |
std::vector< std::string > podio::DatamodelDefinitionHolder::getAvailableDatamodels | ( | ) | const |
Get all names of the datamodels that have been read from file
Definition at line 40 of file DatamodelRegistryIOHelpers.cc.
Referenced by podio::ROOTFrameReader::getAvailableDatamodels(), and podio::SIOFrameReader::getAvailableDatamodels().
const std::string_view podio::DatamodelDefinitionHolder::getDatamodelDefinition | ( | const std::string & | name | ) | const |
Get the datamodel definition for the given datamodel name.
Returns an empty model definition if no model is stored under the given name.
name | The name of the datamodel |
Definition at line 29 of file DatamodelRegistryIOHelpers.cc.
Referenced by podio::ROOTFrameReader::getDatamodelDefinition(), and podio::SIOFrameReader::getDatamodelDefinition().
|
delete |
|
default |
|
protected |
Definition at line 71 of file DatamodelRegistryIOHelpers.h.
Referenced by getAvailableDatamodels(), and getDatamodelDefinition().