FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 9 of file triggerschedule.cc.

References Configuration::AddEnv(), Configuration::AddOptions(), and Configuration::SetArgumentPositions().

Referenced by main().

10 {
11  po::options_description config("Configuration");
12  config.add_options()
13  ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
14  ("schedule-database-name", var<string>(), "Database name for scheduling")
15  ;
16 
17  po::positional_options_description p;
18  p.add("schedule-database-name", 1); // The first positional options
19 
20  conf.AddEnv("dns", "DIM_DNS_NODE");
21  conf.AddOptions(config);
22  conf.SetArgumentPositions(p);
23 }
void AddEnv(const std::string &conf, const std::string &env)
void SetArgumentPositions(const po::positional_options_description &desc)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
double p
Definition: palObs.c:169

+ Here is the call graph for this function:

+ Here is the caller graph for this function: