comparison 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
comparison
equal deleted inserted replaced
53:175d06fa292e 54:06847108819c
366 return path_ + "." + key; 366 return path_ + "." + key;
367 } 367 }
368 } 368 }
369 369
370 370
371 bool OrthancConfiguration::IsSection(const std::string& key) const
372 {
373 assert(configuration_.type() == Json::objectValue);
374
375 return (configuration_.isMember(key) &&
376 configuration_[key].type() == Json::objectValue);
377 }
378
379
371 void OrthancConfiguration::GetSection(OrthancConfiguration& target, 380 void OrthancConfiguration::GetSection(OrthancConfiguration& target,
372 const std::string& key) const 381 const std::string& key) const
373 { 382 {
374 assert(configuration_.type() == Json::objectValue); 383 assert(configuration_.type() == Json::objectValue);
375 384