| 172 | } |
| 173 | |
| 174 | bool FlowFile::updateAttribute(const std::string key, const std::string value) { |
| 175 | auto it = attributes_.find(key); |
| 176 | if (it != attributes_.end()) { |
| 177 | it->second = value; |
| 178 | return true; |
| 179 | } else { |
| 180 | return false; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | bool FlowFile::addAttribute(const std::string& key, const std::string& value) { |
| 185 | auto it = attributes_.find(key); |
no test coverage detected