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

OptionString Class Reference

#include <command_line_parsing.h>

Inheritance diagram for OptionString:

Option List of all members.

Public Methods

 OptionString ( String argument = String( "string" ), String* storage_for_string = 0 )
 Construct with the name of this option and a memory location to hold a string. More...

virtual ~OptionString ()
virtual const StringValueClassget_string ( int number = 0 ) const
virtual StringValueClassget_string ( ValueClass* value, Option* context ) const
virtual bool parse ( TokenStream* tokens, bool &changed, ValueClass* parent = 0)
 Parse a token for an integer. More...


Detailed Description


Constructor & Destructor Documentation

OptionString::OptionString ( String argument = String( "string" ),
String * storage_for_string = 0)

Construct with the name of this option and a memory location to hold a string.

It will match any string token in the command line when parse is called

OptionString::~OptionString () [virtual]


Member Function Documentation

StringValueClass * OptionString::get_string ( ValueClass * value,
Option * context) const [virtual]

const StringValueClass * OptionString::get_string ( int number = 0) const [virtual]

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

Parse a token for an integer.

Returns true if successful, false otherwise.

Reimplemented from Option.


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