#include <qgetopt.h>
Classes | |
| struct | Option |
Public Member Functions | |
| void | addArgument (const QString &name, const QString &description, QVariant *v) |
| void | addArgument (const QString &name, const QString &description, QString *v) |
| void | addArgument (const QString &name, const QString &description, float *v) |
| void | addArgument (const QString &name, const QString &description, double *v) |
| void | addArgument (const QString &name, const QString &description, int *v) |
| void | addArgument (const QString &name, const QString &description, bool *v) |
| void | addArgument (const QString &name, const QString &description, Option option) |
| void | addOption (char s, const QString &longname, const QString &description, QVariant *v) |
| void | addOption (char s, const QString &longname, const QString &description, QString *v) |
| void | addOption (char s, const QString &longname, const QString &description, float *v) |
| void | addOption (char s, const QString &longname, const QString &description, double *v) |
| void | addOption (char s, const QString &longname, const QString &description, int *v) |
| void | addOption (char s, const QString &longname, const QString &description, bool *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 () | |
| GetOpt (int argc, char *argv[]) | |
| GetOpt (const QStringList &a) | |
| void | parse () |
| void | setHelp (QString &_help) |
| QString | usage () |
Public Attributes | |
| QString | appname |
| QStringList | args |
| QStringList | arguments |
| QString | help |
Protected Member Functions | |
| bool | assignOption (Option &option, QString arg, QString &error) |
| 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 |
| GetOpt::GetOpt | ( | ) | [inline] |
| GetOpt::GetOpt | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 32 of file qgetopt.cpp.
| GetOpt::GetOpt | ( | const QStringList & | a | ) |
Definition at line 38 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| QVariant * | v | ||
| ) |
Definition at line 70 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| QString * | v | ||
| ) |
Definition at line 76 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| float * | v | ||
| ) |
Definition at line 82 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| double * | v | ||
| ) |
Definition at line 88 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| int * | v | ||
| ) |
Definition at line 94 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| bool * | v | ||
| ) |
Definition at line 100 of file qgetopt.cpp.
| void GetOpt::addArgument | ( | const QString & | name, |
| const QString & | description, | ||
| Option | option | ||
| ) |
Definition at line 106 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| QVariant * | v | ||
| ) |
Definition at line 58 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| QString * | v | ||
| ) |
Definition at line 114 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| float * | v | ||
| ) |
Definition at line 119 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| double * | v | ||
| ) |
Definition at line 124 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| int * | v | ||
| ) |
Definition at line 129 of file qgetopt.cpp.
| void GetOpt::addOption | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| bool * | v | ||
| ) |
Definition at line 134 of file qgetopt.cpp.
| void GetOpt::addOptionalArgument | ( | const QString & | name, |
| const QString & | description, | ||
| QVariant * | v | ||
| ) |
Definition at line 141 of file qgetopt.cpp.
| void GetOpt::addSwitch | ( | char | s, |
| const QString & | longname, | ||
| const QString & | description, | ||
| bool * | b | ||
| ) |
Definition at line 45 of file qgetopt.cpp.
| void GetOpt::allowUnlimitedArguments | ( | bool | allow | ) | [inline] |
| QString & GetOpt::applicationName | ( | ) |
Definition at line 151 of file qgetopt.cpp.
| bool GetOpt::assignOption | ( | Option & | option, |
| QString | arg, | ||
| QString & | error | ||
| ) | [protected] |
Definition at line 227 of file qgetopt.cpp.
| bool GetOpt::findArg | ( | const QString & | name, |
| Option & | option | ||
| ) | [protected] |
Definition at line 368 of file qgetopt.cpp.
| bool GetOpt::findOption | ( | char | c, |
| Option & | option | ||
| ) | [protected] |
Definition at line 356 of file qgetopt.cpp.
| QString GetOpt::formatDesc | ( | QString | desc, |
| int | len | ||
| ) | [protected] |
Definition at line 379 of file qgetopt.cpp.
| void GetOpt::parse | ( | ) |
Definition at line 219 of file qgetopt.cpp.
| bool GetOpt::parse | ( | QString & | error | ) | [protected] |
Definition at line 251 of file qgetopt.cpp.
| void GetOpt::setHelp | ( | QString & | _help | ) | [inline] |
| QString GetOpt::usage | ( | void | ) |
Definition at line 156 of file qgetopt.cpp.
| QString GetOpt::appname |
| QStringList GetOpt::args |
| QStringList GetOpt::arguments |
| QString GetOpt::help |
QList<Option> GetOpt::options [protected] |
bool GetOpt::unlimitedArgs [protected] |