ost::CommandOptionNoArg - CommandOption type for flags.
Contents
Constructor & Destructor Documentation
ost::CommandOptionNoArg::CommandOptionNoArg(constchar*inOptionName,constchar*inOptionLetter,constchar*inDescription,boolinRequired=false,CommandOption**ppNext=&defaultCommandOptionList)CommandOptionArg contructor. This sets the optionType for this object to NoArg.
ParametersinOptionName long option name
inOptionLetter short letter name
inDescription short description of the option
inRequired true if option is required
ppNext the linked list header
Detailed Description
CommandOption type for flags.
Examplescmdlineopt.cpp.
Member Data Documentation
intost::CommandOptionNoArg::numSet
The number of times this value has been set.
Member Function Documentation
virtualvoidost::CommandOptionNoArg::foundOption(CommandOptionParse*cop,constchar*value=0)[virtual]CommandOptionNoArg::foundOption will evpect a nil 'value' passed in.
Reimplemented from ost::CommandOption.
Name
ost::CommandOptionNoArg - CommandOption type for flags.
Synopsis
#include <cmdoptns.h>
Inherits ost::CommandOption.
PublicMemberFunctionsCommandOptionNoArg (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.
PublicAttributes
int numSet
The number of times this value has been set.
AdditionalInheritedMembers