Project
app.h
Go to the documentation of this file.
1 #ifndef APP_H
2 #define APP_H
3 
9 #include "config.h"
10 #include "spdlog/sinks/basic_file_sink.h"
11 #include "spdlog/spdlog.h"
12 #include "yaml-cpp/yaml.h"
13 
23 class App {
24 
25 public:
28  App();
29 
34  App(Config &config);
35 
40  Config getConf() const;
41 
46  int run();
47 
53  void initializeLogger(YAML::Node &yml_conf);
54 
62  void extractConfig(YAML::Node &yml_conf);
63 
66  static void showUsage(std::string name);
67 
75  int parseArgs(int argc, char *argv[]);
76 
77 private:
78  Config conf;
79 };
80 
81 #endif
App container of the fastpl project.
Definition: app.h:23
static void showUsage(std::string name)
void extractConfig(YAML::Node &yml_conf)
void initializeLogger(YAML::Node &yml_conf)
Config getConf() const
App(Config &config)
int run()
int parseArgs(int argc, char *argv[])
Config datastructure of the app.
High level configuration of the app.
Definition: config.h:20