Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

OptionLiteral Class Reference

An OptionLiteral matches a literal string in the command line. More...

Class diagram for OptionLiteral:

Option

List of all members.


Public Members

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 )
virtual void print ( String& command_line_string, suif_vector<OptionDescription>* descriptions ) const

Detailed Description

An OptionLiteral matches a literal string in the command line.


Member Function Documentation

OptionLiteral::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::OptionLiteral (String argument, String description, bool * storage_for_is_set = 0, bool default_value = false)

virtual OptionLiteral::~OptionLiteral () [virtual]

virtual bool OptionLiteral::is_set () const [virtual]

Returns true if a successful match is made.

Independent of the value set to storage_for_is_set.

virtual bool OptionLiteral::is_set (ValueClass * value, Option * context) const [virtual]

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

Reimplemented from Option.

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

Reimplemented from Option.


The documentation for this class was generated from the following files:
Generated at Wed Apr 25 17:35:01 2001 for NCI SUIF by doxygen  written by Dimitri van Heesch, © 1997-1999