MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / getInt

Method getInt

libminifi/src/properties/Properties.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int Properties::getInt(const std::string &key, int default_value) const {
63 std::lock_guard<std::mutex> lock(mutex_);
64 auto it = properties_.find(key);
65
66 return it != properties_.end() ? std::stoi(it->second.value) : default_value;
67}
68
69// Load Configure File
70void Properties::loadConfigureFile(const char *fileName) {

Callers 4

loadMethod · 0.80
initializeMethod · 0.80
SchedulingAgentMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected