Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.h @ 1818:1065401501fb worklists
ParsedDicomFile::CreateFromJson
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2015 16:48:23 +0100 |
parents | f08978b1f45b |
children | b530c3dfe2a6 |
comparison
equal
deleted
inserted
replaced
1817:9a6de24209cf | 1818:1065401501fb |
---|---|
57 | 57 |
58 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep); | 58 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep); |
59 | 59 |
60 void UpdateStorageUid(const DicomTag& tag, | 60 void UpdateStorageUid(const DicomTag& tag, |
61 const std::string& value, | 61 const std::string& value, |
62 bool decodeBinaryTags); | 62 bool decodeDataUriScheme); |
63 | 63 |
64 public: | 64 public: |
65 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance | 65 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance |
66 | 66 |
67 ParsedDicomFile(const DicomMap& map); | 67 ParsedDicomFile(const DicomMap& map); |
92 const std::string& utf8Value, | 92 const std::string& utf8Value, |
93 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); | 93 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); |
94 | 94 |
95 void Replace(const DicomTag& tag, | 95 void Replace(const DicomTag& tag, |
96 const Json::Value& value, // Assumed to be encoded with UTF-8 | 96 const Json::Value& value, // Assumed to be encoded with UTF-8 |
97 bool decodeBinaryTags, | 97 bool decodeDataUriScheme, |
98 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); | 98 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); |
99 | 99 |
100 void Insert(const DicomTag& tag, | 100 void Insert(const DicomTag& tag, |
101 const Json::Value& value, // Assumed to be encoded with UTF-8 | 101 const Json::Value& value, // Assumed to be encoded with UTF-8 |
102 bool decodeBinaryTags); | 102 bool decodeDataUriScheme); |
103 | 103 |
104 void RemovePrivateTags() | 104 void RemovePrivateTags() |
105 { | 105 { |
106 RemovePrivateTagsInternal(NULL); | 106 RemovePrivateTagsInternal(NULL); |
107 } | 107 } |
157 void EmbedPdf(const std::string& pdf); | 157 void EmbedPdf(const std::string& pdf); |
158 | 158 |
159 bool ExtractPdf(std::string& pdf); | 159 bool ExtractPdf(std::string& pdf); |
160 | 160 |
161 void Convert(DicomMap& tags); | 161 void Convert(DicomMap& tags); |
162 | |
163 static ParsedDicomFile* CreateFromJson(const Json::Value& value, | |
164 DicomFromJsonFlags flags); | |
162 }; | 165 }; |
163 | 166 |
164 } | 167 } |