| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
21 public:
23 using extends::extends;
24
25 // DODBasicMapper(const std::string& type, const std::string& name, const IInterface* parent);
26 ~DODBasicMapper() override = default;
27
29 Gaudi::Utils::TypeNameString algorithmForPath( const std::string& path ) override;
30
32 std::string nodeTypeForPath( const std::string& path ) override;
33
34 private:
35 template <class T>
36 using MapProp = Gaudi::Property<GaudiUtils::HashMap<std::string, T>>;
37
38 MapProp<std::string> m_nodeMap{
39 this, "Nodes", {}, "map of the type of nodes to be associated to paths (path -> data_type)."};
40 MapProp<Gaudi::Utils::TypeNameString> m_algMap{
41 this, "Algorithms", {}, "map of algorithms to be used to produce entries (path -> alg_name)."};
42 };
43
44 #endif // INCIDENTSVC_DODBASICMAPPER_H
DODBasicMapper
Default implementation of a DataOnDemand mapper.
Definition: DODBasicMapper.h:19
GaudiPython.HistoUtils.path
path
Definition: HistoUtils.py:895
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:319
AlgTool.h
DODBasicMapper::m_nodeMap
MapProp< std::string > m_nodeMap
Definition: DODBasicMapper.h:38
HashMap.h
DODBasicMapper::nodeTypeForPath
std::string nodeTypeForPath(const std::string &path) override
Definition: DODBasicMapper.cpp:42
std::string
STL class.
Gaudi::Utils::TypeNameString
Helper class to parse a string of format "type/name".
Definition: TypeNameString.h:12
DODBasicMapper::MapProp
Gaudi::Property< GaudiUtils::HashMap< std::string, T >> MapProp
Definition: DODBasicMapper.h:36
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
DODBasicMapper::~DODBasicMapper
~DODBasicMapper() override=default
DODBasicMapper::algorithmForPath
Gaudi::Utils::TypeNameString algorithmForPath(const std::string &path) override
Definition: DODBasicMapper.cpp:36
DODBasicMapper::m_algMap
MapProp< Gaudi::Utils::TypeNameString > m_algMap
Definition: DODBasicMapper.h:40
IDODNodeMapper.h
IDODAlgMapper.h