diff OrthancServer/ServerContext.h @ 2940:4767d36679ed

refactoring access to Orthanc configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 11:47:00 +0100
parents ae8e72009e64
children dc18d5804746
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Wed Nov 28 14:48:14 2018 +0100
+++ b/OrthancServer/ServerContext.h	Thu Nov 29 11:47:00 2018 +0100
@@ -180,7 +180,7 @@
     boost::thread  changeThread_;
     boost::thread  saveJobsThread_;
         
-    SharedArchive  queryRetrieveArchive_;
+    std::auto_ptr<SharedArchive>  queryRetrieveArchive_;
     std::string defaultLocalAet_;
     OrthancHttpHandler  httpHandler_;
 
@@ -301,7 +301,7 @@
 
     SharedArchive& GetQueryRetrieveArchive()
     {
-      return queryRetrieveArchive_;
+      return *queryRetrieveArchive_;
     }
 
     const std::string& GetDefaultLocalApplicationEntityTitle() const
@@ -346,5 +346,9 @@
 
     void AddChildInstances(SetOfInstancesJob& job,
                            const std::string& publicId);
+
+    void SignalUpdatedModalities();
+
+    void SignalUpdatedPeers();
   };
 }