Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2167:aa2915963531
"Folders" sub-configuration in ServeFolders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Nov 2016 14:19:42 +0100 |
parents | 82461d1e8e17 |
children | fead5549aaa7 |
comparison
equal
deleted
inserted
replaced
2166:700dbb3baac9 | 2167:aa2915963531 |
---|---|
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 |