Argument info.
More...
#include <optionmanager.hpp>
List of all members.
Detailed Description
Argument info.
Member Enumeration Documentation
- Enumerator:
Flag |
Option is a flag with boolean value.
|
String |
|
Int |
|
Constructor & Destructor Documentation
Option::Option |
( |
QString |
description = QString() , |
|
|
ArgValueType |
valueType = Option::Flag , |
|
|
QVariant |
value = QVariant() , |
|
|
QString |
longName = QString() | |
|
) |
| | |
Initialize with the given values.
Member Function Documentation
QString Option::description |
( |
|
) |
const |
bool Option::isFlag |
( |
|
) |
const |
bool Option::isLongNameValid |
( |
const QString & |
name |
) |
[static] |
bool Option::isNameValid |
( |
const QChar & |
name |
) |
[static] |
QString Option::longName |
( |
|
) |
const |
bool Option::parseValue |
( |
const QString & |
strValue |
) |
|
Stores the given value in the right type.
- Returns:
- False if the option does not have a value or if the string can't be parsed, true otherwise.
bool Option::setFlag |
( |
bool |
set = true |
) |
|
Sets the option flag to true.
- Returns:
- False if the option is not flag type, true otherwise.
QVariant Option::value |
( |
|
) |
const |
QString Option::valueTypeString |
( |
|
) |
const |