FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 720 of file scheduler.cc.

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

Referenced by main().

721 {
722  po::options_description control("Scheduler options");
723  control.add_options()
724  ("no-dim", po_switch(), "Disable dim services")
725  ("schedule-database", var<string>()
726 #if BOOST_VERSION >= 104200
727  ->required()
728 #endif
729  , "Database link as in\n\tuser:password@server[:port]/database\nOverwrites options from the default configuration file.")
730  ("schedule", var<string>(), "")
731  ("mintime", var<int>(), "minimum observation time")
732  ("duration-cal-run", var<int>()
733 #if BOOST_VERSION >= 104200
734  ->required()
735 #endif
736  , "duration of calibration run [min]")
737  ("duration-ped-run", var<int>()
738 #if BOOST_VERSION >= 104200
739  ->required()
740 #endif
741  , "duration of pedestal run [min]")
742  ("duration-repos", var<int>()
743 #if BOOST_VERSION >= 104200
744  ->required()
745 #endif
746  , "duration of repositioning [min]")
747  ;
748 
749  po::positional_options_description p;
750  p.add("schedule", 1); // The first positional options
751 
752  conf.AddOptions(control);
753  conf.SetArgumentPositions(p);
754 }
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: