Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.h @ 1982:b5d4f9c156ad
Modification of instances can now replace PixelData
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Apr 2016 10:28:55 +0200 |
parents | 533ff46e944b |
children | 9329ba17a069 |
comparison
equal
deleted
inserted
replaced
1981:4b545a8b1f95 | 1982:b5d4f9c156ad |
---|---|
57 const std::string& value, | 57 const std::string& value, |
58 bool decodeDataUriScheme); | 58 bool decodeDataUriScheme); |
59 | 59 |
60 void InvalidateCache(); | 60 void InvalidateCache(); |
61 | 61 |
62 bool EmbedContentInternal(const std::string& dataUriScheme); | |
63 | |
62 public: | 64 public: |
63 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance | 65 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance |
64 | 66 |
65 ParsedDicomFile(const DicomMap& map); | 67 ParsedDicomFile(const DicomMap& map); |
66 | 68 |
86 | 88 |
87 void Remove(const DicomTag& tag); | 89 void Remove(const DicomTag& tag); |
88 | 90 |
89 void Replace(const DicomTag& tag, | 91 void Replace(const DicomTag& tag, |
90 const std::string& utf8Value, | 92 const std::string& utf8Value, |
91 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); | 93 bool decodeDataUriScheme, |
94 DicomReplaceMode mode); | |
92 | 95 |
93 void Replace(const DicomTag& tag, | 96 void Replace(const DicomTag& tag, |
94 const Json::Value& value, // Assumed to be encoded with UTF-8 | 97 const Json::Value& value, // Assumed to be encoded with UTF-8 |
95 bool decodeDataUriScheme, | 98 bool decodeDataUriScheme, |
96 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); | 99 DicomReplaceMode mode); |
97 | 100 |
98 void Insert(const DicomTag& tag, | 101 void Insert(const DicomTag& tag, |
99 const Json::Value& value, // Assumed to be encoded with UTF-8 | 102 const Json::Value& value, // Assumed to be encoded with UTF-8 |
100 bool decodeDataUriScheme); | 103 bool decodeDataUriScheme); |
104 | |
105 void ReplacePlainString(const DicomTag& tag, | |
106 const std::string& utf8Value) | |
107 { | |
108 Replace(tag, utf8Value, false, DicomReplaceMode_InsertIfAbsent); | |
109 } | |
101 | 110 |
102 void RemovePrivateTags() | 111 void RemovePrivateTags() |
103 { | 112 { |
104 RemovePrivateTagsInternal(NULL); | 113 RemovePrivateTagsInternal(NULL); |
105 } | 114 } |