| The Gaudi Framework v32r1 (f65d50dc)

DODBasicMapper.h
Go to the documentation of this file.
1 #ifndef INCIDENTSVC_DODBASICMAPPER_H
2 #define INCIDENTSVC_DODBASICMAPPER_H 1
3 // Include files
4 // from Gaudi
5 #include "GaudiKernel/AlgTool.h"
6 #include "GaudiKernel/HashMap.h"
7
8 // Implemented interfaces
9 #include "GaudiKernel/IDODAlgMapper.h"
10 #include "GaudiKernel/IDODNodeMapper.h"
11
19 class DODBasicMapper : public extends<AlgTool, IDODAlgMapper, IDODNodeMapper> {
20 public:
22 using extends::extends;
23
25 Gaudi::Utils::TypeNameString algorithmForPath( const std::string& path ) override;
26
28 std::string nodeTypeForPath( const std::string& path ) override;
29
30 private:
31 template <class T>
32 using MapProp = Gaudi::Property<GaudiUtils::HashMap<std::string, T>>;
33
34 MapProp<std::string> m_nodeMap{
35 this, "Nodes", {}, "map of the type of nodes to be associated to paths (path -> data_type)."};
36 MapProp<Gaudi::Utils::TypeNameString> m_algMap{
37 this, "Algorithms", {}, "map of algorithms to be used to produce entries (path -> alg_name)."};
38 };
39
40 #endif // INCIDENTSVC_DODBASICMAPPER_H
DODBasicMapper
Default implementation of a DataOnDemand mapper.
Definition: DODBasicMapper.h:19
GaudiPython.HistoUtils.path
path
Definition: HistoUtils.py:932
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
AlgTool.h
DODBasicMapper::MapProp
Gaudi::Property< GaudiUtils::HashMap< std::string, T > > MapProp
Definition: DODBasicMapper.h:32
DODBasicMapper::m_nodeMap
MapProp< std::string > m_nodeMap
Definition: DODBasicMapper.h:34
HashMap.h
DODBasicMapper::nodeTypeForPath
std::string nodeTypeForPath(const std::string &path) override
Definition: DODBasicMapper.cpp:38
std::string
STL class.
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:10
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
DODBasicMapper::algorithmForPath
Gaudi::Utils::TypeNameString algorithmForPath(const std::string &path) override
Definition: DODBasicMapper.cpp:33
DODBasicMapper::m_algMap
MapProp< Gaudi::Utils::TypeNameString > m_algMap
Definition: DODBasicMapper.h:36
IDODNodeMapper.h
IDODAlgMapper.h