GNU CommonC++
|
CommandOption type for flags. More...
#include <cmdoptns.h>
Public Member Functions | |
CommandOptionNoArg (const char *inOptionName, const char *inOptionLetter, const char *inDescription, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList) | |
CommandOptionArg contructor. | |
virtual void | foundOption (CommandOptionParse *cop, const char *value=0) |
CommandOptionNoArg::foundOption will evpect a nil "value" passed in. | |
Public Attributes | |
int | numSet |
The number of times this value has been set. |
CommandOption type for flags.
ost::CommandOptionNoArg::CommandOptionNoArg | ( | const char * | inOptionName, |
const char * | inOptionLetter, | ||
const char * | inDescription, | ||
bool | inRequired = false , |
||
CommandOption ** | ppNext = &defaultCommandOptionList |
||
) |
CommandOptionArg contructor.
This sets the optionType for this object to NoArg.
inOptionName | long option name |
inOptionLetter | short letter name |
inDescription | short description of the option |
inRequired | true if option is required |
ppNext | the linked list header |
virtual void ost::CommandOptionNoArg::foundOption | ( | CommandOptionParse * | cop, |
const char * | value = 0 |
||
) | [virtual] |
CommandOptionNoArg::foundOption will evpect a nil "value" passed in.
Reimplemented from ost::CommandOption.
The number of times this value has been set.