#include <command_line_parsing.h>
Inheritance diagram for OptionInt:
Public Methods | |
OptionInt ( String arguments = String("int"), int* storage_for_integer = 0 ) | |
Construct with a name for this option and a location to hold an int. | |
virtual | ~OptionInt () |
virtual IntValueClass* | get_int ( int number = 0 ) |
virtual IntValueClass* | get_int ( ValueClass* value, Option* context ) const |
virtual bool | parse ( TokenStream* tokens, bool &changed, ValueClass* parent = 0 ) |
returns true if the token stream parsing does not fail at this option. More... |
|
Construct with a name for this option and a location to hold an int.
|
|
|
|
returns true if the token stream parsing does not fail at this option.
sets the changed parameter to true if the option parsing generated some state. The changed token is important in loops because OptionSelections can succeed without actually consuming any of the token stream.
Reimplemented from Option.