CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cond::ClassID< T > Struct Template Reference

#include <ClassID.h>

Inheritance diagram for cond::ClassID< T >:
cond::ClassInfo

Public Member Functions

 ClassID ()
 
 ClassID (char const *res)
 
virtual std::string resource () const
 
- Public Member Functions inherited from cond::ClassInfo
 ClassInfo (const std::type_info &t)
 
std::string pluginName (std::string const &prefix) const
 
const std::type_info & type () const
 
virtual ~ClassInfo ()
 

Private Attributes

std::string m_res
 

Detailed Description

template<typename T>
struct cond::ClassID< T >

class ClassIDRegistry { public: typedef ClassInfo Elem; std::vector<std::string> sids; std::vector<const char*> csids; ClassIDRegistry(std::string const & pfix);

const char * registerMe(const std::type_info& t);

private: std::string prefix;

};

Definition at line 49 of file ClassID.h.

Constructor & Destructor Documentation

template<typename T>
cond::ClassID< T >::ClassID ( )
inline

Definition at line 50 of file ClassID.h.

50 : ClassInfo(typeid(T)) {}
ClassInfo(const std::type_info &t)
Definition: ClassID.h:21
long double T
template<typename T>
cond::ClassID< T >::ClassID ( char const *  res)
inline

Definition at line 51 of file ClassID.h.

51 : ClassInfo(typeid(T)), m_res(res) {}
ClassInfo(const std::type_info &t)
Definition: ClassID.h:21
std::string m_res
Definition: ClassID.h:55
long double T

Member Function Documentation

template<typename T>
virtual std::string cond::ClassID< T >::resource ( ) const
inlinevirtual

Implements cond::ClassInfo.

Definition at line 53 of file ClassID.h.

53 { return m_res;}
std::string m_res
Definition: ClassID.h:55

Member Data Documentation

template<typename T>
std::string cond::ClassID< T >::m_res
private

Definition at line 55 of file ClassID.h.

Referenced by cond::ClassID< PythonWrapper::Class >::resource().