| 412 | } |
| 413 | |
| 414 | void save(JsonArchive& ar) const |
| 415 | { |
| 416 | JsonArchive children{Json::objectValue}; |
| 417 | for (const auto& filterPair: *this) { |
| 418 | if (!filterPair.second.persistent()) |
| 419 | continue; |
| 420 | std::stringstream ss; |
| 421 | ss << filterPair.first; |
| 422 | filterPair.second.save(children[ss.str()], configVersion); |
| 423 | } |
| 424 | auto configVersion = FilterManager::configVersion; |
| 425 | ar << NVP(configVersion) |
| 426 | << NVP(nextId_); |
| 427 | ar["filters"] = children; |
| 428 | } |
| 429 | |
| 430 | private: |
| 431 | FilterManager() = default; |
nothing calls this directly
no test coverage detected