FACT++  1.0
void SetupConfiguration ( ::Configuration conf)

Definition at line 554 of file ftm.cc.

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

Referenced by main().

555 {
556  const string n = conf.GetName()+".log";
557 
558  po::options_description config("Program options");
559  config.add_options()
560  ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
561  ("port,p", var<uint16_t>(5000), "")
562  ;
563 
564  po::positional_options_description p;
565  p.add("port", 1); // The first positional options
566  p.add("num", 1); // The second positional options
567 
568  conf.AddEnv("dns", "DIM_DNS_NODE");
569 
570  conf.AddOptions(config);
571  conf.SetArgumentPositions(p);
572 }
void AddEnv(const std::string &conf, const std::string &env)
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
const std::string & GetName() const

+ Here is the call graph for this function:

+ Here is the caller graph for this function: