| 17 | unsigned int verbose_level = 0; |
| 18 | |
| 19 | std::string |
| 20 | config::get_str(const std::string& key, const std::string& def) const |
| 21 | { |
| 22 | const_iterator iter = this->find(key); |
| 23 | if (iter == this->end()) { |
| 24 | DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%s(default)\n", key.c_str(), |
| 25 | def.c_str())); |
| 26 | return def; |
| 27 | } |
| 28 | DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%s\n", key.c_str(), |
| 29 | iter->second.c_str())); |
| 30 | return iter->second; |
| 31 | } |
| 32 | |
| 33 | long long |
| 34 | config::get_int(const std::string& key, long long def) const |