1 #ifndef CondCoreDBCommon_ClassID_H
2 #define CondCoreDBCommon_ClassID_H
9 namespace idCategories {
15 char const *
className(
const std::type_info&
t);
23 inline const std::type_info&
type()
const {
return tinfo;}
72 #define PYTHON_ID(type_, plugName_, uname_) \
73 namespace pythonID { struct EDM_PLUGIN_SYM(plugName_, uname_) : public cond::ClassID<type_> { EDM_PLUGIN_SYM(plugName_ , uname_) () : cond::ClassID<type_>(::plugName_){}};} \
74 DEFINE_EDM_PLUGIN(cond::ClassInfoFactory, EDM_PLUGIN_SYM(pythonID::plugName_, uname_) , EDM_PLUGIN_SYM(pythonID::plugName_, uname_)().pluginName(cond::idCategories::pythonIDCategory).c_str() )
77 #endif // CondCoreDBCommon_ClassID_H
std::string const pythonIDCategory("CondPythonID")
const std::type_info & tinfo
virtual std::string resource() const
ClassInfo(const std::type_info &t)
const std::type_info & type() const
virtual std::string resource() const =0
edmplugin::PluginFactory< ClassInfo *() > ClassInfoFactory
std::string pluginName(std::string const &prefix) const
char const * className(const std::type_info &t)