FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 36 of file fact.cc.

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

Referenced by main(), and UIConnector::on_currentPixelScale_toggled().

37 {
38  po::options_description config("Program options");
39  config.add_options()
40  ("dns", var<string>("localhost"), "Dim nameserver (overwites DIM_DNS_NODE environment variable)")
41  ("host", var<string>(""), "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
42  ("pixel-map-file", var<string>("FACTmap111030.txt"), "Pixel mapping file. Used here to get the default reference voltage.")
43  ("CommentDB", var<string>(""), "")
44  ;
45 
46  po::options_description runtype("Run type configuration");
47  runtype.add_options()
48  ("run-type", vars<string>(), "Names of available run-types")
49  ("run-time", vars<string>(), "Possible run-times for runs")
50  ("run-count", vars<uint32_t>(), "Number of events for a run")
51  ;
52 
53  conf.AddEnv("dns", "DIM_DNS_NODE");
54  conf.AddEnv("host", "DIM_HOST_NODE");
55 
56  conf.AddOptions(config);
57  conf.AddOptions(runtype);
58 }
void AddEnv(const std::string &conf, const std::string &env)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92

+ Here is the call graph for this function:

+ Here is the caller graph for this function: