Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.h @ 1934:72a2fd7fed8b
FromDcmtkBridge::FromJson
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Mar 2016 15:11:53 +0100 |
parents | cda5b0ab4ce5 |
children | e251606c1433 |
comparison
equal
deleted
inserted
replaced
1933:ff11ba08e5d0 | 1934:72a2fd7fed8b |
---|---|
52 const DcmEVR& vr, | 52 const DcmEVR& vr, |
53 const std::string& name, | 53 const std::string& name, |
54 unsigned int minMultiplicity, | 54 unsigned int minMultiplicity, |
55 unsigned int maxMultiplicity); | 55 unsigned int maxMultiplicity); |
56 | 56 |
57 static Encoding DetectEncoding(DcmDataset& dataset, | 57 static Encoding DetectEncoding(DcmDataset & dataset, |
58 Encoding defaultEncoding); | 58 Encoding defaultEncoding); |
59 | 59 |
60 static void Convert(DicomMap& target, | 60 static void Convert(DicomMap& target, |
61 DcmDataset& dataset, | 61 DcmDataset& dataset, |
62 unsigned int maxStringLength, | 62 unsigned int maxStringLength, |
139 const std::string& utf8alue, // Encoded using UTF-8 | 139 const std::string& utf8alue, // Encoded using UTF-8 |
140 bool decodeDataUriScheme, | 140 bool decodeDataUriScheme, |
141 Encoding dicomEncoding); | 141 Encoding dicomEncoding); |
142 | 142 |
143 static DcmElement* FromJson(const DicomTag& tag, | 143 static DcmElement* FromJson(const DicomTag& tag, |
144 const Json::Value& element, // Encoding using UTF-8 | 144 const Json::Value& element, // Encoded using UTF-8 |
145 bool decodeDataUriScheme, | 145 bool decodeDataUriScheme, |
146 Encoding dicomEncoding); | 146 Encoding dicomEncoding); |
147 | 147 |
148 static DcmEVR ParseValueRepresentation(const std::string& s); | 148 static DcmEVR ParseValueRepresentation(const std::string& s); |
149 | 149 |
150 static DcmPixelSequence* GetPixelSequence(DcmDataset& dataset); | 150 static DcmPixelSequence* GetPixelSequence(DcmDataset& dataset); |
151 | |
152 static Encoding ExtractEncoding(const Json::Value& json, | |
153 Encoding defaultEncoding); | |
154 | |
155 static DcmDataset* FromJson(const Json::Value& json, // Encoded using UTF-8 | |
156 bool generateIdentifiers, | |
157 bool decodeDataUriScheme, | |
158 Encoding defaultEncoding); | |
151 }; | 159 }; |
152 } | 160 } |