23 #include <boost/algorithm/string.hpp> 30 using boost::to_upper;
39 return (ids.count(t) == 1);
47 return (names.count(c) == 1) ? names[c] :
"null";
57 return (ids.count(t) == 1) ? ids[t] :
throw runtime_error(
"EventId::ToString> not available:" + t);
Id ToType(const string &s)
Converts a string with name to Id.
string ToString(Id c)
Converts a ContactPoolType::Id value to corresponding name.
bool IsType(const string &s)
Check whether string is name of a ContactPoolType::Id.
Namespace for the simulator and related classes.