CMS 3D CMS Logo

Public Member Functions | Private Attributes

cond::ClassID< T > Struct Template Reference

#include <ClassID.h>

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

List of all members.

Public Member Functions

 ClassID ()
 ClassID (char const *res)
 ClassID (int i)
virtual std::string resource () const

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.

: ClassInfo(typeid(T)) {}
template<typename T >
cond::ClassID< T >::ClassID ( char const *  res) [inline]

Definition at line 51 of file ClassID.h.

: ClassInfo(typeid(T)), m_res(res) {}
template<typename T >
cond::ClassID< T >::ClassID ( int  i) [inline]

Definition at line 52 of file ClassID.h.

: ClassInfo(typeid(T),i) {}

Member Function Documentation

template<typename T >
virtual std::string cond::ClassID< T >::resource ( ) const [inline, virtual]

Implements cond::ClassInfo.

Definition at line 53 of file ClassID.h.

References cond::ClassID< T >::m_res.

{ return m_res;}

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< T >::resource().