comparison OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 5168:688b83f915bc

new OrthancConfiguration ctor in c++ wrapper
author Alain Mazy <am@osimis.io>
date Wed, 22 Feb 2023 11:10:40 +0100
parents d00db9fb48fb
children 6b07c1a14d55
comparison
equal deleted inserted replaced
5167:de7a639c5ad2 5168:688b83f915bc
344 std::string GetPath(const std::string& key) const; 344 std::string GetPath(const std::string& key) const;
345 345
346 void LoadConfiguration(); 346 void LoadConfiguration();
347 347
348 public: 348 public:
349 OrthancConfiguration(); 349 OrthancConfiguration(); // loads the full Orthanc configuration
350 350
351 explicit OrthancConfiguration(bool load); 351 explicit OrthancConfiguration(bool load);
352
353 explicit OrthancConfiguration(const Json::Value& configuration, const std::string& path); // e.g. to load a section from a default json content
352 354
353 const Json::Value& GetJson() const 355 const Json::Value& GetJson() const
354 { 356 {
355 return configuration_; 357 return configuration_;
356 } 358 }