Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 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:
Inheritance graph
[legend]
Collaboration diagram for DODBasicMapper:
Collaboration graph
[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.

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

Definition at line 36 of file DODBasicMapper.h.

Definition at line 37 of file DODBasicMapper.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:36 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004