|
Joutsen.ArgumentsParsing v0.3.0+1-ga4c84ed
|
An interface for classes which extract literals from an input list. More...
Public Member Functions | |
| ArgumentReadResult< ValueType > | Read (ArgumentsIterator args, string name, int offset=0) |
| Reads literals from the input. More... | |
Properties | |
| Set< String > | ArgumentPrefixes [set] |
| The prefixes of the arguments used by the parser. More... | |
An interface for classes which extract literals from an input list.
| ArgumentReadResult< ValueType > Joutsen.ArgumentsParsing.ArgumentReader< ValueType >.Read | ( | ArgumentsIterator | args, |
| string | name, | ||
| int | offset = 0 |
||
| ) |
Reads literals from the input.
| args | the input list of literal values represented by an iterator |
| name | the name of the argument whose values to read as found in the input |
| offset | an optional additional offset of literals where to start reading from the input |
Implemented in Joutsen.ArgumentsParsing.ChoiceArgumentReader< ValueType >, Joutsen.ArgumentsParsing.FlagArgumentReader< ValueType >, and Joutsen.ArgumentsParsing.ValueArgumentReader< ValueType >.
|
set |
The prefixes of the arguments used by the parser.
The values are sometimes used to limit the number of values read from the input.
Implemented in Joutsen.ArgumentsParsing.FlagArgumentReader< ValueType >, and Joutsen.ArgumentsParsing.ValueArgumentReader< ValueType >.