16 #ifndef __VOM_ENUM_H__ 17 #define __VOM_ENUM_H__ 36 const std::string&
to_string()
const {
return (m_desc); }
62 operator int()
const {
return (m_value); }
67 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.
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.
const std::string & to_string() const
convert to string format for debug purposes