NAME
CommandOptionNoArg - CommandOption type for flags.
SYNOPSIS
#include <cmdoptns.h>
Inherits CommandOption.
Public Methods
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.
DETAILED DESCRIPTION
CommandOption type for flags.
CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
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.
Parameters:
- 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
MEMBER FUNCTION DOCUMENTATION
virtual void CommandOptionNoArg::foundOption (CommandOptionParse * cop, const char * value = 0) [virtual]
CommandOptionNoArg::foundOption will evpect a nil 'value' passed in.
Reimplemented from CommandOption.
MEMBER DATA DOCUMENTATION
int CommandOptionNoArg::numSet
The number of times this value has been set.
AUTHOR
Generated automatically by Doxygen for CommonC++ from the source code.