|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#include "ot/auxil/BasicOption.h"

| Constructor/Destructor Summary | |
BasicOption(const String& longName, CharType shortName, ArgumentType argType)Constructs a new BasicOption. | |
| Method Summary | |
virtual String |
getArgument() constReturns the argument specified on the command line for this option. |
const String& |
getLongName() constReturns the long name for this option. |
CharType |
getShortName() constReturns the short name for this option. |
bool |
isPresent() constReturns a boolean flag indicating if this option has been specified on the command line. |
virtual void |
setPresent(const String& howSpecified, OptionType optionTypeUsed, const String& argument)Called by the CommandLineParser once it has determined that this CommandLineOption has been specified on the command line being parsed. |
virtual ArgumentType |
testLongOption(const String& option) constCalled by the CommandLineParser to test if a long option contained within the command line matches the long option name accepted by this CommandLineOption. |
virtual ArgumentType |
testShortOption(CharType option) constCalled by the CommandLineParser to test if a short option contained within the command line matches the short option name accepted by this CommandLineOption. |
| Constructor/Destructor Detail |
BasicOption(const String& longName,
CharType shortName,
ArgumentType argType)
longName - shortName - eArgumentType - | Method Detail |
virtual String getArgument() const
const String& getLongName() const
CharType getShortName() const
bool isPresent() const
virtual void setPresent(const String& howSpecified,
OptionType optionTypeUsed,
const String& argument)
howSpecified - optionTypeUsed - argument - CommandLineException - virtual ArgumentType testLongOption(const String& option) const
If the passed option name does match, a value from the CommandLineOption::ArgumentType enumeration is returned to indicate whether an argument is expected for this option.
option - virtual ArgumentType testShortOption(CharType option) const
option -
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||