FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 493 of file pwrctrl.cc.

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

Referenced by main().

494 {
495  po::options_description control("Interlock control");
496  control.add_options()
497  ("no-dim,d", po_switch(), "Disable dim services")
498  ("addr,a", var<string>(""), "Network address of the lid controling Arduino including port")
499  ("url,u", var<string>(""), "File name and path to load")
500  ("quiet,q", po_bool(true), "Disable printing contents of all received messages (except dynamic data) in clear text.")
501  ("interval,i", var<uint16_t>(5), "Interval between two updates on the server in seconds")
502  ("debug-tx", po_bool(), "Enable debugging of ethernet transmission.")
503  ("debug-rx", po_bool(), "Enable debugging for received data.")
504  ;
505 
506  conf.AddOptions(control);
507 }
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: