QuasarAppLib 1.0.530.c9fba11
QuasarAppLib

Global functions used in applications QuasarApp. This lib include include next modules:

  • Locales - This module use for parse local files. This module allows you to work with translations.
  • Params - This module use for parese app params and create log.
  • Settings - This is a module that allows you to work with application settings.
  • Global - This module contains other global functions.

Build

Available build options:

option(QA_ALLOW_NOT_SUPPORTED_OPTIONS "Enable for allow any command line options" ON)
option(QA_DISABLE_LOG "Disabled all logs (force sets verbose to 0)" OFF)

Include

The cmake build do not required Qt libraries.

  • cd yourRepo
  • git submodule add https://github.com/QuasarApp/QuasarAppLib.git # add the repository of QtBigInt into your repo like submodule
  • git submodule update –init –recursive
  • Include in your CMakeLists.txt file the main CMakeLists.txt file of QuasarAppLib library

    add_subdirectory(QuasarAppLib)

  • Rebuild your project
add_subdirectory(QuasarAppLib)
target_link_libraries(MyBinary PUBLIC QuasarApp)

Note

By Default QuasarAppLib makes as a static library. If you want to create a shared library just add the BUILD_SHARED_LIBS into your main CMakeLists.txt file. Example :

set(BUILD_SHARED_LIBS ON)
add_subdirectory(QuasarAppLib)
target_link_libraries(MyBinary PUBLIC QuasarApp)

Usage

#include <quasarapp.h>
exit(0);
}
static void showHelp()
showHelp This method shows all help message.
Definition params.cpp:87
static void log(const QString &log, VerboseLvl vLvl=VerboseLvl::Debug)
log This method print log text on console.
Definition params.cpp:39
static bool parseParams(const int argc, const char *argv[], const OptionsDataList &options={})
parseParams Parse input data of started application.
Definition params.cpp:193
@ Warning
Warning message. This logs will marked as a Warning and printing if the verbose lvl >= 1.
Definition params.h:27

For more information, see the QuasarAppLib documentation and the API reference.