diff 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
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Tue Feb 21 22:03:44 2023 +0100
+++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Wed Feb 22 11:10:40 2023 +0100
@@ -346,10 +346,12 @@
     void LoadConfiguration();
     
   public:
-    OrthancConfiguration();
+    OrthancConfiguration(); // loads the full Orthanc configuration
 
     explicit OrthancConfiguration(bool load);
 
+    explicit OrthancConfiguration(const Json::Value& configuration, const std::string& path);  // e.g. to load a section from a default json content
+
     const Json::Value& GetJson() const
     {
       return configuration_;