| 188 | } |
| 189 | |
| 190 | bool Config::Scan(const string &sec, const string &key, const char *scanfmt, void *dst) { |
| 191 | if ((key == "") || (sec == "") || (this->_conf == NULL)) return false; |
| 192 | |
| 193 | return ini_sget(this->_conf, sec.c_str(), key.c_str(), scanfmt, dst); |
| 194 | } |
| 195 | |
| 196 | int64_t Config::SafeScan(const string &varName, const string §ion, int64_t defaultValue, |
| 197 | int64_t minValue, int64_t maxValue) { |