#include <command_line_parsing.h>
Inheritance diagram for OptionSelection:
Public Methods | |
OptionSelection ( bool allow_empty = false ) | |
OptionSelection ( Option *opt1, bool allow_empty ) | |
OptionSelection ( Option *opt1, Option *opt2, bool allow_empty ) | |
virtual | ~OptionSelection () |
virtual OptionSelection* | add ( Option* ) |
virtual bool | parse ( TokenStream* tokens, bool &changed, ValueClass* parent ) |
returns true if the token stream parsing does not fail at this option. More... | |
virtual void | delete_values () |
virtual void | print ( String& command_line_string, suif_vector<OptionDescription>* descriptions ) const |
Prepare the printable description of this option. More... | |
Protected Attributes | |
bool | _allow_empty |
Options* sf_owned | _selection_list |
It matches with one of the sub-options.
|
|
|
|
|
|
Reimplemented from Option.
|
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.
|
|