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

Method update

libminifi/src/properties/PropertiesFile.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void PropertiesFile::update(const std::string& key, const std::string& value) {
101 auto it = findKey(key);
102 if (it != lines_.end()) {
103 it->updateValue(value);
104 } else {
105 throw std::invalid_argument{"Key " + key + " not found in the config file!"};
106 }
107}
108
109void PropertiesFile::insertAfter(const std::string& after_key, const std::string& key, const std::string& value) {
110 auto it = findKey(after_key);

Callers 3

persistPropertiesMethod · 0.45
configureMethod · 0.45
__init__Method · 0.45

Calls 2

updateValueMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected