GNU CommonC++
Public Member Functions

ost::CommandOptionCollect Class Reference

It only makes sense to have a single one of these set and it is also exclusive with CommandOptionRest. More...

#include <cmdoptns.h>

Inheritance diagram for ost::CommandOptionCollect:
ost::CommandOptionWithArg ost::CommandOption

List of all members.

Public Member Functions

 CommandOptionCollect (const char *inOptionName, const char *inOptionLetter, const char *inDescription, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)
 CommandOptionRest contructor.

Detailed Description

It only makes sense to have a single one of these set and it is also exclusive with CommandOptionRest.

This makes parameter collecting behave line the Unix "cat" command.

CommandOption to collect parameters that are not options.

Examples:

cmdlineopt.cpp.


Constructor & Destructor Documentation

ost::CommandOptionCollect::CommandOptionCollect ( const char *  inOptionName,
const char *  inOptionLetter,
const char *  inDescription,
bool  inRequired = false,
CommandOption **  ppNext = &defaultCommandOptionList 
)

CommandOptionRest contructor.

This sets the optionType for this object to Collect.

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

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