#include "ot/auxil/BasicOption.h"
Constructor/Destructor Detail |
BasicOption
BasicOption(const String& longName,
CharType shortName,
ArgumentType argType)
-
~BasicOption
virtual ~BasicOption()
-
getArgument
virtual const String getArgument() const
-
getArgumentType
virtual ArgumentType getArgumentType() const
-
getLongName
const String& getLongName() const
-
getShortName
CharType getShortName() const
-
isPresent
bool isPresent() const
-
setArgument
virtual void setArgument(const String& arg)
-
setPresent
virtual void setPresent(const String& howSpecified,
OptionType optionTypeUsed)
-
Called by the CommandLineParser to indicate to the option that is has been specified on the command line.
- Parameters:
option
-
how the option was specified on the command line
optionTypeUsed
-
indicates whether the long or short option was used
- Exceptions:
CommandLineException
-
if the option is a duplicate
testLongOption
virtual bool testLongOption(const String& option) const
-
testShortOption
virtual bool testShortOption(CharType option) const
-
Found a bug or missing feature? Please email us at support@elcel.com