Commits

dirtycold committed 494c93a

modified: no explicit method name

Comments (0)

Files changed (3)

IniConfig/iniconfig.cpp

     set (key,RP::toString(value));
 }
 
-void IniConfig::setDataSeries(const std::string &key, const RP::DataSeries &v)
+void IniConfig::set(const std::string &key, const RP::DataSeries &v)
 {
     std::stringstream stream;
     if (v.empty())

IniConfig/iniconfig.h

      * @param key 指定的键值
      * @param v 数据序列
      */
-    INI void setDataSeries(const std::string &key, const DataSeries &v);
+    INI void set(const std::string &key, const DataSeries &v);
     /**
      * @brief 导出配置关系表到字符缓冲
      * @param stream 指定的字符缓冲
     ini.set ("value2",88.88);
     ini.set ("token","token_string");
     std::cout << std::endl;
-    ini.setDataSeries ("new",data);
+    ini.set ("new",data);
 
     std::string s1="            Hello               ";
     std::cout << s1 << std::endl;
     RP::DataSeries data1;
     data1.push_back(12.34);
 
-    ini.setDataSeries("d1",data1);
+    ini.set ("d1",data1);
 }