Derived class of CommandOption for options that have a value associated with them.
More...
#include <cmdoptns.h>
|
| CommandOptionWithArg (const char *inOptionName, const char *inOptionLetter, const char *inDescription, OptionType inOptionType, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList) |
| CommandOptionWithArg contructor.
|
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 Member Functions inherited from ost::CommandOption |
virtual | ~CommandOption () |
| A virtual destructor just in case.
|
| CommandOption (const char *inOptionName, const char *inOptionLetter, const char *inDescription, OptionType inOptionType, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList) |
| CommandOption contructor.
|
virtual void | parseDone (CommandOptionParse *cop) |
| Once parsing of command line options is complete, this method is called.
|
virtual void | performTask (CommandOptionParse *cop) |
| Once CommandOption objects have completed parsing and there are no errors they may have some specific tasks to perform.
|
Derived class of CommandOption for options that have a value associated with them.
Classes CommandOptionRest and CommandOptionArg derive from this class.
◆ CommandOptionWithArg()
ost::CommandOptionWithArg::CommandOptionWithArg |
( |
const char * | inOptionName, |
|
|
const char * | inOptionLetter, |
|
|
const char * | inDescription, |
|
|
OptionType | inOptionType, |
|
|
bool | inRequired = false, |
|
|
CommandOption ** | ppNext = &defaultCommandOptionList ) |
◆ ~CommandOptionWithArg()
virtual ost::CommandOptionWithArg::~CommandOptionWithArg |
( |
| ) |
|
|
virtual |
◆ foundOption() [1/2]
virtual void ost::CommandOptionWithArg::foundOption |
( |
CommandOptionParse * | cop, |
|
|
const char ** | value, |
|
|
int | num ) |
|
virtual |
◆ foundOption() [2/2]
virtual void ost::CommandOptionWithArg::foundOption |
( |
CommandOptionParse * | cop, |
|
|
const char * | value = 0 ) |
|
virtual |
◆ hasValue()
virtual bool ost::CommandOptionWithArg::hasValue |
( |
| ) |
|
|
virtual |
◆ numValue
int ost::CommandOptionWithArg::numValue |
◆ values
const char** ost::CommandOptionWithArg::values |
Array of list of values collected for this option.
- Examples
- cmdlineopt.cpp.
The documentation for this class was generated from the following file: