35#define DEFAULT_VERBOSE_LVL "0"
38#define DEFAULT_VERBOSE_LVL "3"
40#define DEFAULT_VERBOSE_LVL "2"
75 static bool parseParams(
const int argc,
const char *argv[],
const OptionsDataList& options = {});
85 static bool parseParams(
int argc,
char *argv[],
const OptionsDataList& options = {});
94 static bool parseParams(
const QStringList& paramsArray,
const OptionsDataList& options = {});
103 static QString getArg(
const QString& key,
const QString &def = {});
110 static void setArg(
const QString& key,
const QString& val);
118 static void setEnable(
const QString& key,
bool enable);
125 static bool isEndable(
const QString& key);
134 [[deprecated(
"Use QALogger and qt debug functions(qDebug, qInfo, qError...)")]]
135 static void log(
const QString& log, VerboseLvl vLvl = VerboseLvl::Debug);
141 static VerboseLvl getVerboseLvl();
147 static bool isDebug();
153 [[deprecated(
"Use Qt MACROSSSES")]]
154 static bool isDebugBuild();
165 static void showHelp();
177 static void showHelpForInputOptions();
183 static Help::Section getHelpOfInputOptions();
190 static const Help::Section& getHelp();
196 static const QMap<QString, QString> &getUserParamsMap();
201 static void clearParsedData();
207 static QString getCurrentExecutable();
213 static QString getCurrentExecutableDir();
219 static OptionsDataList availableArguments();
223 static bool optionsForEach(
const QStringList& paramsArray,
224 const OptionsDataList &availableOptions);
231 static void printWorkingOptions();
238 static bool checkOption(
const OptionData &option,
const QString &rawOptionName);
246 static void parseAvailableOptions(
const OptionsDataList& availableOptionsListIn,
247 OptionsDataList* availableOptionsListOut,
248 Help::Section* helpOut);
251 static QMap<QString, QString> params;
252 static OptionsDataList inputOptions;
254 static Help::Section userHelp;
255 static QString appPath;
256 static QString appName;
The QuasaraAppUtils class This lib include base functions for the all applications of QuasarApp group...
VerboseLvl
The VerboseLvl enum uses for sets log level.
@ Error
Error message. This logs will marked as a Error and printing if the verbose lvl >= 0.
@ Warning
Warning message. This logs will marked as a Warning and printing if the verbose lvl >= 1.
@ Info
General information. This logs will marked as a Info and and printing if the verbose lvl >= 2.
@ Debug
Debug message. This logs will marked as a Debug and printing if the verbose lvl >= 3.
#define QUASARAPPSHARED_EXPORT