FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 123 of file moon.cc.

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

Referenced by main().

124 {
125  po::options_description control("Smart FACT");
126  control.add_options()
127  ("ra", var<double>(), "Source right ascension")
128  ("dec", var<double>(), "Source declination")
129  ("date-time", var<string>()
130 #if BOOST_VERSION >= 104200
131  ->required()
132 #endif
133  , "SQL time (UTC)")
134  ;
135 
136  po::positional_options_description p;
137  p.add("date-time", 1); // The first positional options
138 
139  conf.AddOptions(control);
140  conf.SetArgumentPositions(p);
141 }
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: