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

OptionLoop Class Reference

An OptionLoop represents a Kleene closure; i.e. More...

#include <command_line_parsing.h>

Inheritance diagram for OptionLoop:

Option List of all members.

Public Methods

 OptionLoop ( Option* loop_contents, bool allow_empty = true )
virtual ~OptionLoop ()
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...


Detailed Description

An OptionLoop represents a Kleene closure; i.e.

a repeated application of a sub-option.


Constructor & Destructor Documentation

OptionLoop::OptionLoop ( Option * loop_contents,
bool allow_empty = true)

OptionLoop::~OptionLoop () [virtual]


Member Function Documentation

void OptionLoop::delete_values () [virtual]

Reimplemented from Option.

bool OptionLoop::parse ( TokenStream * tokens,
bool & changed,
ValueClass * parent) [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 OptionLoop::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