GNU CommonC++
Public Member Functions | Public Attributes

ost::CommandOptionNoArg Class Reference

CommandOption type for flags. More...

#include <cmdoptns.h>

Inheritance diagram for ost::CommandOptionNoArg:
ost::CommandOption

List of all members.

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.

Detailed Description

CommandOption type for flags.

Examples:

cmdlineopt.cpp.


Constructor & Destructor Documentation

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.

Parameters:
inOptionNamelong option name
inOptionLettershort letter name
inDescriptionshort description of the option
inRequiredtrue if option is required
ppNextthe linked list header

Member Function Documentation

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.


Member Data Documentation

The number of times this value has been set.


The documentation for this class was generated from the following file: