Mercurial > hg > orthanc-stone
annotate OrthancStone/Sources/Deprecated/Toolbox/OrthancApiClient.h @ 1556:8898f8f755c8
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Aug 2020 11:58:47 +0200 |
parents | 244ad1e4e76a |
children |
rev | line source |
---|---|
270 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
1270
2d8ab34c8c91
upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1057
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
270 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include <boost/shared_ptr.hpp> | |
25 #include <json/json.h> | |
26 | |
27 #include "IWebService.h" | |
1066
b537002f83a9
removing broker from deprecated classes
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1060
diff
changeset
|
28 #include "../../Messages/ObserverBase.h" |
270 | 29 |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
643
diff
changeset
|
30 namespace Deprecated |
270 | 31 { |
1227
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
32 enum SliceImageQuality |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
33 { |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
34 SliceImageQuality_FullPng, // smaller to transmit but longer to generate on Orthanc side (better choice when on low bandwidth) |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
35 SliceImageQuality_FullPam, // bigger to transmit but faster to generate on Orthanc side (better choice when on localhost or LAN) |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
36 SliceImageQuality_Jpeg50, |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
37 SliceImageQuality_Jpeg90, |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
38 SliceImageQuality_Jpeg95, |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
39 |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
40 SliceImageQuality_InternalRaw // downloads the raw pixels data as they are stored in the DICOM file (internal use only) |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
41 }; |
a1c0c9c9f9af
deprecating SliceImageQuality enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1222
diff
changeset
|
42 |
383
939f626eb6d7
removing converters in OrthancApiClient
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
382
diff
changeset
|
43 class OrthancApiClient : |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
643
diff
changeset
|
44 public OrthancStone::IObservable, |
1066
b537002f83a9
removing broker from deprecated classes
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1060
diff
changeset
|
45 public OrthancStone::ObserverBase<OrthancApiClient> |
270 | 46 { |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
47 public: |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
643
diff
changeset
|
48 class JsonResponseReadyMessage : public OrthancStone::IMessage |
270 | 49 { |
643
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
50 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); |
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
51 |
377 | 52 private: |
53 const std::string& uri_; | |
54 const Json::Value& json_; | |
55 const Orthanc::IDynamicObject* payload_; | |
270 | 56 |
377 | 57 public: |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
58 JsonResponseReadyMessage(const std::string& uri, |
377 | 59 const Json::Value& json, |
60 const Orthanc::IDynamicObject* payload) : | |
61 uri_(uri), | |
62 json_(json), | |
63 payload_(payload) | |
270 | 64 { |
65 } | |
66 | |
377 | 67 const std::string& GetUri() const |
68 { | |
69 return uri_; | |
70 } | |
71 | |
72 const Json::Value& GetJson() const | |
73 { | |
74 return json_; | |
75 } | |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
76 |
377 | 77 bool HasPayload() const |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
78 { |
377 | 79 return payload_ != NULL; |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
80 } |
377 | 81 |
82 const Orthanc::IDynamicObject& GetPayload() const; | |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
83 }; |
377 | 84 |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
85 |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
643
diff
changeset
|
86 class BinaryResponseReadyMessage : public OrthancStone::IMessage |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
87 { |
643
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
88 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); |
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
89 |
377 | 90 private: |
91 const std::string& uri_; | |
92 const void* answer_; | |
93 size_t answerSize_; | |
94 const Orthanc::IDynamicObject* payload_; | |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
95 |
377 | 96 public: |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
97 BinaryResponseReadyMessage(const std::string& uri, |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
98 const void* answer, |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
99 size_t answerSize, |
377 | 100 const Orthanc::IDynamicObject* payload) : |
101 uri_(uri), | |
102 answer_(answer), | |
103 answerSize_(answerSize), | |
104 payload_(payload) | |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
105 { |
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
106 } |
377 | 107 |
108 const std::string& GetUri() const | |
109 { | |
110 return uri_; | |
111 } | |
112 | |
113 const void* GetAnswer() const | |
114 { | |
115 return answer_; | |
116 } | |
117 | |
118 size_t GetAnswerSize() const | |
119 { | |
120 return answerSize_; | |
121 } | |
122 | |
123 bool HasPayload() const | |
124 { | |
125 return payload_ != NULL; | |
126 } | |
127 | |
128 const Orthanc::IDynamicObject& GetPayload() const; | |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
129 }; |
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
130 |
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
131 |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
643
diff
changeset
|
132 class EmptyResponseReadyMessage : public OrthancStone::IMessage |
377 | 133 { |
643
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
134 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); |
f0008c55e5f7
getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
553
diff
changeset
|
135 |
377 | 136 private: |
137 const std::string& uri_; | |
138 const Orthanc::IDynamicObject* payload_; | |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
139 |
377 | 140 public: |
141 EmptyResponseReadyMessage(const std::string& uri, | |
142 const Orthanc::IDynamicObject* payload) : | |
143 uri_(uri), | |
144 payload_(payload) | |
145 { | |
146 } | |
147 | |
148 const std::string& GetUri() const | |
149 { | |
150 return uri_; | |
151 } | |
152 | |
153 bool HasPayload() const | |
154 { | |
155 return payload_ != NULL; | |
156 } | |
157 | |
158 const Orthanc::IDynamicObject& GetPayload() const; | |
159 }; | |
270 | 160 |
377 | 161 |
162 | |
382
dd4c7e82b4be
removed class OrthancApiClient::HttpErrorMessage, redundant with IWebService::HttpRequestErrorMessage
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
377
diff
changeset
|
163 private: |
dd4c7e82b4be
removed class OrthancApiClient::HttpErrorMessage, redundant with IWebService::HttpRequestErrorMessage
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
377
diff
changeset
|
164 class WebServicePayload; |
422
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
165 |
270 | 166 protected: |
417
aee3d7941c9b
preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
383
diff
changeset
|
167 IWebService& web_; |
aee3d7941c9b
preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
383
diff
changeset
|
168 std::string baseUrl_; |
270 | 169 |
170 public: | |
1060
e146743f6cdc
removing file MessageBroker.h
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1057
diff
changeset
|
171 OrthancApiClient(IWebService& web, |
417
aee3d7941c9b
preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
383
diff
changeset
|
172 const std::string& baseUrl); |
377 | 173 |
174 virtual ~OrthancApiClient() | |
175 { | |
176 } | |
270 | 177 |
553
92305ee35b1c
web-worker consequences: give access to lower level data
Alain Mazy <alain@mazy.be>
parents:
502
diff
changeset
|
178 const std::string& GetBaseUrl() const {return baseUrl_;} |
92305ee35b1c
web-worker consequences: give access to lower level data
Alain Mazy <alain@mazy.be>
parents:
502
diff
changeset
|
179 |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
180 // schedule a GET request expecting a JSON response. |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
181 void GetJsonAsync(const std::string& uri, |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
182 MessageHandler<JsonResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
183 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
377 | 184 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
270 | 185 |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
186 // schedule a GET request expecting a binary response. |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
187 void GetBinaryAsync(const std::string& uri, |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
188 const std::string& contentType, |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
189 MessageHandler<BinaryResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
190 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
382
dd4c7e82b4be
removed class OrthancApiClient::HttpErrorMessage, redundant with IWebService::HttpRequestErrorMessage
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
377
diff
changeset
|
191 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
270 | 192 |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
193 // schedule a GET request expecting a binary response. |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
194 void GetBinaryAsync(const std::string& uri, |
417
aee3d7941c9b
preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
383
diff
changeset
|
195 const IWebService::HttpHeaders& headers, |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
196 MessageHandler<BinaryResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
197 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
377 | 198 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
199 |
300
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
200 // schedule a POST request expecting a JSON response. |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
201 void PostBinaryAsyncExpectJson(const std::string& uri, |
b4abaeb783b1
messaging refactoring almost complete: works fine in native
am@osimis.io
parents:
299
diff
changeset
|
202 const std::string& body, |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
203 MessageHandler<JsonResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
204 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
377 | 205 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
206 |
309 | 207 // schedule a POST request expecting a JSON response. |
208 void PostJsonAsyncExpectJson(const std::string& uri, | |
209 const Json::Value& data, | |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
210 MessageHandler<JsonResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
211 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
377 | 212 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
299
3897f9f28cfa
backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents:
271
diff
changeset
|
213 |
424
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
214 // schedule a POST request and don't mind the response. |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
215 void PostJsonAsync(const std::string& uri, |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
216 const Json::Value& data); |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
217 |
502 | 218 // schedule a POST request and don't expect any response. |
219 void PostJsonAsync(const std::string& uri, | |
220 const Json::Value& data, | |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
221 MessageHandler<EmptyResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
222 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
502 | 223 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
224 | |
225 | |
424
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
226 // schedule a POST request and don't mind the response. |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
227 void PostBinaryAsync(const std::string& uri, |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
228 const std::string& body); |
bb573a52fc63
allow POST messages with success and failure handlers
am@osimis.io
parents:
422
diff
changeset
|
229 |
502 | 230 // schedule a POST request and don't expect any response. |
231 void PostBinaryAsync(const std::string& uri, | |
232 const std::string& body, | |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
233 MessageHandler<EmptyResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
234 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
502 | 235 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
236 | |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
237 // schedule a DELETE request expecting an empty response. |
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
238 void DeleteAsync(const std::string& uri, |
1222
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
239 MessageHandler<EmptyResponseReadyMessage>* successCallback, |
21c2b0eee53c
deprecating MessageHandler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
240 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL, |
377 | 241 Orthanc::IDynamicObject* payload = NULL /* takes ownership */); |
315
aad37d0b6407
Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents:
309
diff
changeset
|
242 |
382
dd4c7e82b4be
removed class OrthancApiClient::HttpErrorMessage, redundant with IWebService::HttpRequestErrorMessage
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
377
diff
changeset
|
243 void NotifyHttpSuccess(const IWebService::HttpRequestSuccessMessage& message); |
383
939f626eb6d7
removing converters in OrthancApiClient
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
382
diff
changeset
|
244 |
939f626eb6d7
removing converters in OrthancApiClient
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
382
diff
changeset
|
245 void NotifyHttpError(const IWebService::HttpRequestErrorMessage& message); |
422
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
246 |
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
247 private: |
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
248 void HandleFromCache(const std::string& uri, |
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
249 const IWebService::HttpHeaders& headers, |
4fe42ae3653a
introduced a basic cache at OrthancApiClient level so it can be used with the RadiographyScene
am@osimis.io
parents:
417
diff
changeset
|
250 Orthanc::IDynamicObject* payload /* takes ownership */); |
270 | 251 }; |
252 } |