artdaq
v3_06_00
|
The DefaultFragmentTypeTranslator class provides default behavior for experiment-specific customizations in SharedMemoryReader. More...
#include <artdaq/ArtModules/detail/SharedMemoryReader.hh>
Public Member Functions | |
virtual void | SetBasicTypes (std::map< Fragment::type_t, std::string > const &type_map) |
Sets the basic types to be translated. (Should not include "container" types.) | |
virtual void | AddExtraType (artdaq::Fragment::type_t type_id, std::string type_name) |
Adds an additional type to be translated. | |
virtual std::string | GetInstanceNameForType (artdaq::Fragment::type_t type_id, std::string unidentified_instance_name) |
Returns the basic translation for the specified type. Defaults to the specified unidentified_instance_name if no translation can be found. | |
virtual std::set< std::string > | GetAllProductInstanceNames () |
Returns the full set of product instance names which may be present in the data, based on the types that have been specified in the SetBasicTypes() and AddExtraType() methods. This does include "container" types, if the container type mapping is part of the basic types. | |
virtual std::pair< bool, std::string > | GetInstanceNameForFragment (artdaq::Fragment const &fragment, std::string unidentified_instance_name) |
Returns the product instance name for the specified fragment, based on the types that have been specified in the SetBasicTypes() and AddExtraType() methods. This does include the use of "container" types, if the container type mapping is part of the basic types. If no mapping is found, the specified unidentified_instance_name is returned. | |
Protected Attributes | |
std::map< Fragment::type_t, std::string > | type_map_ |
The DefaultFragmentTypeTranslator class provides default behavior for experiment-specific customizations in SharedMemoryReader.
Definition at line 34 of file SharedMemoryReader.hh.