The main TAP namespace. More...
Classes | |
| class | Argument |
| Simple argument class. More... | |
| class | ValueAcceptor |
| Interface class for arguments that accept a value when takes_value() is true. More... | |
| class | ArgumentConstraint |
| Argument constraint class. More... | |
| class | ArgumentSet |
| Simple set of arguments. More... | |
| class | BaseArgument |
| Base argument class, used both by actual Argument classes and constraints (ArgumentConstraint). More... | |
| class | exception |
| Standard exception class for TAP. More... | |
| class | command_error |
| Exception class for errors in the command line (such as unknown arguments or syntax errors). More... | |
| class | unknown_argument |
| Exception class raised when an unknown argument is encountered. More... | |
| class | argument_error |
| Exception class raised when an error occurs verifying a command line argument. More... | |
| class | argument_count_mismatch |
| Exception class raised when an argument is used an incorrect amount of times. More... | |
| class | argument_invalid_value |
| Exception class raised when an argument value is incorrect. More... | |
| class | argument_missing_value |
| Exception class raised when an argument value is missing from the command line. More... | |
| class | argument_no_value |
| Exception class raised when an argument value is given but not expected. More... | |
| class | constraint_error |
| Exception class raised when an argument constraint is not satisfied. More... | |
| class | ArgumentParser |
| Argument parser class. More... | |
| class | TypedArgument |
| Base class for arguments that hold a typed value. More... | |
| class | VariableArgument |
| Concrete implementation of TypedArgument. More... | |
| class | ValueArgument |
| Implementation of TypedArgument that stores a value by itself, based on VariableArgument. More... | |
| class | ConstArgument |
| Specialization of TypedArgument that acts as a switch on the command line, but stores an arbitrary constant in the given variable storage. More... | |
| class | SwitchArgument |
| SwitchArgument is a specialization for TypedArgument, which does not accept values (it switches). More... | |
Typedefs | |
| using | ArgumentCheckFunc = std::function< void(const Argument &)> |
| Function pointer that is used by Argument::check(). More... | |
| template<typename T , bool multi> | |
| using | TypedArgumentCheckFunc = std::function< void(const TypedArgument< T, multi > &, const T &value)> |
| Function pointer that is used by ValueArgument::check() | |
| template<typename T > | |
| using | MultiVariableArgument = VariableArgument< T, true > |
| MultiVariableArgument is a VariableArgument that, when allowed to occur multiple times, stores each given value individually in a vector. More... | |
| template<typename T > | |
| using | MultiValueArgument = ValueArgument< T, true > |
| MultiValueArgument is a ValueArgument that, when allowed to occur multiple times, stores each given value individually in a vector. More... | |
Enumerations | |
| enum | ConstraintType { ConstraintType::None, ConstraintType::One, ConstraintType::Any, ConstraintType::All } |
| Enumeration of possible argument constraints. More... | |
Variables | |
| const char | flagStart [] = "-" |
| Marker for flags (one letter arg) | |
| const char | nameStart [] = "--" |
| Marker for names (>1 letter arg) | |
| const char | nameDelim = '=' |
| Delimiter between name and argument (e.g. More... | |
| const char | skip [] = "--" |
| Define the parsed arg delimiter. More... | |
| using TAP::ArgumentCheckFunc = typedef std::function<void(const Argument&)> |
Function pointer that is used by Argument::check().
| using TAP::MultiValueArgument = typedef ValueArgument<T, true> |
MultiValueArgument is a ValueArgument that, when allowed to occur multiple times, stores each given value individually in a vector.
Alias for ValueArgument with the multi template argument set to true.
| using TAP::MultiVariableArgument = typedef VariableArgument<T, true> |
MultiVariableArgument is a VariableArgument that, when allowed to occur multiple times, stores each given value individually in a vector.
Alias for VariableArgument with the multi template argument set to true.
|
strong |
| ArgumentConstraint<ConstraintType::All> TAP::operator& | ( | Argument & | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::All operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::All> TAP::operator& | ( | ArgumentConstraint< ConstraintType::All > | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::All operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::All> TAP::operator& | ( | Argument & | left, |
| ArgumentConstraint< ConstraintType::All > & | right | ||
| ) |
Joins two arguments together using the ConstraintType::All operator.
| left | Left argument |
| right | Right argument |
| Argument& TAP::operator+ | ( | Argument & | arg | ) |
| Argument&& TAP::operator+ | ( | Argument && | arg | ) |
| ArgumentConstraint<CType>& TAP::operator+ | ( | ArgumentConstraint< CType > & | arg | ) |
| ArgumentConstraint<CType>&& TAP::operator+ | ( | ArgumentConstraint< CType > && | arg | ) |
| Argument& TAP::operator- | ( | Argument & | arg | ) |
| ArgumentConstraint<CType>& TAP::operator- | ( | ArgumentConstraint< CType > & | arg | ) |
| ArgumentConstraint<ConstraintType::One> TAP::operator^ | ( | Argument & | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::One operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::One> TAP::operator^ | ( | ArgumentConstraint< ConstraintType::One > | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::One operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::One> TAP::operator^ | ( | Argument & | left, |
| ArgumentConstraint< ConstraintType::One > & | right | ||
| ) |
Joins two arguments together using the ConstraintType::One operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::Any> TAP::operator| | ( | Argument & | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::Any operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::Any> TAP::operator| | ( | ArgumentConstraint< ConstraintType::Any > | left, |
| Argument & | right | ||
| ) |
Joins two arguments together using the ConstraintType::Any operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::Any> TAP::operator| | ( | Argument & | left, |
| ArgumentConstraint< ConstraintType::Any > & | right | ||
| ) |
Joins two arguments together using the ConstraintType::Any operator.
| left | Left argument |
| right | Right argument |
| ArgumentConstraint<ConstraintType::None> TAP::operator~ | ( | Argument & | arg | ) |
"Negates" an argument using the ConstraintType::None operator.
| arg | Argument to negate |
| ArgumentConstraint<ConstraintType::None> TAP::operator~ | ( | ArgumentConstraint< CType > & | arg | ) |
"Negates" an argument constraint using the ConstraintType::None operator.
| arg | Argument constraint to negate |
| const char TAP::nameDelim = '=' |
Delimiter between name and argument (e.g.
–name=value). Define as '\0' to disable
| const char TAP::skip[] = "--" |
Define the parsed arg delimiter.
Define as "" to disable
1.8.6