DODBasicMapper Class Reference

Default implementation of a DataOnDemand mapper. More...

#include <IncidentSvc/DODBasicMapper.h>

Inheritance diagram for DODBasicMapper:
Collaboration diagram for DODBasicMapper:

Public Member Functions

 DODBasicMapper (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor. More...
 
 ~DODBasicMapper () override=default
 Destructor. More...
 
Gaudi::Utils::TypeNameString algorithmForPath (const std::string &path) override
 
std::string nodeTypeForPath (const std::string &path) override
 
- Public Member Functions inherited from extends< BASE, Interfaces >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
- Public Member Functions inherited from extend_interfaces< Interfaces...>
 ~extend_interfaces () override=default
 Virtual destructor. More...
 
 ~extend_interfaces () override=default
 Virtual destructor. More...
 

Private Attributes

GaudiUtils::HashMap< std::string, Gaudi::Utils::TypeNameStringm_algMap
 
GaudiUtils::HashMap< std::string, std::string > m_nodeMap
 

Additional Inherited Members

- Public Types inherited from extends< BASE, Interfaces >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
- Public Types inherited from extend_interfaces< Interfaces...>
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 

Detailed Description

Default implementation of a DataOnDemand mapper.

Author
Marco Clemencic
Date
16/01/2012

Definition at line 19 of file DODBasicMapper.h.

Constructor & Destructor Documentation

DODBasicMapper::DODBasicMapper ( const std::string &  type,
const std::string &  name,
const IInterface parent 
)

Standard constructor.

Definition at line 36 of file DODBasicMapper.cpp.

37  : base_class(type, name, parent)
38 {
39  declareProperty("Nodes", m_nodeMap,
40  "Map of the type of nodes to be associated to paths (path -> data_type).");
41  declareProperty("Algorithms", m_algMap,
42  "Map of algorithms to be used to produce entries (path -> alg_name).");
43 }
GaudiUtils::HashMap< std::string, std::string > m_nodeMap
extends base_class
Typedef to this class.
Definition: extends.h:14
GaudiUtils::HashMap< std::string, Gaudi::Utils::TypeNameString > m_algMap
string type
Definition: gaudirun.py:151
DODBasicMapper::~DODBasicMapper ( )
overridedefault

Destructor.

Member Function Documentation

Gaudi::Utils::TypeNameString DODBasicMapper::algorithmForPath ( const std::string &  path)
override
See also
IDODAlgMapper

Definition at line 46 of file DODBasicMapper.cpp.

47 {
48  auto alg = m_algMap.find(path);
49  return (alg != m_algMap.end()) ? alg->second : "";
50 }
list path
Definition: __init__.py:15
iterator end()
Definition: Map.h:132
GaudiUtils::HashMap< std::string, Gaudi::Utils::TypeNameString > m_algMap
iterator find(const key_type &key)
Definition: Map.h:149
std::string DODBasicMapper::nodeTypeForPath ( const std::string &  path)
override
See also
IDODNodeMapper

Definition at line 53 of file DODBasicMapper.cpp.

54 {
55  auto node = m_nodeMap.find(path);
56  return (node != m_nodeMap.end()) ? node->second : "";
57 }
GaudiUtils::HashMap< std::string, std::string > m_nodeMap
list path
Definition: __init__.py:15
iterator end()
Definition: Map.h:132
iterator find(const key_type &key)
Definition: Map.h:149

Member Data Documentation

GaudiUtils::HashMap<std::string, Gaudi::Utils::TypeNameString> DODBasicMapper::m_algMap
private

Definition at line 32 of file DODBasicMapper.h.

GaudiUtils::HashMap<std::string, std::string> DODBasicMapper::m_nodeMap
private

Definition at line 33 of file DODBasicMapper.h.


The documentation for this class was generated from the following files: