Allows conversion between type and name, and vice-versa. More...
#include <AlignableObjectId.h>
Public Member Functions | |
AlignableObjectId () | |
align::StructureType | nameToType (const std::string &name) const |
Convert name to type. More... | |
std::string | typeToName (align::StructureType type) const |
Convert type to name. More... | |
Static Public Member Functions | |
static const char * | idToString (align::StructureType type) |
static align::StructureType | stringToId (const char *) |
static align::StructureType | stringToId (const std::string &s) |
Allows conversion between type and name, and vice-versa.
Definition at line 9 of file AlignableObjectId.h.
|
inline |
Definition at line 13 of file AlignableObjectId.h.
|
static |
Definition at line 111 of file AlignableObjectId.cc.
References Exception, and mps_fire::result.
Referenced by AlignmentMonitorGeneric::book(), AlignableBuilder::build(), and Counters::get().
StructureType AlignableObjectId::nameToType | ( | const std::string & | name | ) | const |
Convert name to type.
Definition at line 99 of file AlignableObjectId.cc.
|
static |
Definition at line 124 of file AlignableObjectId.cc.
References Exception, mergeVDriftHistosByStation::name, and mps_fire::result.
Referenced by AlignmentMonitorSurvey::AlignmentMonitorSurvey(), SurveyAlignmentAlgorithm::initialize(), and SurveyInputTextReader::readFile().
|
inlinestatic |
Definition at line 21 of file AlignableObjectId.h.
References stringToId().
Referenced by stringToId().
std::string AlignableObjectId::typeToName | ( | align::StructureType | type | ) | const |
Convert type to name.
Definition at line 106 of file AlignableObjectId.cc.