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

Method getString

libminifi/src/properties/Properties.cpp:40–50  ·  view source on GitHub ↗

Get the config value

Source from the content-addressed store, hash-verified

38
39// Get the config value
40bool Properties::getString(const std::string &key, std::string &value) const {
41 std::lock_guard<std::mutex> lock(mutex_);
42 auto it = properties_.find(key);
43
44 if (it != properties_.end()) {
45 value = it->second.value;
46 return true;
47 } else {
48 return false;
49 }
50}
51
52utils::optional<std::string> Properties::getString(const std::string& key) const {
53 std::string result;

Callers 4

initializeMethod · 0.45
createMethod · 0.45
initializeMethod · 0.45
initialize_namespacesMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected