CMS 3D CMS Logo

ClassName.h File Reference

#include <typeinfo>
#include <string>

Go to the source code of this file.

Classes

class  ClassName< T >
class  Demangle

Functions

template<class T>
std::string className (const T &t)
std::string firstNonNumeric (const char *sc)


Function Documentation

template<class T>
std::string className ( const T &  t  )  [inline]

Definition at line 29 of file ClassName.h.

References name.

Referenced by EventContentAnalyzer::analyze(), AttachSD::create(), edm::eventsetup::NoDataException< T >::dataTypeMessage(), L1TriggerConfigOnlineProd::getSubsystemKey(), HCAL_HLX::ROOTFileBase::MakeBranch(), edm::eventsetup::NoRecordException< T >::NoRecordException(), Thread::operator()(), printObject(), edm::registerTypes(), ElectronLikelihood::result(), TSqueueConsumer< X, C >::run(), edm::SetCustomStreamer(), edm::SetTransientStreamer(), edm::eventsetup::MakeDataException< RecordT, DataT >::standardMessage(), pat::DiObjectProxy::tryGet_(), and pat::DiObjectProxy::tryGetOne_().

00029                                        { 
00030   return std::string(Demangle(typeid(t).name())());
00031 }

std::string firstNonNumeric ( const char *  sc  )  [inline]

Definition at line 7 of file ClassName.h.

References s.

00007                                                   {
00008   std::string s(sc);
00009   size_t  pos = s.find_first_not_of("0123456789");
00010   s.erase(0,pos);
00011   return s;
00012 }


Generated on Tue Jun 9 17:56:01 2009 for CMSSW by  doxygen 1.5.4