CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/Utilities/General/interface/ClassName.h File Reference

#include <typeinfo>
#include <string>
#include <cstdlib>

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 30 of file ClassName.h.

References mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::EventContentAnalyzer::analyze(), AlignmentStats::analyze(), ora::ContainerSchema::create(), AttachSD::create(), ora::MappingGenerator::createNewDependentMapping(), ora::MappingGenerator::createNewMapping(), ora::ContainerSchema::evolve(), ora::ContainerSchema::extend(), fftjetcms::fftjet_ScaleSet_parser(), ora::MappingDatabase::getBaseMappingForContainer(), edm::RootAutoLibraryLoader::GetClass(), ora::PoolContainerHeaderTable::getContainerData(), ora::OraMappingSchema::getDependentClassesInContainerMapping(), ora::MappingDatabase::getMappingForContainer(), stor::detail::ChainData::hltClassName(), ora::DatabaseUtilitySession::importContainerSchema(), ora::MappingDatabase::insertClassVersion(), ora::ContainerSchema::loadMappingForDependentClass(), main(), ora::ContainerSchema::mappingForDependentClass(), ora::Database::nameForContainer(), ora::MappingRules::newMappingVersionForDependentClass(), ora::ContainerHeaderData::operator=(), ora::MappingTree::override(), ora::ArrayMapping::process(), ora::OraReferenceMapping::process(), ora::BlobMapping::process(), ora::ObjectMapping::process(), ora::CArrayMapping::process(), ora::processBaseClasses(), TkAlCaOverlapTagger::produce(), ora::UniqueRefReader::read(), StaticFFTJetObjectFactory< Factory >::registerType(), ElectronLikelihood::result(), ElectronLikelihood::resultLog(), HIPAlignmentAlgorithm::run(), ora::MappingRules::sequenceNameForDependentClass(), edm::SetCustomStreamer(), ora::MappingDatabase::setMappingVersionForClass(), edm::TypeWithDict::templateArgumentAt(), ora::throwException(), pat::DiObjectProxy::tryGet_(), pat::DiObjectProxy::tryGetOne_(), fwlite::RecordWriter::update(), ora::MappingDatabase::versionOfClass(), edm::wrappedClassName(), and ora::UniqueRefWriter::write().

                                       { 
  return std::string(Demangle(typeid(t).name())());
}
std::string firstNonNumeric ( const char *  sc) [inline]

Definition at line 8 of file ClassName.h.

References pos, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

                                                  {
  std::string s(sc);
  size_t  pos = s.find_first_not_of("0123456789");
  s.erase(0,pos);
  return s;
}