GroupKV: Add group_exists checker
This commit is contained in:
parent
dde72df9d3
commit
f294fddf43
1 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,12 @@ public:
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool group_exists(const std::string &group) {
|
||||||
|
if (gkv.find(group) == gkv.end()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename SupportedDataType>
|
template<typename SupportedDataType>
|
||||||
void set_value(const std::string &group, const MultiPart &keyParts, const SupportedDataType &value, const std::string &callerName="") {
|
void set_value(const std::string &group, const MultiPart &keyParts, const SupportedDataType &value, const std::string &callerName="") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue