comparison OrthancServer/ServerJobs/DicomModalityStoreJob.h @ 3713:56f2397f027a storage-commitment

integration mainline->storage-commitment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:42:17 +0100
parents 2a170a8f1faf
children 4fc24b69446a
comparison
equal deleted inserted replaced
3711:14b363d972a8 3713:56f2397f027a
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "../../Core/Compatibility.h"
36 #include "../../Core/JobsEngine/SetOfInstancesJob.h" 37 #include "../../Core/JobsEngine/SetOfInstancesJob.h"
37 #include "../../Core/DicomNetworking/DicomUserConnection.h" 38 #include "../../Core/DicomNetworking/DicomUserConnection.h"
38 39
39 namespace Orthanc 40 namespace Orthanc
40 { 41 {
41 class ServerContext; 42 class ServerContext;
42 43
43 class DicomModalityStoreJob : public SetOfInstancesJob 44 class DicomModalityStoreJob : public SetOfInstancesJob
44 { 45 {
45 private: 46 private:
46 ServerContext& context_; 47 ServerContext& context_;
47 std::string localAet_; 48 std::string localAet_;
48 RemoteModalityParameters remote_; 49 RemoteModalityParameters remote_;
49 std::string moveOriginatorAet_; 50 std::string moveOriginatorAet_;
50 uint16_t moveOriginatorId_; 51 uint16_t moveOriginatorId_;
51 std::auto_ptr<DicomUserConnection> connection_; 52 std::unique_ptr<DicomUserConnection> connection_;
52 53
53 void OpenConnection(); 54 void OpenConnection();
54 55
55 protected: 56 protected:
56 virtual bool HandleInstance(const std::string& instance); 57 virtual bool HandleInstance(const std::string& instance);