Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/DicomModalityStoreJob.h @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 94f4a18a79cc |
children | 4fc24b69446a |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
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); |