FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 667 of file lidctrl.cc.

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

Referenced by main().

668 {
669  po::options_description control("Lid control");
670  control.add_options()
671  ("no-dim,d", po_switch(), "Disable dim services")
672  ("addr,a", var<string>(""), "Network address of the lid controling Arduino including port")
673  ("url,u", var<string>(""), "File name and path to load")
674  ("quiet,q", po_bool(true), "Disable printing contents of all received messages (except dynamic data) in clear text.")
675  ("interval,i", var<uint16_t>(5), "Interval between two updates on the server in seconds")
676  ("time-to-move", var<uint16_t>(20), "Expected minimum time the lid taks to open/close")
677  ("debug-tx", po_bool(), "Enable debugging of ethernet transmission.")
678  ;
679 
680  conf.AddOptions(control);
681 }
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: