comparison 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
comparison
equal deleted inserted replaced
5135:252385892197 5136:e71b22a43c0b
58 boost::shared_ptr<IOutput> output_; 58 boost::shared_ptr<IOutput> output_;
59 bool isAnonymization_; 59 bool isAnonymization_;
60 DicomInstanceOrigin origin_; 60 DicomInstanceOrigin origin_;
61 bool transcode_; 61 bool transcode_;
62 DicomTransferSyntax transferSyntax_; 62 DicomTransferSyntax transferSyntax_;
63 std::set<std::string> modifiedInstances_; // the list of new instance ids of the newly generated instances
64
63 65
64 protected: 66 protected:
65 virtual bool HandleInstance(const std::string& instance) ORTHANC_OVERRIDE; // from ThreadedSetOfInstancesJob 67 virtual bool HandleInstance(const std::string& instance) ORTHANC_OVERRIDE; // from ThreadedSetOfInstancesJob
66 68
69 virtual void PostProcessInstances();
70
67 public: 71 public:
68 explicit ResourceModificationJob(ServerContext& context, unsigned int workersCount); 72 explicit ResourceModificationJob(ServerContext& context, unsigned int workersCount);
69 73
70 ResourceModificationJob(ServerContext& context, 74 ResourceModificationJob(ServerContext& context,
71 const Json::Value& serialized); 75 const Json::Value& serialized);
119 } 123 }
120 124
121 virtual void GetPublicContent(Json::Value& value) ORTHANC_OVERRIDE; 125 virtual void GetPublicContent(Json::Value& value) ORTHANC_OVERRIDE;
122 126
123 virtual bool Serialize(Json::Value& value) ORTHANC_OVERRIDE; 127 virtual bool Serialize(Json::Value& value) ORTHANC_OVERRIDE;
128
129 virtual void Reset() ORTHANC_OVERRIDE;
124 }; 130 };
125 } 131 }