#include <command_line_parsing.h>
Inheritance diagram for OptionLiteral:
Public Methods | |
OptionLiteral ( String argument, bool* storage_for_is_set = 0, bool default_value = false ) | |
Construct with a name for this option and, a location for a boolean value, and a boolean to set the location if a match is found. | |
OptionLiteral ( String argument, String description, bool* storage_for_is_set = 0, bool default_value = false ) | |
virtual | ~OptionLiteral () |
virtual bool | is_set () const |
Returns true if a successful match is made. More... | |
virtual bool | is_set ( 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... | |
virtual void | print ( String& command_line_string, suif_vector<OptionDescription>* descriptions ) const |
Prepare the printable description of this option. More... |
|
Construct with a name for this option and, a location for a boolean value, and a boolean to set the location if a match is found.
|
|
|
|
Returns true if a successful match is made.
Independent of the value set to storage_for_is_set.
|
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.
|
Prepare the printable description of this option.
Append a printed message to command_line_string, and a description to descriptions.
Reimplemented from Option.