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

Method get_int

libhsclient/config.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33long long
34config::get_int(const std::string& key, long long def) const
35{
36 const_iterator iter = this->find(key);
37 if (iter == this->end()) {
38 DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%lld(default)\n", key.c_str(),
39 def));
40 return def;
41 }
42 const long long r = atoll(iter->second.c_str());
43 DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%lld\n", key.c_str(), r));
44 return r;
45}
46
47void
48parse_args(int argc, char **argv, config& conf)

Callers 15

hstcpcli_mainFunction · 0.80
runMethod · 0.80
hs_longrun_mainFunction · 0.80
test_1Method · 0.80
test_6Method · 0.80
test_7Method · 0.80
test_9Method · 0.80
test_10Method · 0.80
test_11Method · 0.80
test_watchMethod · 0.80
test_12Method · 0.80
operator ()Method · 0.80

Calls 1

endMethod · 0.45

Tested by 10

test_1Method · 0.64
test_6Method · 0.64
test_7Method · 0.64
test_9Method · 0.64
test_10Method · 0.64
test_11Method · 0.64
test_watchMethod · 0.64
test_12Method · 0.64
operator ()Method · 0.64
hstest_mainFunction · 0.64