22 const static Enum UNKNOWN;
28 Enum(
int id,
const std::string& label)
29 : m_id(
id), m_label(label) {}
30 Enum() : m_id(UNKNOWN.m_id),
31 m_label(UNKNOWN.m_label) {}
34 int getId()
const {
return m_id; }
35 const char* getLabel()
const {
return m_label.c_str(); }
36 const std::string& getLabelString()
const {
return m_label; }
39 bool operator==(
const Enum& e)
const;
40 bool operator!=(
const Enum& e)
const;
41 bool operator==(
const std::string& label)
const;
42 bool operator!=(
const std::string& label)
const;