CMS 3D CMS Logo

DDLElementRegistry.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_PARSER_DDL_ELEMENT_REGISTRY_H
2 #define DETECTOR_DESCRIPTION_PARSER_DDL_ELEMENT_REGISTRY_H
3 
5 
6 #include <CLHEP/Evaluator/Evaluator.h>
7 #include <string>
8 #include <map>
9 #include <memory>
10 
11 class DDXMLElement;
12 
14 
24 public:
25  typedef std::map<std::string, std::shared_ptr<DDXMLElement> > RegistryMap;
26 
28 
30 
33 
35 
40  std::shared_ptr<DDXMLElement> getElement(const std::string& name);
41 
43 
44 private:
47 };
48 
49 #endif
ClhepEvaluator.h
DDLElementRegistry
The main class for processing parsed elements.
Definition: DDLElementRegistry.h:23
ClhepEvaluator
Definition: ClhepEvaluator.h:8
DDLElementRegistry::registry_
RegistryMap registry_
Definition: DDLElementRegistry.h:45
DDLElementRegistry::evaluator
ClhepEvaluator & evaluator()
Definition: DDLElementRegistry.h:42
DDLElementRegistry::registerElement
void registerElement(const std::string &name, DDXMLElement *)
This allows other Elements to register themselves with the static registry.
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDLElementRegistry::evaluator_
ClhepEvaluator evaluator_
Definition: DDLElementRegistry.h:46
DDXMLElement
This is a base class for processing XML elements in the DDD.
Definition: DDXMLElement.h:48
DDLElementRegistry::getElement
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
Definition: DDLElementRegistry.cc:42
DDLElementRegistry::~DDLElementRegistry
~DDLElementRegistry()
Definition: DDLElementRegistry.cc:40
DDLElementRegistry::DDLElementRegistry
DDLElementRegistry()
Definition: DDLElementRegistry.cc:38
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDLElementRegistry::RegistryMap
std::map< std::string, std::shared_ptr< DDXMLElement > > RegistryMap
Definition: DDLElementRegistry.h:25