|
E-MailRelay
|
A structure representing a G::Options command-line option. More...
#include <goption.h>
Collaboration diagram for G::Option:Public Types | |
| enum class | Multiplicity { zero , zero_or_one , one , many , error } |
Public Member Functions | |
| Option (char c, const std::string &name, const std::string &description, const std::string &description_extra, Multiplicity value_multiplicity, const std::string &vd, unsigned int level) | |
| Constructor taking strings. More... | |
| Option (char c, const char *name, const char *description, const char *description_extra, Multiplicity value_multiplicity, const char *vd, unsigned int level, unsigned int main_tag, unsigned int tag_bits) | |
| Constructor taking c-strings and tags. More... | |
| bool | valued () const |
| bool | defaulting () const |
| bool | multivalued () const |
| bool | visible () const |
| bool | visible (std::pair< unsigned, unsigned > level_range, unsigned int main_tag=0U, unsigned int tag_bits=0U) const |
Static Public Member Functions | |
| static Multiplicity | decode (const std::string &) |
| Decodes a multiplicity string into its enumeration. More... | |
Public Attributes | |
| char | c |
| std::string | name |
| std::string | description |
| std::string | description_extra |
| Multiplicity | value_multiplicity |
| bool | hidden |
| std::string | value_description |
| unsigned int | level |
| unsigned int | main_tag |
| unsigned int | tag_bits |
A structure representing a G::Options command-line option.
| G::Option::Option | ( | char | c, |
| const std::string & | name, | ||
| const std::string & | description, | ||
| const std::string & | description_extra, | ||
| Multiplicity | value_multiplicity, | ||
| const std::string & | vd, | ||
| unsigned int | level | ||
| ) |
Constructor taking strings.
Definition at line 24 of file goption.cpp.
| G::Option::Option | ( | char | c, |
| const char * | name, | ||
| const char * | description, | ||
| const char * | description_extra, | ||
| Multiplicity | value_multiplicity, | ||
| const char * | vd, | ||
| unsigned int | level, | ||
| unsigned int | main_tag, | ||
| unsigned int | tag_bits | ||
| ) |
Constructor taking c-strings and tags.
Definition at line 40 of file goption.cpp.
|
static |
Decodes a multiplicity string into its enumeration.
Returns 'error' on error.
Definition at line 57 of file goption.cpp.
|
inline |