PFASST++
pfasst.hpp
Go to the documentation of this file.
1 #ifndef _PFASST_HPP_
2 #define _PFASST_HPP_
3 
4 #include <functional>
5 using namespace std;
6 
7 #include "pfasst/config.hpp"
8 #include "pfasst/logging.hpp"
9 
10 
11 namespace pfasst
12 {
13  inline static void init(int argc, char** argv,
14  std::function<void()> opts = nullptr,
15  std::function<void()> logs = nullptr)
16  {
17  if (opts) {
18  opts();
19  }
20  config::init();
21  config::read_commandline(argc, argv);
22  log::start_log(argc, argv);
23  if (logs) {
24  logs();
25  }
26  }
27 } // ::pfasst
28 
29 
53 #endif
static void start_log(int argc, char **argv)
Starts easylogging++ with given arguments and loads configuration.
Definition: logging.hpp:518
STL namespace.
static void init(int argc, char **argv, std::function< void()> opts=nullptr, std::function< void()> logs=nullptr)
Definition: pfasst.hpp:13
static void read_commandline(int argc, char *argv[], bool exit_on_help=true)
Read and parse command line parameters.
Definition: config.hpp:253