Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/OrthancPeerStoreJob.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 | ef696db8426f |
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/HttpClient.h" | 38 #include "../../Core/HttpClient.h" |
38 | 39 |
39 | 40 |
40 namespace Orthanc | 41 namespace Orthanc |
42 class ServerContext; | 43 class ServerContext; |
43 | 44 |
44 class OrthancPeerStoreJob : public SetOfInstancesJob | 45 class OrthancPeerStoreJob : public SetOfInstancesJob |
45 { | 46 { |
46 private: | 47 private: |
47 ServerContext& context_; | 48 ServerContext& context_; |
48 WebServiceParameters peer_; | 49 WebServiceParameters peer_; |
49 std::auto_ptr<HttpClient> client_; | 50 std::unique_ptr<HttpClient> client_; |
50 | 51 |
51 protected: | 52 protected: |
52 virtual bool HandleInstance(const std::string& instance); | 53 virtual bool HandleInstance(const std::string& instance); |
53 | 54 |
54 virtual bool HandleTrailingStep(); | 55 virtual bool HandleTrailingStep(); |