diff OrthancServer/Sources/ServerJobs/ResourceModificationJob.h @ 5136:e71b22a43c0b

Threaded modifications continued: call ReconstructInstance at the end of the modification to update the DB model
author Alain Mazy <am@osimis.io>
date Tue, 17 Jan 2023 17:54:38 +0100
parents f2dcdbe05884
children 15109c3f0f7d
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ResourceModificationJob.h	Wed Jan 11 11:14:00 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ResourceModificationJob.h	Tue Jan 17 17:54:38 2023 +0100
@@ -60,10 +60,14 @@
     DicomInstanceOrigin                 origin_;
     bool                                transcode_;
     DicomTransferSyntax                 transferSyntax_;
+    std::set<std::string>               modifiedInstances_;   // the list of new instance ids of the newly generated instances
+
 
   protected:
     virtual bool HandleInstance(const std::string& instance) ORTHANC_OVERRIDE; // from ThreadedSetOfInstancesJob
     
+    virtual void PostProcessInstances();
+
   public:
     explicit ResourceModificationJob(ServerContext& context, unsigned int workersCount);
 
@@ -121,5 +125,7 @@
     virtual void GetPublicContent(Json::Value& value) ORTHANC_OVERRIDE;
     
     virtual bool Serialize(Json::Value& value) ORTHANC_OVERRIDE;
+
+    virtual void Reset() ORTHANC_OVERRIDE;
   };
 }