OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_enum_value Class Reference

#include <t_enum_value.h>

Inheritance diagram for t_enum_value:
Collaboration diagram for t_enum_value:

Public Member Functions

 t_enum_value (std::string name)
 
 t_enum_value (std::string name, int value)
 
 ~t_enum_value ()
 
const std::string & get_name ()
 
bool has_value ()
 
int get_value ()
 
void set_value (int val)
 
- Public Member Functions inherited from t_doc
 t_doc ()
 
void set_doc (const std::string &doc)
 
const std::string & get_doc () const
 
bool has_doc ()
 

Private Attributes

std::string name_
 
bool has_value_
 
int value_
 

Detailed Description

A constant. These are used inside of enum definitions. Constants are just symbol identifiers that may or may not have an explicit value associated with them.

Definition at line 32 of file t_enum_value.h.

Constructor & Destructor Documentation

t_enum_value::t_enum_value ( std::string  name)
inline

Definition at line 34 of file t_enum_value.h.

t_enum_value::t_enum_value ( std::string  name,
int  value 
)
inline

Definition at line 39 of file t_enum_value.h.

t_enum_value::~t_enum_value ( )
inline

Definition at line 44 of file t_enum_value.h.

Member Function Documentation

const std::string& t_enum_value::get_name ( )
inline

Definition at line 46 of file t_enum_value.h.

int t_enum_value::get_value ( )
inline

Definition at line 54 of file t_enum_value.h.

bool t_enum_value::has_value ( )
inline

Definition at line 50 of file t_enum_value.h.

void t_enum_value::set_value ( int  val)
inline

Definition at line 58 of file t_enum_value.h.

Member Data Documentation

bool t_enum_value::has_value_
private

Definition at line 65 of file t_enum_value.h.

std::string t_enum_value::name_
private

Definition at line 64 of file t_enum_value.h.

int t_enum_value::value_
private

Definition at line 66 of file t_enum_value.h.


The documentation for this class was generated from the following file: