00001 #ifndef DDL_ElementRegistry_H 00002 #define DDL_ElementRegistry_H 00003 // ------------------------------------------------------------------------- 00004 // Includes 00005 // ------------------------------------------------------------------------- 00006 00007 #include <string> 00008 00009 #include "DDXMLElement.h" 00010 #include "DDXMLElementRegistry.h" 00011 00012 // CLHEP Dependencies 00013 #include "CLHEP/Evaluator/Evaluator.h" 00014 00015 // ------------------------------------------------------------------------- 00016 // Class declaration 00017 // ------------------------------------------------------------------------- 00018 00019 00021 00037 class DDLElementRegistry : public DDXMLElementRegistry 00038 { 00039 00040 public: 00042 virtual ~DDLElementRegistry(); 00043 00045 static DDLElementRegistry* instance(); 00046 00047 static DDXMLElement* getElement(const std::string& name); 00048 00049 protected: 00051 DDLElementRegistry(); 00052 00053 // private: 00054 //static DDLElementRegistry* instance_; 00055 //static std::string defaultElement_; 00056 // std::string defaultElement_; 00057 }; 00058 00059 #endif