FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 43 of file makeplots.cc.

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

Referenced by main().

44 {
45  po::options_description control("Makeplots");
46  control.add_options()
47  //("ra", var<double>(), "Source right ascension")
48  //("dec", var<double>(), "Source declination")
49  ("date-time", var<string>(), "SQL time (UTC)")
50  ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database.")
51  ("max-current", var<double>(100), "Maximum current to display in other plots.")
52  ("max-zd", var<double>(50), "Maximum zenith distance to display in other plots")
53  ("no-limits", po_switch(), "Switch off limits in plots")
54  ;
55 
56  po::positional_options_description p;
57  p.add("date-time", 1); // The first positional options
58 
59  conf.AddOptions(control);
60  conf.SetArgumentPositions(p);
61 }
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: