|
| parameter () |
| makes default parameter, that will match nothing More...
|
|
template<class... Strings> |
| parameter (arg_string str, Strings &&... strs) |
| makes "flag" parameter More...
|
|
| parameter (const arg_list &flaglist) |
| makes "flag" parameter from range of strings More...
|
|
| parameter (match_predicate filter) |
| makes "value" parameter with custom match predicate (= yes/no matcher) More...
|
|
| parameter (match_function filter) |
| makes "value" parameter with custom match function (= partial matcher) More...
|
|
bool | required () const noexcept |
| returns if a parameter is required More...
|
|
parameter & | required (bool yes) noexcept |
| determines if a parameter is required More...
|
|
const doc_string & | label () const |
| returns parameter label; will be used for documentation, if flags are empty More...
|
|
parameter & | label (const doc_string &lbl) |
| sets parameter label; will be used for documentation, if flags are empty More...
|
|
parameter & | label (doc_string &&lbl) |
| sets parameter label; will be used for documentation, if flags are empty More...
|
|
subrange | match (const arg_string &arg) const |
| returns either longest matching prefix of 'arg' in any of the flags or the result of the custom match operation More...
|
|
const arg_list & | flags () const noexcept |
| access range of flag strings More...
|
|
const match_function & | matcher () const noexcept |
| access custom match operation More...
|
|
const doc_string & | doc () const noexcept |
| returns documentation string More...
|
|
parameter & | doc (const doc_string &txt) |
| sets documentations string More...
|
|
parameter & | doc (doc_string &&txt) |
| sets documentations string More...
|
|
bool | repeatable () const noexcept |
| returns if a group/parameter is repeatable More...
|
|
parameter & | repeatable (bool yes) noexcept |
| sets repeatability of group/parameter More...
|
|
bool | blocking () const noexcept |
| returns if a group/parameter is blocking/positional More...
|
|
parameter & | blocking (bool yes) noexcept |
| determines, if a group/parameter is blocking/positional More...
|
|
parameter & | call (arg_action a) |
| adds an action that has an operator() that is callable with a 'const char*' argument More...
|
|
parameter & | call (simple_action a) |
| adds an action that has an operator()() More...
|
|
parameter & | operator() (arg_action a) |
| adds an action that has an operator() that is callable with a 'const char*' argument More...
|
|
parameter & | operator() (simple_action a) |
| adds an action that has an operator()() More...
|
|
parameter & | set (Target &t) |
| adds an action that will set the value of 't' from a 'const char*' arg More...
|
|
parameter & | set (Target &t, Value &&v) |
| adds an action that will set the value of 't' to 'v' More...
|
|
parameter & | if_repeated (simple_action a) |
| adds an action that will be called if a parameter matches an argument for the 2nd, 3rd, 4th, ... More...
|
|
parameter & | if_repeated (index_action a) |
| adds an action that will be called with the argument's index if a parameter matches an argument for the 2nd, 3rd, 4th, ... More...
|
|
parameter & | if_missing (simple_action a) |
| adds an action that will be called if a required parameter is missing More...
|
|
parameter & | if_missing (index_action a) |
| adds an action that will be called if a required parameter is missing; the action will get called with the index of the command line argument where the missing event occured first More...
|
|
parameter & | if_blocked (simple_action a) |
| adds an action that will be called if a parameter was matched, but was unreachable in the current scope More...
|
|
parameter & | if_blocked (index_action a) |
| adds an action that will be called if a parameter was matched, but was unreachable in the current scope; the action will be called with the index of the command line argument where the problem occured More...
|
|
parameter & | if_conflicted (simple_action a) |
| adds an action that will be called if a parameter match was in conflict with a different alternative parameter More...
|
|
parameter & | if_conflicted (index_action a) |
| adds an action that will be called if a parameter match was in conflict with a different alternative paramete; the action will be called with the index of the command line argument where the problem occuredr More...
|
|
parameter & | target (T &&t, Ts &&... ts) |
| adds targets = either objects whose values should be set by command line arguments or actions that should be called in case of a match More...
|
|
parameter & | target (T &&t) |
| adds action that should be called in case of a match More...
|
|
parameter & | target (T &t) |
| adds object whose value should be set by command line arguments More...
|
|
parameter & | target () |
|
void | execute_actions (const arg_string &arg) const |
| executes all argument actions More...
|
|
void | notify_repeated (arg_index idx) const |
| executes repeat actions More...
|
|
void | notify_missing (arg_index idx) const |
| executes missing error actions More...
|
|
void | notify_blocked (arg_index idx) const |
| executes blocked error actions More...
|
|
void | notify_conflict (arg_index idx) const |
| executes conflict error actions More...
|
|
command line parameter that can match one or many arguments.
Definition at line 1828 of file clipp.h.