FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 15 of file makedata.cc.

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

Referenced by main().

16 {
17  po::options_description control("Smart FACT");
18  control.add_options()
19  ("source-name", var<string>(), "Source name")
20  ("date-time", var<string>(), "SQL time (UTC)")
21  ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database.")
22  ("max-current", var<double>(75), "Maximum current to display in other plots.")
23  ("max-zd", var<double>(75), "Maximum zenith distance to display in other plots")
24  ("no-limits", po_switch(), "Switch off limits in plots")
25  ;
26 
27  po::positional_options_description p;
28  p.add("source-name", 1); // The 1st positional options
29  p.add("date-time", 2); // The 2nd positional options
30 
31  conf.AddOptions(control);
32  conf.SetArgumentPositions(p);
33 }
po::typed_value< bool > * po_switch()
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: