abstract type of data value which defines various virtual functions
More...
#include <ProgramOptions.h>
|
| | ValueBase (std::string const &cat, std::string const &m) |
| | constructor
|
| | ValueBase (ValueBase const &rhs) |
| | copy constructor
|
| ValueBase & | operator= (ValueBase const &rhs) |
| | assignment
|
| virtual | ~ValueBase () |
| | destructor
|
| virtual bool | parse (const char *)=0 |
| | parse command
|
| virtual void | print (std::ostream &os) const =0 |
| | print target value
|
| virtual void | print_default (std::ostream &os) const =0 |
| | print default value
|
| virtual void | apply_default ()=0 |
| | apply default value
|
| virtual void | apply_toggle ()=0 |
| | apply toggle value
|
| virtual bool | valid_target () const =0 |
| | check whether target value is valid
|
| virtual bool | valid_default () const =0 |
| | check whether default value is valid
|
| virtual bool | valid_toggle () const =0 |
| | check whether toggle value is valid
|
| virtual unsigned | count_default_chars () const =0 |
| | count the length of default value string
|
| virtual bool | help_on () const =0 |
| | check whether help message is turned on
|
| std::string const & | category () const |
| std::string const & | msg () const |
| bool | help () const |
| bool | required () const |
| bool | valid () const |
| bool | toggle () const |
| void | print_category (std::ostream &os) const |
| | print category
|
| void | print_msg (std::ostream &os) const |
| | print message
|
|
| 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.
◆ ValueBase() [1/2]
| limbo::programoptions::ValueBase::ValueBase |
( |
std::string const & | cat, |
|
|
std::string const & | m ) |
|
inline |
◆ ValueBase() [2/2]
| 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.
◆ ~ValueBase()
| virtual limbo::programoptions::ValueBase::~ValueBase |
( |
| ) |
|
|
inlinevirtual |
◆ apply_default()
| virtual void limbo::programoptions::ValueBase::apply_default |
( |
| ) |
|
|
pure virtual |
◆ apply_toggle()
| virtual void limbo::programoptions::ValueBase::apply_toggle |
( |
| ) |
|
|
pure virtual |
◆ category()
| std::string const & limbo::programoptions::ValueBase::category |
( |
| ) |
const |
|
inline |
◆ copy()
| void limbo::programoptions::ValueBase::copy |
( |
ValueBase const & | rhs | ) |
|
|
inlineprotected |
◆ count_default_chars()
| virtual unsigned limbo::programoptions::ValueBase::count_default_chars |
( |
| ) |
const |
|
pure virtual |
◆ help()
| bool limbo::programoptions::ValueBase::help |
( |
| ) |
const |
|
inline |
◆ help_on()
| virtual bool limbo::programoptions::ValueBase::help_on |
( |
| ) |
const |
|
pure virtual |
◆ msg()
| std::string const & limbo::programoptions::ValueBase::msg |
( |
| ) |
const |
|
inline |
◆ operator=()
assignment
- Parameters
-
| rhs | the other object to copy |
- Returns
- reference to current object
Definition at line 93 of file ProgramOptions.h.
◆ parse()
| virtual bool limbo::programoptions::ValueBase::parse |
( |
const char * | | ) |
|
|
pure virtual |
◆ print()
| virtual void limbo::programoptions::ValueBase::print |
( |
std::ostream & | os | ) |
const |
|
pure virtual |
◆ print_category()
| void limbo::programoptions::ValueBase::print_category |
( |
std::ostream & | os | ) |
const |
|
inline |
◆ print_default()
| virtual void limbo::programoptions::ValueBase::print_default |
( |
std::ostream & | os | ) |
const |
|
pure virtual |
◆ print_msg()
| void limbo::programoptions::ValueBase::print_msg |
( |
std::ostream & | os | ) |
const |
|
inline |
◆ required()
| bool limbo::programoptions::ValueBase::required |
( |
| ) |
const |
|
inline |
◆ toggle()
| bool limbo::programoptions::ValueBase::toggle |
( |
| ) |
const |
|
inline |
◆ valid()
| bool limbo::programoptions::ValueBase::valid |
( |
| ) |
const |
|
inline |
◆ valid_default()
| virtual bool limbo::programoptions::ValueBase::valid_default |
( |
| ) |
const |
|
pure virtual |
◆ valid_target()
| virtual bool limbo::programoptions::ValueBase::valid_target |
( |
| ) |
const |
|
pure virtual |
◆ valid_toggle()
| virtual bool limbo::programoptions::ValueBase::valid_toggle |
( |
| ) |
const |
|
pure virtual |
◆ m_category
| std::string limbo::programoptions::ValueBase::m_category |
|
protected |
◆ m_help
| unsigned char limbo::programoptions::ValueBase::m_help |
|
protected |
◆ m_msg
| std::string limbo::programoptions::ValueBase::m_msg |
|
protected |
◆ m_required
| unsigned char limbo::programoptions::ValueBase::m_required |
|
protected |
◆ m_toggle
| unsigned char limbo::programoptions::ValueBase::m_toggle |
|
protected |
◆ m_valid
| unsigned char limbo::programoptions::ValueBase::m_valid |
|
protected |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/limbo-3.5.4-build/limbo-3.5.4/limbo/programoptions/ProgramOptions.h