00001 #ifndef Alignment_CommonAlignment_AlignableObjectId_h 00002 #define Alignment_CommonAlignment_AlignableObjectId_h 00003 00004 #include "Alignment/CommonAlignment/interface/StructureType.h" 00005 #include <string> 00006 00008 // Obsolete. Use the two free functions below. 00009 class AlignableObjectId 00010 { 00011 00012 public: 00013 AlignableObjectId(){}; 00015 align::StructureType nameToType( const std::string &name ) const; 00016 00018 std::string typeToName( align::StructureType type ) const; 00019 static const char *idToString(align::StructureType type); 00020 static align::StructureType stringToId(const char *); 00021 static align::StructureType stringToId(const std::string &s) { return stringToId(s.c_str()); }; 00022 }; 00023 00024 00025 #endif