| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Member Functions | Private Types | Private Attributes

# DODBasicMapper Class Reference

Default implementation of a DataOnDemand mapper. More...

`#include <IncidentSvc/DODBasicMapper.h>`

Inheritance diagram for DODBasicMapper:
[legend]
Collaboration diagram for DODBasicMapper:
[legend]

List of all members.

## Public Member Functions
| DODBasicMapper (const std::string &type, const std::string &name, const IInterface *parent)
| Standard constructor.
virtual | ~DODBasicMapper ()
| Destructor.
virtual Gaudi::Utils::TypeNameString | algorithmForPath (const std::string &path)
virtual std::string | nodeTypeForPath (const std::string &path)
## Private Types
typedef GaudiUtils::HashMap < std::string, Gaudi::Utils::TypeNameString > | AlgMap
typedef GaudiUtils::HashMap < std::string, std::string > | NodeMap
## Private Attributes
AlgMap | m_algMap
NodeMap | m_nodeMap

## Detailed Description

Default implementation of a DataOnDemand mapper.

Author:
  Marco Clemencic

Date:
  16/01/2012

Definition at line 19 of file DODBasicMapper.h.

## Member Typedef Documentation

typedef GaudiUtils::HashMap<std::string, Gaudi::Utils::TypeNameString> DODBasicMapper::AlgMap`[private]`

Definition at line 33 of file DODBasicMapper.h.

typedef GaudiUtils::HashMap<std::string, std::string> DODBasicMapper::NodeMap`[private]`

Definition at line 34 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 38 of file DODBasicMapper.cpp.

      : base_class(type, name, parent)
    {
      declareProperty("Nodes", m_nodeMap,
                      "Map of the type of nodes to be associated to paths (path -> data_type).");
      declareProperty("Algorithms", m_algMap,
                      "Map of algorithms to be used to produce entries (path -> alg_name).");
    }

DODBasicMapper::~DODBasicMapper | ( | ) | `[virtual]`

Destructor.

Definition at line 50 of file DODBasicMapper.cpp.

    {}

## Member Function Documentation

Gaudi::Utils::TypeNameString DODBasicMapper::algorithmForPath | ( | const std::string & | path ) | `[virtual]`

See also:
  IDODAlgMapper

Definition at line 53 of file DODBasicMapper.cpp.

    {
      AlgMap::iterator alg = m_algMap.find(path);
      return (alg != m_algMap.end()) ? alg->second : "";
    }

std::string DODBasicMapper::nodeTypeForPath | ( | const std::string & | path ) | `[virtual]`

See also:
  IDODNodeMapper

Definition at line 60 of file DODBasicMapper.cpp.

    {
      NodeMap::iterator node = m_nodeMap.find(path);
      return (node != m_nodeMap.end()) ? node->second : "";
    }

## Member Data Documentation

AlgMap DODBasicMapper::m_algMap`[private]`

Definition at line 36 of file DODBasicMapper.h.

NodeMap DODBasicMapper::m_nodeMap`[private]`

Definition at line 37 of file DODBasicMapper.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiCoreSvc/src/IncidentSvc/DODBasicMapper.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiCoreSvc/src/IncidentSvc/DODBasicMapper.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines