Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

OptionList Class Reference

An OptionList represents a sequence of sub-options. More...

#include <command_line_parsing.h>

Inheritance diagram for OptionList:

Option List of all members.

Public Methods

 OptionList ()
 OptionList (Option *opt1)
 OptionList (Option *opt1, Option *opt2)
virtual ~OptionList ()
virtual OptionList* add ( Option* )
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 delete_values ()
virtual void print ( String& command_line_string, suif_vector<OptionDescription>* descriptions ) const
 Prepare the printable description of this option. More...


Detailed Description

An OptionList represents a sequence of sub-options.

It matches with all the options in the sequence.


Constructor & Destructor Documentation

OptionList::OptionList ()

OptionList::OptionList ( Option * opt1)

OptionList::OptionList ( Option * opt1,
Option * opt2)

OptionList::~OptionList () [virtual]


Member Function Documentation

OptionList * OptionList::add ( Option * option) [virtual]

void OptionList::delete_values () [virtual]

Reimplemented from Option.

bool OptionList::parse ( TokenStream * tokens,
bool & changed,
ValueClass * parent = 0) [virtual]

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.

void OptionList::print ( String & command_line_string,
suif_vector<OptionDescription>* descriptions) const [virtual]

Prepare the printable description of this option.

Append a printed message to command_line_string, and a description to descriptions.

Reimplemented from Option.


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:44:14 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000