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

ost::CommandOptionWithArg Class Reference

Derived class of CommandOption for options that have a value associated with them. More...

#include <cmdoptns.h>

Inheritance diagram for ost::CommandOptionWithArg::

ost::CommandOption ost::CommandOptionArg ost::CommandOptionCollect ost::CommandOptionRest List of all members.

Public Methods

 CommandOptionWithArg (const char *in_option_name, const char *in_option_letter, const char *in_description, OptionType in_option_type, bool in_required=false, CommandOption **pp_next=&DefaultCommandOptionList)
 CommandOptionWithArg contructor. More...

virtual ~CommandOptionWithArg ()
virtual void FoundOption (CommandOptionParse *cop, const char *value=0)
virtual void FoundOption (CommandOptionParse *cop, const char **value, int num)
virtual bool HasValue ()

Public Attributes

const char ** values
 Array of list of values collected for this option. More...

int numvalue
 Number of values in the values array. More...


Detailed Description

Derived class of CommandOption for options that have a value associated with them.

Classes CommandOptionRest and CommandOptionArg derive from this class.


Constructor & Destructor Documentation

ost::CommandOptionWithArg::CommandOptionWithArg const char *   in_option_name,
const char *   in_option_letter,
const char *   in_description,
OptionType   in_option_type,
bool   in_required = false,
CommandOption **   pp_next = & DefaultCommandOptionList
 

CommandOptionWithArg contructor.

Note the default values for required and pp_next.

Parameters:
in_option_name   long option name
in_option_letter   short letter name
in_description   short description of the option
in_option_type   the type of this option
in_required   true if option is required
pp_next   the linked list header

virtual ost::CommandOptionWithArg::~CommandOptionWithArg   [virtual]
 


Member Function Documentation

virtual void ost::CommandOptionWithArg::FoundOption CommandOptionParse *   cop,
const char **   value,
int   num
[virtual]
 

Reimplemented from ost::CommandOption.

virtual void ost::CommandOptionWithArg::FoundOption CommandOptionParse *   cop,
const char *   value = 0
[virtual]
 

Reimplemented from ost::CommandOption.

virtual bool ost::CommandOptionWithArg::HasValue   [virtual]
 

Reimplemented from ost::CommandOption.


Member Data Documentation

int ost::CommandOptionWithArg::numvalue
 

Number of values in the values array.

const char** ost::CommandOptionWithArg::values
 

Array of list of values collected for this option.


The documentation for this class was generated from the following file:
Generated at Thu Jan 24 11:06:03 2002 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001