#include <memory>
#include <string>
#include <boost/property_tree/ptree.hpp>
Go to the source code of this file.
|
bool | Kaskade::getKaskadeOptions (int argc, char **argv, Options const &options) |
| Supports the extraction of program option values from command line arguments. More...
|
|
std::unique_ptr< boost::property_tree::ptree > | getKaskadeOptions (int argc, char *argv[], int verbosity, bool dumpParameter) |
| The parameters can be written to a log file named "run-<starttime>-<pid>.json" in JSON format. This is done if. More...
|
|
template<class TYPE > |
TYPE | getParameter (std::unique_ptr< boost::property_tree::ptree > const &pt, const std::string s, TYPE defaultValue) |
| Extracts parameters from the parameter set. More...
|
|
◆ getKaskadeOptions()
std::unique_ptr< boost::property_tree::ptree > getKaskadeOptions |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
int |
verbosity, |
|
|
bool |
dumpParameter |
|
) |
| |
The parameters can be written to a log file named "run-<starttime>-<pid>.json" in JSON format. This is done if.
- dumpParameter is true. starttime and pid have to be provided by the run.starttime and run.pid parameters.
- Parameters
-
argc | first argument of main to be passed on |
argv | second argument of main to be passed on |
verbosity | |
dumpParameter | if true, the parameters are written to a log file |
◆ getParameter()
template<class TYPE >
TYPE getParameter |
( |
std::unique_ptr< boost::property_tree::ptree > const & |
pt, |
|
|
const std::string |
s, |
|
|
TYPE |
defaultValue |
|
) |
| |
Extracts parameters from the parameter set.
- Parameters
-
pt | the parameter set as obtained from getKaskadeOptions. |
s | the name of the parameter |
defaultValue | is returned if the parameter is not found in the parameter set |
Definition at line 91 of file kaskopt.hh.