Mercurial > hg > orthanc-transfers
annotate Framework/DicomInstanceInfo.h @ 77:1e396fb509ca default
updated copyright, as Orthanc Team now replaces Osimis
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 May 2024 22:44:10 +0200 |
parents | 44a0430d7899 |
children |
rev | line source |
---|---|
0 | 1 /** |
2 * Transfers accelerator plugin for Orthanc | |
77
1e396fb509ca
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
33
diff
changeset
|
3 * Copyright (C) 2018-2023 Osimis S.A., Belgium |
1e396fb509ca
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
33
diff
changeset
|
4 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
1e396fb509ca
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
33
diff
changeset
|
5 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 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 <string> | |
25 #include <json/value.h> | |
26 | |
27 namespace OrthancPlugins | |
28 { | |
29 class MemoryBuffer; | |
30 | |
31 class DicomInstanceInfo | |
32 { | |
33 private: | |
34 std::string id_; | |
35 size_t size_; | |
36 std::string md5_; | |
37 | |
38 public: | |
39 DicomInstanceInfo() : | |
40 size_(0) | |
41 { | |
42 } | |
43 | |
44 DicomInstanceInfo(const std::string& id, | |
45 const MemoryBuffer& buffer); | |
46 | |
47 DicomInstanceInfo(const std::string& id, | |
48 size_t size, | |
49 const std::string& md5); | |
50 | |
12 | 51 explicit DicomInstanceInfo(const Json::Value& serialized); |
0 | 52 |
53 const std::string& GetId() const | |
54 { | |
55 return id_; | |
56 } | |
57 | |
58 size_t GetSize() const | |
59 { | |
60 return size_; | |
61 } | |
62 | |
63 const std::string& GetMD5() const | |
64 { | |
65 return md5_; | |
66 } | |
67 | |
68 void Serialize(Json::Value& target) const; | |
69 }; | |
70 } |