FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 16 of file makeschedule.cc.

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

Referenced by main().

17 {
18  po::options_description control("Makeschedule");
19  control.add_options()
20  ("date", var<string>(), "SQL time (UTC), e.g. '2016-12-24' (equiv. '2016-12-24 12:00:00' to '2016-12-25 11:59:59')")
21  ("source-database", var<string>()->required(), "Database link as in\n\tuser:password@server[:port]/database.")
22  ("schedule-database", var<string>(), "Database link as in\n\tuser:password@server[:port]/database.")
23  ("max-current", var<double>(90), "Global maximum current limit in uA")
24  ("max-zd", var<double>(75), "Global zenith distance limit in degree")
25  ("source", vars<string>(), "List of all TeV sources to be included, names according to the database")
26  ("setup.*", var<double>(), "Setup for the sources to be observed")
27  ("preobs.*", vars<string>(), "Prescheduled observations")
28  ("startup.offset", var<double>(15), "Determines how many minutes the startup is scheduled before data-taking.start [0;120]")
29  ("data-taking.start", var<double>(-12), "Begin of data-taking in degree of sun below horizon")
30  ("data-taking.end", var<double>(-13.75), "End of data-taking in degree of sun below horizon")
31  ("enter-schedule-into-database", var<bool>(), "Enter schedule into database (required schedule-database, false: dry-run)")
32  ;
33 
34  po::positional_options_description p;
35  p.add("date", 1); // The first positional options
36 
37  conf.AddOptions(control);
38  conf.SetArgumentPositions(p);
39 }
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: