Mercurial > hg > orthanc
annotate OrthancServer/Sources/ExportedResource.h @ 5183:5ec3dcdf78b9
renamed HousekeeperThread as MemoryTrimmingThread to avoid confusion with Housekeeper plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 25 Mar 2023 12:07:39 +0100 |
parents | 6eff25f70121 |
children | 0ea402b4d901 |
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 |
4870
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium |
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
1242 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU General Public License as | |
10 * published by the Free Software Foundation, either version 3 of the | |
11 * 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 * General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU 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 "ServerEnumerations.h" | |
4045 | 26 #include "../../OrthancFramework/Sources/Toolbox.h" |
1242 | 27 |
28 #include <string> | |
29 #include <json/value.h> | |
30 | |
31 namespace Orthanc | |
32 { | |
1247 | 33 class ExportedResource |
1242 | 34 { |
35 private: | |
36 int64_t seq_; | |
37 ResourceType resourceType_; | |
38 std::string publicId_; | |
39 std::string modality_; | |
40 std::string date_; | |
41 std::string patientId_; | |
42 std::string studyInstanceUid_; | |
43 std::string seriesInstanceUid_; | |
44 std::string sopInstanceUid_; | |
45 | |
46 public: | |
47 ExportedResource(int64_t seq, | |
48 ResourceType resourceType, | |
49 const std::string& publicId, | |
50 const std::string& modality, | |
51 const std::string& date, | |
52 const std::string& patientId, | |
53 const std::string& studyInstanceUid, | |
54 const std::string& seriesInstanceUid, | |
55 const std::string& sopInstanceUid) : | |
56 seq_(seq), | |
57 resourceType_(resourceType), | |
58 publicId_(publicId), | |
59 modality_(modality), | |
60 date_(date), | |
61 patientId_(patientId), | |
62 studyInstanceUid_(studyInstanceUid), | |
63 seriesInstanceUid_(seriesInstanceUid), | |
64 sopInstanceUid_(sopInstanceUid) | |
65 { | |
66 } | |
67 | |
68 int64_t GetSeq() const | |
69 { | |
70 return seq_; | |
71 } | |
72 | |
73 ResourceType GetResourceType() const | |
74 { | |
75 return resourceType_; | |
76 } | |
77 | |
78 const std::string& GetPublicId() const | |
79 { | |
80 return publicId_; | |
81 } | |
82 | |
83 const std::string& GetModality() const | |
84 { | |
85 return modality_; | |
86 } | |
87 | |
88 const std::string& GetDate() const | |
89 { | |
90 return date_; | |
91 } | |
92 | |
1246 | 93 const std::string& GetPatientId() const |
94 { | |
95 return patientId_; | |
96 } | |
97 | |
98 const std::string& GetStudyInstanceUid() const | |
99 { | |
100 return studyInstanceUid_; | |
101 } | |
102 | |
103 const std::string& GetSeriesInstanceUid() const | |
104 { | |
105 return seriesInstanceUid_; | |
106 } | |
107 | |
108 const std::string& GetSopInstanceUid() const | |
109 { | |
110 return sopInstanceUid_; | |
111 } | |
112 | |
1247 | 113 void Format(Json::Value& item) const; |
1242 | 114 }; |
115 } |