Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomSequencesMap.h @ 5043:ec5c203a97ea
returning sequences in MainDicomTags and RequestedTags
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 27 Jun 2022 15:22:19 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5042:120945ce48b6 | 5043:ec5c203a97ea |
---|---|
1 /** | |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium | |
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
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 "../../../OrthancFramework/Sources/DicomFormat/DicomTag.h" | |
26 | |
27 #include <json/value.h> | |
28 #include <boost/noncopyable.hpp> | |
29 | |
30 #include <map> | |
31 | |
32 namespace Orthanc | |
33 { | |
34 class DatabaseLookup; | |
35 class ParsedDicomFile; | |
36 struct ServerIndexChange; | |
37 | |
38 /* | |
39 * contains a map of dicom sequences where: | |
40 * the key is a DicomTag | |
41 * the sequence is serialized in Json "full" format | |
42 */ | |
43 struct DicomSequencesMap : public boost::noncopyable | |
44 { | |
45 std::map<DicomTag, Json::Value> sequences_; | |
46 | |
47 void Deserialize(const Json::Value& serialized); | |
48 void Serialize(Json::Value& target, const std::set<DicomTag>& tagsSubset) const; | |
49 void FromDicomAsJson(const Json::Value& dicomAsJson, const std::set<DicomTag>& tagsSubset); | |
50 void ToJson(Json::Value& target, DicomToJsonFormat format, const std::set<DicomTag>& tagsSubset) const; | |
51 | |
52 size_t GetSize() const | |
53 { | |
54 return sequences_.size(); | |
55 } | |
56 }; | |
57 } |