CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

edm::eventsetup::heterocontainer::HCTypeTag Class Reference

#include <HCTypeTag.h>

Inheritance diagram for edm::eventsetup::heterocontainer::HCTypeTag:
edm::TypeIDBase

List of all members.

Public Member Functions

 HCTypeTag ()
char const * name () const
std::type_info const & value () const

Static Public Member Functions

static HCTypeTag findType (char const *iTypeName)
 find a type based on the types name, if not found will return default HCTypeTag
static HCTypeTag findType (std::string const &iTypeName)
template<typename T >
static HCTypeTag make ()

Protected Member Functions

 HCTypeTag (std::type_info const &iValue, char const *iName)
 HCTypeTag (TypeIDBase const &iValue, const char *iName)

Private Attributes

char const * m_name

Detailed Description

Definition at line 38 of file HCTypeTag.h.


Constructor & Destructor Documentation

edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( ) [inline]

Definition at line 44 of file HCTypeTag.h.

Referenced by findType(), and make().

: m_name("") {}
edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( std::type_info const &  iValue,
char const *  iName 
) [inline, protected]

Definition at line 64 of file HCTypeTag.h.

                                                                     :
            TypeIDBase(iValue), m_name(iName) {}
edm::eventsetup::heterocontainer::HCTypeTag::HCTypeTag ( TypeIDBase const &  iValue,
const char *  iName 
) [inline, protected]

Definition at line 67 of file HCTypeTag.h.

                                                                   :
            TypeIDBase(iValue), m_name(iName) {}

Member Function Documentation

HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::findType ( char const *  iTypeName) [static]

find a type based on the types name, if not found will return default HCTypeTag

Definition at line 129 of file HCTypeTag.cc.

References HCTypeTag(), and L1TEmulatorMonitor_cff::p.

Referenced by DTKeyedConfigDBDump::analyze(), L1RCTChannelMaskTester::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::DQMSummaryEventSetupAnalyzer::analyze(), DQMDaqInfo::beginLuminosityBlock(), ESDaqInfoTask::beginLuminosityBlock(), RPCDaqInfo::beginLuminosityBlock(), edmtest::DQMReferenceHistogramRootFileEventSetupAnalyzer::beginRun(), SiStripCertificationInfo::beginRun(), RPCEventSummary::beginRun(), RPCDataCertification::beginRun(), SiStripDcsInfo::beginRun(), RPCDCSSummary::beginRun(), edmtest::DQMXMLFileEventSetupAnalyzer::beginRun(), QualityTester::beginRun(), SiStripOfflineDQM::beginRun(), SiStripDaqInfo::beginRun(), SiStripFedCablingReader::beginRun(), CondDBESSource::CondDBESSource(), edm::eventsetup::determinePreferred(), edm::EventSetupRecordDataGetter::doGet(), SiPixelDcsInfo::endLuminosityBlock(), SiPixelDaqInfo::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), SiPixelDcsInfo::endRun(), SiPixelDaqInfo::endRun(), and findType().

         {
            std::pair<const char*,const std::type_info*> p = typelookup::findType(iTypeName);
            
            if(0 == p.second) {
               return HCTypeTag();
            }
            //need to take name from the 'findType' since that address is guaranteed to be long lived
            return HCTypeTag(*p.second, p.first);
         }         
HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::findType ( std::string const &  iTypeName) [static]

Definition at line 124 of file HCTypeTag.cc.

References findType().

                                                       {
            return HCTypeTag::findType(iTypeName.c_str());
         }
template<typename T >
static HCTypeTag edm::eventsetup::heterocontainer::HCTypeTag::make ( ) [inline, static]

Definition at line 58 of file HCTypeTag.h.

References HCTypeTag().

                                    {
               return HCTypeTag(typelookup::classTypeInfo<T>(),typelookup::className<T>());
            }
char const* edm::eventsetup::heterocontainer::HCTypeTag::name ( void  ) const [inline]
std::type_info const& edm::eventsetup::heterocontainer::HCTypeTag::value ( ) const [inline]

Definition at line 50 of file HCTypeTag.h.

References edm::TypeIDBase::typeInfo().

{ return typeInfo(); }

Member Data Documentation

Definition at line 83 of file HCTypeTag.h.

Referenced by name().