CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes | Private Attributes

cond::ClassIDRegistry Class Reference

#include <ClassID.h>

List of all members.

Public Types

typedef ClassInfo Elem

Public Member Functions

 ClassIDRegistry (std::string const &pfix)
const char * registerMe (const std::type_info &t)

Public Attributes

std::vector< const char * > csids
std::vector< std::string > sids

Private Attributes

std::string prefix

Detailed Description

Definition at line 35 of file ClassID.h.


Member Typedef Documentation

Definition at line 37 of file ClassID.h.


Constructor & Destructor Documentation

cond::ClassIDRegistry::ClassIDRegistry ( std::string const &  pfix)

Definition at line 48 of file ClassID.cc.

: prefix(pfix+"/"){}

Member Function Documentation

const char * cond::ClassIDRegistry::registerMe ( const std::type_info &  t)

Definition at line 50 of file ClassID.cc.

References csids, prefix, and sids.

Referenced by cond::ClassInfo::registerMe().

                                                                {
    sids.push_back(prefix+id(t)+"\0");
    csids.push_back(sids.back().data());
    return sids.back().c_str();
  }

Member Data Documentation

std::vector<const char*> cond::ClassIDRegistry::csids

Definition at line 39 of file ClassID.h.

Referenced by registerMe().

std::string cond::ClassIDRegistry::prefix [private]

Definition at line 45 of file ClassID.h.

Referenced by registerMe().

std::vector<std::string> cond::ClassIDRegistry::sids

Definition at line 38 of file ClassID.h.

Referenced by registerMe().