Mercurial > hg > orthanc
annotate OrthancServer/Sources/ExportedResource.h @ 4741:a6b7c29f5118 openssl-3.x
compiler warning about openssl license
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 06 Jul 2021 09:52:15 +0200 |
parents | f0038043fb97 |
children | 2e71a08eea15 |
rev | line source |
---|---|
1242 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1288
6e7e5ed91c2d
upgrade to year 2015
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1247
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
4437
d9473bd5ed43
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4045
diff
changeset
|
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium |
1242 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU General Public License as | |
9 * published by the Free Software Foundation, either version 3 of the | |
10 * 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 * General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU 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 "ServerEnumerations.h" | |
4045 | 25 #include "../../OrthancFramework/Sources/Toolbox.h" |
1242 | 26 |
27 #include <string> | |
28 #include <json/value.h> | |
29 | |
30 namespace Orthanc | |
31 { | |
1247 | 32 class ExportedResource |
1242 | 33 { |
34 private: | |
35 int64_t seq_; | |
36 ResourceType resourceType_; | |
37 std::string publicId_; | |
38 std::string modality_; | |
39 std::string date_; | |
40 std::string patientId_; | |
41 std::string studyInstanceUid_; | |
42 std::string seriesInstanceUid_; | |
43 std::string sopInstanceUid_; | |
44 | |
45 public: | |
46 ExportedResource(int64_t seq, | |
47 ResourceType resourceType, | |
48 const std::string& publicId, | |
49 const std::string& modality, | |
50 const std::string& date, | |
51 const std::string& patientId, | |
52 const std::string& studyInstanceUid, | |
53 const std::string& seriesInstanceUid, | |
54 const std::string& sopInstanceUid) : | |
55 seq_(seq), | |
56 resourceType_(resourceType), | |
57 publicId_(publicId), | |
58 modality_(modality), | |
59 date_(date), | |
60 patientId_(patientId), | |
61 studyInstanceUid_(studyInstanceUid), | |
62 seriesInstanceUid_(seriesInstanceUid), | |
63 sopInstanceUid_(sopInstanceUid) | |
64 { | |
65 } | |
66 | |
67 int64_t GetSeq() const | |
68 { | |
69 return seq_; | |
70 } | |
71 | |
72 ResourceType GetResourceType() const | |
73 { | |
74 return resourceType_; | |
75 } | |
76 | |
77 const std::string& GetPublicId() const | |
78 { | |
79 return publicId_; | |
80 } | |
81 | |
82 const std::string& GetModality() const | |
83 { | |
84 return modality_; | |
85 } | |
86 | |
87 const std::string& GetDate() const | |
88 { | |
89 return date_; | |
90 } | |
91 | |
1246 | 92 const std::string& GetPatientId() const |
93 { | |
94 return patientId_; | |
95 } | |
96 | |
97 const std::string& GetStudyInstanceUid() const | |
98 { | |
99 return studyInstanceUid_; | |
100 } | |
101 | |
102 const std::string& GetSeriesInstanceUid() const | |
103 { | |
104 return seriesInstanceUid_; | |
105 } | |
106 | |
107 const std::string& GetSopInstanceUid() const | |
108 { | |
109 return sopInstanceUid_; | |
110 } | |
111 | |
1247 | 112 void Format(Json::Value& item) const; |
1242 | 113 }; |
114 } |