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

CommandOptionWithArg Class Reference

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

#include <cmdoptns.h>

Inheritance diagram for CommandOptionWithArg::

CommandOption CommandOptionArg CommandOptionCollect 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

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 CommandOptionWithArg::~CommandOptionWithArg   [virtual]
 


Member Function Documentation

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

Reimplemented from CommandOption.

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

Reimplemented from CommandOption.

virtual bool CommandOptionWithArg::HasValue   [virtual]
 

Reimplemented from CommandOption.


Member Data Documentation

int CommandOptionWithArg::numvalue
 

Number of values in the values array.

const char** CommandOptionWithArg::values
 

Array of list of values collected for this option.


The documentation for this class was generated from the following file:
Generated at Tue Oct 16 11:17:17 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001