|
Project
|
App container of the fastpl project. More...
#include <app.h>
Public Member Functions | |
| App () | |
| App (Config &config) | |
| Config | getConf () const |
| int | run () |
| void | initializeLogger (YAML::Node &yml_conf) |
| void | extractConfig (YAML::Node &yml_conf) |
| int | parseArgs (int argc, char *argv[]) |
Static Public Member Functions | |
| static void | showUsage (std::string name) |
App container of the fastpl project.
App is responsible of setting up the right environment of execution given by the config and launch the fastpl pipeline to solve the problem. It is also responsible for error handling to avoid crashing the whole application and terminating everything properly.
| App::App | ( | ) |
App Base constructor
| App::App | ( | Config & | config | ) |
App Base constructor, stores the given config.
| config | app config to start and run the application. |
| void App::extractConfig | ( | YAML::Node & | yml_conf | ) |
extractConfig get the config from the yaml file and store it into the config datastructure of the app
| yml_conf |
| Config App::getConf | ( | ) | const |
getConf config getter
| void App::initializeLogger | ( | YAML::Node & | yml_conf | ) |
initializeLogger initialize the logger based on the yaml config and store it into the app config
| yml_conf |
| int App::parseArgs | ( | int | argc, |
| char * | argv[] | ||
| ) |
parseArgs parse the args given in the CLI command and store them into the app config
| argc | from main |
| argv | from main |
| app_config |
| int App::run | ( | ) |
Run start the application and run all subsequent processes
|
static |
showUsage print in the stderr the help information from the CLI command