GetOpt Class Reference
#include <qgetopt.h>
List of all members.
Classes |
| struct | Option |
Public Member Functions |
| void | addArgument (const QString &name, const QString &description, QVariant *v) |
| void | addOption (char s, const QString &longname, const QString &description, QVariant *v) |
| void | addOptionalArgument (const QString &name, const QString &description, QVariant *v) |
| void | addSwitch (char s, const QString &longname, const QString &description, bool *b) |
| void | allowUnlimitedArguments (bool allow) |
| QString & | applicationName () |
| | GetOpt (const QStringList &a) |
| | GetOpt (int argc, char *argv[]) |
| | GetOpt () |
| void | parse () |
| void | setHelp (QString &_help) |
| QString | usage () |
Public Attributes |
| QString | appname |
| QStringList | args |
| QStringList | arguments |
| QString | help |
Protected Member Functions |
| bool | findArg (const QString &name, Option &option) |
| bool | findOption (char c, Option &option) |
| QString | formatDesc (QString desc, int len) |
| bool | parse (QString &error) |
Protected Attributes |
| QList< Option > | options |
| bool | unlimitedArgs |
Detailed Description
Definition at line 46 of file qgetopt.h.
Constructor & Destructor Documentation
| GetOpt::GetOpt |
( |
|
) |
[inline] |
| GetOpt::GetOpt |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
| GetOpt::GetOpt |
( |
const QStringList & |
a |
) |
|
Member Function Documentation
| void GetOpt::addArgument |
( |
const QString & |
name, |
|
|
const QString & |
description, |
|
|
QVariant * |
v | |
|
) |
| | |
| void GetOpt::addOption |
( |
char |
s, |
|
|
const QString & |
longname, |
|
|
const QString & |
description, |
|
|
QVariant * |
v | |
|
) |
| | |
| void GetOpt::addOptionalArgument |
( |
const QString & |
name, |
|
|
const QString & |
description, |
|
|
QVariant * |
v | |
|
) |
| | |
| void GetOpt::addSwitch |
( |
char |
s, |
|
|
const QString & |
longname, |
|
|
const QString & |
description, |
|
|
bool * |
b | |
|
) |
| | |
| void GetOpt::allowUnlimitedArguments |
( |
bool |
allow |
) |
[inline] |
| QString & GetOpt::applicationName |
( |
|
) |
|
| bool GetOpt::findArg |
( |
const QString & |
name, |
|
|
Option & |
option | |
|
) |
| | [protected] |
| bool GetOpt::findOption |
( |
char |
c, |
|
|
Option & |
option | |
|
) |
| | [protected] |
| QString GetOpt::formatDesc |
( |
QString |
desc, |
|
|
int |
len | |
|
) |
| | [protected] |
| bool GetOpt::parse |
( |
QString & |
error |
) |
[protected] |
| void GetOpt::setHelp |
( |
QString & |
_help |
) |
[inline] |
| QString GetOpt::usage |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following files: