abstract type of data value which defines various virtual functions
More...
#include <ProgramOptions.h>
|
std::string | m_category |
| category
|
|
std::string | m_msg |
| helper message
|
|
unsigned char | m_help: 1 |
| whether is help option
|
|
unsigned char | m_required: 1 |
| whether the value is a required option
|
|
unsigned char | m_valid: 1 |
| true if target is set, not default
|
|
unsigned char | m_toggle: 1 |
| true if this option is a toggle value
|
|
abstract type of data value which defines various virtual functions
Definition at line 67 of file ProgramOptions.h.
limbo::programoptions::ValueBase::ValueBase |
( |
std::string const & |
cat, |
|
|
std::string const & |
m |
|
) |
| |
|
inline |
limbo::programoptions::ValueBase::ValueBase |
( |
ValueBase const & |
rhs | ) |
|
|
inline |
copy constructor
- Parameters
-
rhs | the other object to copy |
Definition at line 87 of file ProgramOptions.h.
std::string const& limbo::programoptions::ValueBase::category |
( |
| ) |
const |
|
inline |
void limbo::programoptions::ValueBase::copy |
( |
ValueBase const & |
rhs | ) |
|
|
inlineprotected |
virtual unsigned limbo::programoptions::ValueBase::count_default_chars |
( |
| ) |
const |
|
pure virtual |
bool limbo::programoptions::ValueBase::help |
( |
| ) |
const |
|
inline |
virtual bool limbo::programoptions::ValueBase::help_on |
( |
| ) |
const |
|
pure virtual |
std::string const& limbo::programoptions::ValueBase::msg |
( |
| ) |
const |
|
inline |
assignment
- Parameters
-
rhs | the other object to copy |
- Returns
- reference to current object
Definition at line 93 of file ProgramOptions.h.
virtual bool limbo::programoptions::ValueBase::parse |
( |
const char * |
| ) |
|
|
pure virtual |
virtual void limbo::programoptions::ValueBase::print |
( |
std::ostream & |
os | ) |
const |
|
pure virtual |
void limbo::programoptions::ValueBase::print_category |
( |
std::ostream & |
os | ) |
const |
|
inline |
virtual void limbo::programoptions::ValueBase::print_default |
( |
std::ostream & |
os | ) |
const |
|
pure virtual |
void limbo::programoptions::ValueBase::print_msg |
( |
std::ostream & |
os | ) |
const |
|
inline |
bool limbo::programoptions::ValueBase::required |
( |
| ) |
const |
|
inline |
bool limbo::programoptions::ValueBase::toggle |
( |
| ) |
const |
|
inline |
bool limbo::programoptions::ValueBase::valid |
( |
| ) |
const |
|
inline |
virtual bool limbo::programoptions::ValueBase::valid_default |
( |
| ) |
const |
|
pure virtual |
virtual bool limbo::programoptions::ValueBase::valid_target |
( |
| ) |
const |
|
pure virtual |
virtual bool limbo::programoptions::ValueBase::valid_toggle |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: