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