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

Definition at line 599 of file fad.cc.

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

Referenced by main().

600 {
601  const string n = conf.GetName()+".log";
602 
603  po::options_description config("Program options");
604  config.add_options()
605  ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
606  ("port,p", var<uint16_t>(4000), "")
607  ("num,n", var<uint16_t>(40), "")
608  ;
609 
610  po::positional_options_description p;
611  p.add("port", 1); // The first positional options
612  p.add("num", 1); // The second positional options
613 
614  conf.AddEnv("dns", "DIM_DNS_NODE");
615 
616  conf.AddOptions(config);
617  conf.SetArgumentPositions(p);
618 }
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: