diff --git a/common/groupkv.hpp b/common/groupkv.hpp index 7459c79b0..fbaa9dcba 100644 --- a/common/groupkv.hpp +++ b/common/groupkv.hpp @@ -99,6 +99,12 @@ public: return ss.str(); } + bool group_exists(const std::string &group) { + if (gkv.find(group) == gkv.end()) { + return false; + } + return true; + } template void set_value(const std::string &group, const MultiPart &keyParts, const SupportedDataType &value, const std::string &callerName="") {