|
Joutsen.ArgumentsParsing
v0.2.1
|
An operator determining the number of values to consume to create a list of parsed values from the input list. More...
Public Member Functions | |
| abstract bool | Reached (ArgumentsIterator arguments, int numberParsedArguments, int readPosition, IEnumerable< String > argumentPrefixes=null) |
| Checks if the value count has been reached. More... | |
| abstract String | ToString (String name) |
| Creates a string representation of the instance including the argument name. More... | |
| override String | ToString () |
| Creates a string representation of the instance. More... | |
Static Public Member Functions | |
| static ValueCount | Exactly (uint count) |
| Creates a ValueCount that matches exactly count values. More... | |
| static ValueCount | AtLeast (uint count) |
| Creates a ValueCount that matches count values or more. More... | |
| static ValueCount | Remainder () |
| Creates a ValueCount that matches all values that remain in the input list. More... | |
| static ValueCount | AtMost (uint count) |
| Creates a ValueCount that matches count values or less. More... | |
| static ValueCount | Between (uint minCount, uint maxCount) |
| Creates a ValueCount that matches at least minCount and at most maxCount values. More... | |
Protected Member Functions | |
| bool | HasMoreUnparsedArguments (ArgumentsIterator arguments, IEnumerable< String > argumentPrefixes, int skipCount) |
| Checks if the input list contains more values that can be parsed. More... | |
Properties | |
| bool | RequiresValues [get, protected set] |
| Determines if the value count requires at least one value to be consumed. More... | |
An operator determining the number of values to consume to create a list of parsed values from the input list.
|
static |
Creates a ValueCount that matches count values or more.
|
static |
Creates a ValueCount that matches count values or less.
|
static |
Creates a ValueCount that matches at least minCount and at most maxCount values.
|
static |
Creates a ValueCount that matches exactly count values.
|
protected |
Checks if the input list contains more values that can be parsed.
| arguments | the iterator of the input list |
| argumentPrefixes | the possible prefixes of arguments identified by thier names |
| skipCount | the number of values to skip as a look ahead when checking for more values |
|
pure virtual |
Checks if the value count has been reached.
| T | type of the parsed arguments |
| arguments | the iterator of the input list |
| parsedArguments | the values that have already been consumed/parsed |
| argumentPrefixes | the possible prefixes of arguments identified by thier names |
|
static |
Creates a ValueCount that matches all values that remain in the input list.
|
pure virtual |
Creates a string representation of the instance including the argument name.
| override String Joutsen.ArgumentsParsing.ValueCount.ToString | ( | ) |
Creates a string representation of the instance.
|
getprotected set |
Determines if the value count requires at least one value to be consumed.
1.8.13