MCPcopy Create free account
hub / github.com/MariaDB/server / get_int

Method get_int

plugin/handler_socket/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.45
runMethod · 0.45
hs_longrun_mainFunction · 0.45
test_1Method · 0.45
test_6Method · 0.45
test_7Method · 0.45
test_9Method · 0.45
test_10Method · 0.45
test_11Method · 0.45
test_watchMethod · 0.45
test_12Method · 0.45
operator ()Method · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by 10

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