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); }
bool operator!=(const enum_base &e) const
Comparison operator.
A template base class for all enum types.
int value() const
Return the value of the enum - same as integer conversion.
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.
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.