comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2167:aa2915963531

"Folders" sub-configuration in ServeFolders
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Nov 2016 14:19:42 +0100
parents d5c29fd74ffa
children fead5549aaa7
comparison
equal deleted inserted replaced
2166:700dbb3baac9 2167:aa2915963531
189 189
190 class OrthancConfiguration : public boost::noncopyable 190 class OrthancConfiguration : public boost::noncopyable
191 { 191 {
192 private: 192 private:
193 OrthancPluginContext* context_; 193 OrthancPluginContext* context_;
194 Json::Value configuration_; 194 Json::Value configuration_; // Necessarily a Json::objectValue
195 std::string path_; 195 std::string path_;
196 196
197 std::string GetPath(const std::string& key) const; 197 std::string GetPath(const std::string& key) const;
198 198
199 public: 199 public:
207 207
208 const Json::Value& GetJson() const 208 const Json::Value& GetJson() const
209 { 209 {
210 return configuration_; 210 return configuration_;
211 } 211 }
212
213 bool IsSection(const std::string& key) const;
212 214
213 void GetSection(OrthancConfiguration& target, 215 void GetSection(OrthancConfiguration& target,
214 const std::string& key) const; 216 const std::string& key) const;
215 217
216 bool LookupStringValue(std::string& target, 218 bool LookupStringValue(std::string& target,