FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 1628 of file cosyctrl.cc.

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

Referenced by main().

1629 {
1630  const string def = "localhost:7404";
1631 
1632  po::options_description control("Drive control options");
1633  control.add_options()
1634  ("no-dim,d", po_switch(), "Disable dim services")
1635  ("addr,a", var<string>(def), "Network address of cosy")
1636  ("quiet,q", po_bool(true), "Disable printing contents of all received messages (except dynamic data) in clear text.")
1637  ("source-database", var<string>(), "Database link as in\n\tuser:password@server[:port]/database.")
1638  ("source", vars<string>(), "Additional source entry in the form \"name,hh:mm:ss,dd:mm:ss\"")
1639  ("deviation-limit", var<uint16_t>(90), "Deviation limit in arcsec to get 'OnTrack'")
1640  ("deviation-count", var<uint16_t>(3), "Minimum number of reported deviation below deviation-limit to get 'OnTrack'")
1641  ("deviation-max", var<uint16_t>(180), "Maximum deviation in arcsec allowed to keep status 'OnTrack'")
1642  ("auto-resume", po_bool(false), "Enable auto result during tracking if connection is lost")
1643  ;
1644 
1645  conf.AddOptions(control);
1646 }
po::typed_value< bool > * po_switch()
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
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: