Mercurial > hg > orthanc-wsi
diff Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 54:06847108819c
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Nov 2016 12:59:50 +0100 |
parents | d10ff48e47ff |
children |
line wrap: on
line diff
--- a/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Nov 17 15:47:09 2016 +0100 +++ b/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Nov 24 12:59:50 2016 +0100 @@ -368,6 +368,15 @@ } + bool OrthancConfiguration::IsSection(const std::string& key) const + { + assert(configuration_.type() == Json::objectValue); + + return (configuration_.isMember(key) && + configuration_[key].type() == Json::objectValue); + } + + void OrthancConfiguration::GetSection(OrthancConfiguration& target, const std::string& key) const {