MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / get_str

Method get_str

libhsclient/config.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17unsigned int verbose_level = 0;
18
19std::string
20config::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
33long long
34config::get_int(const std::string& key, long long def) const

Callers 10

hstcpcli_mainFunction · 0.80
runMethod · 0.80
hs_longrun_init_tableFunction · 0.80
hs_longrun_mainFunction · 0.80
test_9Method · 0.80
test_10Method · 0.80
test_12Method · 0.80
hstest_mainFunction · 0.80
hstcpsvrMethod · 0.80
setMethod · 0.80

Calls 1

endMethod · 0.45

Tested by 4

test_9Method · 0.64
test_10Method · 0.64
test_12Method · 0.64
hstest_mainFunction · 0.64