comparison Framework/Targets/OrthancTarget.h @ 196:b0bd22077cd8

sharing code with orthanc-stone
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 17:57:38 +0200
parents e57e6ca5303d
children a1c265cb2174
comparison
equal deleted inserted replaced
195:fda17c92d784 196:b0bd22077cd8
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "IFileTarget.h" 24 #include "IFileTarget.h"
25 #include "../Inputs/Orthanc/IOrthancConnection.h" 25 #include "../../Resources/Orthanc/Stone/IOrthancConnection.h"
26 26
27 #include <WebServiceParameters.h> 27 #include <WebServiceParameters.h>
28 28
29 #include <memory> 29 #include <memory>
30 30
31 namespace OrthancWSI 31 namespace OrthancWSI
32 { 32 {
33 class OrthancTarget : public IFileTarget 33 class OrthancTarget : public IFileTarget
34 { 34 {
35 private: 35 private:
36 std::auto_ptr<OrthancPlugins::IOrthancConnection> orthanc_; 36 std::auto_ptr<OrthancStone::IOrthancConnection> orthanc_;
37 bool first_; 37 bool first_;
38 38
39 public: 39 public:
40 explicit OrthancTarget(const Orthanc::WebServiceParameters& parameters); 40 explicit OrthancTarget(const Orthanc::WebServiceParameters& parameters);
41 41
42 explicit OrthancTarget(OrthancPlugins::IOrthancConnection* orthanc) : // Takes ownership 42 explicit OrthancTarget(OrthancStone::IOrthancConnection* orthanc) : // Takes ownership
43 orthanc_(orthanc), 43 orthanc_(orthanc),
44 first_(true) 44 first_(true)
45 { 45 {
46 } 46 }
47 47