Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DODBasicMapper.cpp
Go to the documentation of this file.
1 // Include files
2 
3 #include "GaudiKernel/HashMap.h"
4 #include "GaudiKernel/Parsers.h"
5 // Local implementation of parsers from HashMap
6 namespace Gaudi {
7  namespace Parsers {
10  template <typename K, typename V>
13  StatusCode sc = parse(tmp, input);
14  if (sc.isSuccess()) {
15  result.clear();
16  result.insert(tmp.begin(), tmp.end());
17  }
18  return sc;
19  }
20  }
21 }
22 
23 // From Gaudi
25 // local
26 #include "DODBasicMapper.h"
27 
28 // ----------------------------------------------------------------------------
29 // Implementation file for class: DODBasicMapper
30 //
31 // 16/01/2012: Marco Clemencic
32 // ----------------------------------------------------------------------------
34 
35 // ============================================================================
36 // Standard constructor, initializes variables
37 // ============================================================================
38 DODBasicMapper::DODBasicMapper(const std::string& type, const std::string& name, const IInterface* parent)
39  : base_class(type, name, parent)
40 {
41  declareProperty("Nodes", m_nodeMap,
42  "Map of the type of nodes to be associated to paths (path -> data_type).");
43  declareProperty("Algorithms", m_algMap,
44  "Map of algorithms to be used to produce entries (path -> alg_name).");
45 }
46 
47 // ============================================================================
48 // Destructor
49 // ============================================================================
51 
52 
53 Gaudi::Utils::TypeNameString DODBasicMapper::algorithmForPath(const std::string & path)
54 {
55  AlgMap::iterator alg = m_algMap.find(path);
56  return (alg != m_algMap.end()) ? alg->second : "";
57 }
58 
59 
61 {
62  NodeMap::iterator node = m_nodeMap.find(path);
63  return (node != m_nodeMap.end()) ? node->second : "";
64 }
65 
66 
67 
68 // ============================================================================

Generated at Wed Jan 30 2013 17:13:38 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004