Example #1
0
 inline void Configure(const char *s_cfg) {
   std::string cstr(s_cfg); cstr += "\n";
   std::stringstream sstream(cstr);
   utils::ConfigStreamReader cfg(sstream);
   cfg.Init();
   while (cfg.Next()) {
     this->SetParam(cfg.name(), cfg.val());
   }
 }