soma-io
5.0.5
|
#include <soma-io/getopt/getopt.h>
Public Member Functions | |
SingleOption (T &value, const std::string &name, const std::string &info, bool optional) | |
virtual | ~SingleOption () |
virtual bool | recognizeName (const std::string &) |
virtual bool | feed (const std::string &) |
virtual void | check () |
std::string | info () const |
template<> | |
bool | recognizeName (const std::string &n) |
template<> | |
bool | feed (const std::string &value) |
Protected Attributes | |
T & | _value |
bool | _optional |
bool | _valueRead |
![]() | |
std::vector< std::string > | _names |
std::string | _info |
Additional Inherited Members | |
![]() | |
OptionBase (const std::string &name, const std::string &info) | |
virtual | ~OptionBase () |
void | addName (const std::string &name) |
const std::string & | name () const |
std::string | names () const |
bool | _nameInList (const std::string &name) const |
|
inline |
|
inlinevirtual |
Reimplemented in carto::SingleOption< BoolOrNumber< NumberType > >.
|
inlinevirtual |
Implements carto::OptionBase.
|
virtual |
Implements carto::OptionBase.
Reimplemented in carto::SingleOption< BoolOrNumber< NumberType > >.
|
virtual |
Implements carto::OptionBase.
|
inlinevirtual |
Implements carto::OptionBase.
|
virtual |
Implements carto::OptionBase.
Reimplemented in carto::SingleOption< BoolOrNumber< NumberType > >.
Definition at line 285 of file getopt.h.
Referenced by carto::SingleOption< BoolOrNumber< NumberType > >::~SingleOption().
|
virtual |
Implements carto::OptionBase.
|
protected |
|
protected |
Definition at line 251 of file getopt.h.
Referenced by carto::SingleOption< BoolOrNumber< NumberType > >::feed(), and carto::SingleOption< BoolOrNumber< NumberType > >::recognizeName().
|
protected |
Definition at line 253 of file getopt.h.
Referenced by carto::SingleOption< BoolOrNumber< NumberType > >::feed(), and carto::SingleOption< BoolOrNumber< NumberType > >::recognizeName().