16 #ifndef __VOM_ENUM_H__ 17 #define __VOM_ENUM_H__ 36 const std::string&
to_string()
const {
return (m_desc); }
60 m_desc +=
":" + e.m_desc;
83 operator int()
const {
return (m_value); }
88 int value()
const {
return (m_value); }
int value() const
Return the value of the enum - same as integer conversion.
A template base class for all enum types.
enum_base & operator|=(const enum_base &e)
bitwise or assignemnt
bool operator!=(const enum_base &e) const
Comparison operator.
enum_base(int value, const std::string desc)
Constructor of an enum - takes value and string description.
bool operator==(const enum_base &e) const
Comparison operator.
virtual ~enum_base()
Constructor.
enum_base & operator=(const enum_base &e)
Assignment.
The VPP Object Model (VOM) library.
enum_base operator|(const enum_base &e1) const
bitwise or
const std::string & to_string() const
convert to string format for debug purposes