Mercurial > hg > orthanc-stone
comparison Platforms/Generic/WebServiceCommandBase.h @ 1298:8a0a62189f46
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 16:31:30 +0100 |
parents | 2d8ab34c8c91 |
children | 257f2c9a02ac |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
35 namespace Deprecated | 35 namespace Deprecated |
36 { | 36 { |
37 class WebServiceCommandBase : public IOracleCommand, OrthancStone::IObservable | 37 class WebServiceCommandBase : public IOracleCommand, OrthancStone::IObservable |
38 { | 38 { |
39 protected: | 39 protected: |
40 std::auto_ptr<OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage> > successCallback_; | 40 std::unique_ptr<OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage> > successCallback_; |
41 std::auto_ptr<OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage> > failureCallback_; | 41 std::unique_ptr<OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage> > failureCallback_; |
42 Orthanc::WebServiceParameters parameters_; | 42 Orthanc::WebServiceParameters parameters_; |
43 std::string url_; | 43 std::string url_; |
44 IWebService::HttpHeaders headers_; | 44 IWebService::HttpHeaders headers_; |
45 std::auto_ptr<Orthanc::IDynamicObject> payload_; | 45 std::unique_ptr<Orthanc::IDynamicObject> payload_; |
46 bool success_; | 46 bool success_; |
47 Orthanc::HttpStatus httpStatus_; | 47 Orthanc::HttpStatus httpStatus_; |
48 std::string answer_; | 48 std::string answer_; |
49 IWebService::HttpHeaders answerHeaders_; | 49 IWebService::HttpHeaders answerHeaders_; |
50 OrthancStone::NativeStoneApplicationContext& context_; | 50 OrthancStone::NativeStoneApplicationContext& context_; |