1 #ifndef DQMOFFLINE_TRIGGER_EGHLTCOMCODES 2 #define DQMOFFLINE_TRIGGER_EGHLTCOMCODES 23 int getCode(
const char *descript)
const;
27 void setCode(
const char *descript,
int code);
30 static bool keyComp(
const std::pair<std::string,int>& lhs,
const std::pair<std::string,int>& rhs);
31 void sort(){std::sort(_codeDefs.begin(),_codeDefs.end(),
keyComp);}
void setCode(const char *descript, int code)
int getCode(const char *descript) const
ComCodes(const ComCodes &rhs)
std::vector< std::pair< std::string, int > > _codeDefs
static bool keyComp(const std::pair< std::string, int > &lhs, const std::pair< std::string, int > &rhs)
void getCodeName(int code, std::string &id) const