|
QuasarAppLib 1.0.530.c9fba11
|
The Params class Contains functions for working with input arguments and logs. This Class support next commandline arguments. More...
#include <params.h>

Public Member Functions | |
| Params ()=delete | |
Static Public Member Functions | |
| static bool | parseParams (const int argc, const char *argv[], const OptionsDataList &options={}) |
| parseParams Parse input data of started application. | |
| static bool | parseParams (int argc, char *argv[], const OptionsDataList &options={}) |
| parseParams Parse input data of started application. | |
| static bool | parseParams (const QStringList ¶msArray, const OptionsDataList &options={}) |
| parseParams Parse input data of started application. | |
| static QString | getArg (const QString &key, const QString &def={}) |
| getArg return string value of a key if key is exits else return a def value. If a def value not defined returns empty string. | |
| static void | setArg (const QString &key, const QString &val) |
| setArg sets a new value of a key. | |
| static void | setEnable (const QString &key, bool enable) |
| setEnable This method sets boolean value of key. | |
| static bool | isEndable (const QString &key) |
| isEndable This method check if enable a key argument. | |
| static void | log (const QString &log, VerboseLvl vLvl=VerboseLvl::Debug) |
| log This method print log text on console. | |
| static VerboseLvl | getVerboseLvl () |
| getVerboseLvl This method return the verbose log level. | |
| static bool | isDebug () |
| isDebug This method return true if the application verbose level >= VerboseLvl::Debug. | |
| static bool | isDebugBuild () |
| isDebugBuild This method return true if the library buildet in debug mode. | |
| static int | size () |
| size This method return count of the all input arguments. | |
| static void | showHelp () |
| showHelp This method shows all help message. | |
| static void | showHelpForInputOptions () |
| showHelpForInputOptions This method show help for each input option. | |
| static Help::Section | getHelpOfInputOptions () |
| getHelpOfInputOptions This method return help abut input options only. Except help and h options. | |
| static const Help::Section & | getHelp () |
| getHelp This method return options help page. | |
| static const QMap< QString, QString > & | getUserParamsMap () |
| getUserParamsMap This method return const reference to the parsed arguments map. | |
| static void | clearParsedData () |
| clearParsedData This method clear all parsed data. | |
| static QString | getCurrentExecutable () |
| getCurrentExecutable This method return path to the current executable. | |
| static QString | getCurrentExecutableDir () |
| getCurrentExecutableDir This method return a path to a folder with the current executable. | |
| static OptionsDataList | availableArguments () |
| availableArguments This method return list of the available arguments of QuasarAppLibrary | |
The Params class Contains functions for working with input arguments and logs. This Class support next commandline arguments.
|
delete |

|
static |
availableArguments This method return list of the available arguments of QuasarAppLibrary
Definition at line 136 of file params.cpp.

|
static |
clearParsedData This method clear all parsed data.
Definition at line 122 of file params.cpp.
|
static |
getArg return string value of a key if key is exits else return a def value. If a def value not defined returns empty string.
| key | This is key of a console argument. |
| def | This is Default value. If key not exits This function will return a default value. |
Definition at line 348 of file params.cpp.

|
static |
getCurrentExecutable This method return path to the current executable.
Definition at line 128 of file params.cpp.

|
static |
getCurrentExecutableDir This method return a path to a folder with the current executable.
Definition at line 132 of file params.cpp.

|
static |
getHelp This method return options help page.
Definition at line 114 of file params.cpp.
|
static |
getHelpOfInputOptions This method return help abut input options only. Except help and h options.
Definition at line 100 of file params.cpp.

|
static |
getUserParamsMap This method return const reference to the parsed arguments map.
Definition at line 118 of file params.cpp.
|
static |
getVerboseLvl This method return the verbose log level.
Definition at line 71 of file params.cpp.


|
static |
isDebug This method return true if the application verbose level >= VerboseLvl::Debug.
Definition at line 75 of file params.cpp.

|
static |
isDebugBuild This method return true if the library buildet in debug mode.
Definition at line 79 of file params.cpp.
|
static |
isEndable This method check if enable a key argument.
| key | This is name of the validate arguments |
Definition at line 35 of file params.cpp.

|
static |
log This method print log text on console.
| log | This is printed text message. |
| vLvl | This is verbose level of message, for get more information see the QuasarAppUtils::VerboseLvl enum. |
Definition at line 39 of file params.cpp.


|
static |
parseParams Parse input data of started application.
| argc | Count of arguments. |
| argv | Array of arguments. |
| options | This is list of the available options for parse. See the OptionData class for more information. If you skip this argument then QuasarAppLib will not check input options. |
Definition at line 193 of file params.cpp.


|
static |
parseParams Parse input data of started application.
| paramsArray | Arguments. |
| options | This is list of the available options for parse. See the OptionData class for more information. If you skip this argument then QuasarAppLib will not check input options. |
Definition at line 207 of file params.cpp.

|
static |
parseParams Parse input data of started application.
| argc | Count of arguments. |
| argv | Array of arguments. |
| options | This is list of the available options for parse. See the OptionData class for more information. If you skip this argument then QuasarAppLib will not check input options. |
Definition at line 203 of file params.cpp.

|
static |
setArg sets a new value of a key.
| key | This is a name of sets option. |
| val | This is a new value of the key. |
Definition at line 352 of file params.cpp.
|
static |
setEnable This method sets boolean value of key.
| key | This is name of the console option. |
| enable | New value of key. |
Definition at line 356 of file params.cpp.
|
static |
showHelp This method shows all help message.
Definition at line 87 of file params.cpp.

|
static |
showHelpForInputOptions This method show help for each input option.
Example:
Definition at line 96 of file params.cpp.


|
static |
size This method return count of the all input arguments.
Definition at line 154 of file params.cpp.
