Mercurial > hg > orthanc-wsi
annotate Framework/Targets/OrthancTarget.h @ 309:7020852a8fa9
updated year to 2024
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Mar 2024 15:48:12 +0100 |
parents | 20a730889ae2 |
children | 0683312e21ba |
rev | line source |
---|---|
0 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
309
7020852a8fa9
updated year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
254
diff
changeset
|
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium |
7020852a8fa9
updated year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
254
diff
changeset
|
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Affero General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Affero General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Affero General Public License | |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 **/ | |
21 | |
22 | |
23 #pragma once | |
24 | |
25 #include "IFileTarget.h" | |
196
b0bd22077cd8
sharing code with orthanc-stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
194
diff
changeset
|
26 #include "../../Resources/Orthanc/Stone/IOrthancConnection.h" |
194 | 27 |
199
a1c265cb2174
replacing deprecated std::auto_ptr by std::unique_ptr
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
196
diff
changeset
|
28 #include <Compatibility.h> // For std::unique_ptr |
192 | 29 #include <WebServiceParameters.h> |
0 | 30 |
31 #include <memory> | |
32 | |
33 namespace OrthancWSI | |
34 { | |
35 class OrthancTarget : public IFileTarget | |
36 { | |
37 private: | |
199
a1c265cb2174
replacing deprecated std::auto_ptr by std::unique_ptr
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
196
diff
changeset
|
38 std::unique_ptr<OrthancStone::IOrthancConnection> orthanc_; |
61
147bd6dc28db
refactoring using new items in the plugin toolbox of Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
59
diff
changeset
|
39 bool first_; |
0 | 40 |
41 public: | |
91 | 42 explicit OrthancTarget(const Orthanc::WebServiceParameters& parameters); |
0 | 43 |
196
b0bd22077cd8
sharing code with orthanc-stone
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
194
diff
changeset
|
44 explicit OrthancTarget(OrthancStone::IOrthancConnection* orthanc) : // Takes ownership |
0 | 45 orthanc_(orthanc), |
46 first_(true) | |
47 { | |
48 } | |
49 | |
216 | 50 virtual void Write(const std::string& file) ORTHANC_OVERRIDE; |
0 | 51 }; |
52 } |