The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
DODBasicMapper.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13#include <GaudiKernel/AlgTool.h>
14#include <GaudiKernel/HashMap.h>
17
25class DODBasicMapper : public extends<AlgTool, IDODAlgMapper, IDODNodeMapper> {
26public:
28 using extends::extends;
29
31 Gaudi::Utils::TypeNameString algorithmForPath( const std::string& path ) override;
32
34 std::string nodeTypeForPath( const std::string& path ) override;
35
36private:
37 template <class T>
39
41 this, "Nodes", {}, "map of the type of nodes to be associated to paths (path -> data_type)." };
43 this, "Algorithms", {}, "map of algorithms to be used to produce entries (path -> alg_name)." };
44};
Default implementation of a DataOnDemand mapper.
MapProp< std::string > m_nodeMap
std::string nodeTypeForPath(const std::string &path) override
Gaudi::Property< GaudiUtils::HashMap< std::string, T > > MapProp
Gaudi::Utils::TypeNameString algorithmForPath(const std::string &path) override
MapProp< Gaudi::Utils::TypeNameString > m_algMap
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
Helper class to parse a string of format "type/name".
Base class used to extend a class implementing other interfaces.
Definition extends.h:19