Texture Viewer
|
Inherits QCommandLineParser.
Public Member Functions | |
ToolParser (const QByteArray &toolName) | |
void | process (const QStringList &arguments) |
Q_NORETURN void | showHelp (int code) |
Static Public Member Functions | |
static void | showMessage (const QString &message) |
static void | showError (const QString &message) |
This is helper class that simplifies usage of the QCommandLineParser. Provides built-in procesing of the help option which prints tool help.
|
explicit |
Constructs a ToolParser instance with the given toolName.
void TextureTool::ToolParser::process | ( | const QStringList & | arguments | ) |
Parses and handles the default options (help). Prints help and throws ExitException in case of parse error.
|
static |
Prints the given message to the sdterr stream.
void TextureTool::ToolParser::showHelp | ( | int | code | ) |
Prints help and throws ExitException with the given code.
|
static |
Prints the given message to the sdtout stream.