FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 512 of file agilentctrl.cc.

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

Referenced by main().

513 {
514  po::options_description control("agilent_ctrl control options");
515  control.add_options()
516  ("no-dim", po_bool(), "Disable dim services")
517  ("mode,m", var<string>()->required(), "Mode (e.g. 24V, 50V, 80V)")
518  ("addr.*", var<string>(), "Network address of Agilent specified by mode")
519  ("debug-rx", po_bool(false), "Enable raw debug output wehen receiving data")
520  ("interval", var<uint16_t>(15), "Interval in seconds in which the Agilent status is requested")
521  ("quiet,q", po_bool(true), "Disable printing contents of all received messages (except dynamic data) in clear text.")
522  ;
523 
524  po::positional_options_description p;
525  p.add("mode", 1); // The first positional options
526 
527  conf.AddOptions(control);
528  conf.SetArgumentPositions(p);
529 }
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
po::typed_value< bool > * po_bool(bool def=false)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: