comparison OrthancServer/ParsedDicomFile.h @ 2207:6dc3bdb4088b

Fix handling of encodings in C-FIND for worklists
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Dec 2016 11:24:04 +0100
parents 9b373b7d6713
children e3fd5bc429a2
comparison
equal deleted inserted replaced
2206:27106f7e3759 2207:6dc3bdb4088b
123 void RemovePrivateTags(const std::set<DicomTag>& toKeep) 123 void RemovePrivateTags(const std::set<DicomTag>& toKeep)
124 { 124 {
125 RemovePrivateTagsInternal(&toKeep); 125 RemovePrivateTagsInternal(&toKeep);
126 } 126 }
127 127
128 // WARNING: This function handles the decoding of strings to UTF8
128 bool GetTagValue(std::string& value, 129 bool GetTagValue(std::string& value,
129 const DicomTag& tag); 130 const DicomTag& tag);
130 131
131 DicomInstanceHasher GetHasher(); 132 DicomInstanceHasher GetHasher();
132 133
141 void EmbedImage(const std::string& mime, 142 void EmbedImage(const std::string& mime,
142 const std::string& content); 143 const std::string& content);
143 144
144 Encoding GetEncoding() const; 145 Encoding GetEncoding() const;
145 146
147 // WARNING: This function only sets the encoding, it will not
148 // convert the encoding of the tags. Use "ChangeEncoding()" if need be.
146 void SetEncoding(Encoding encoding); 149 void SetEncoding(Encoding encoding);
147 150
148 void DatasetToJson(Json::Value& target, 151 void DatasetToJson(Json::Value& target,
149 DicomToJsonFormat format, 152 DicomToJsonFormat format,
150 DicomToJsonFlags flags, 153 DicomToJsonFlags flags,
171 174
172 unsigned int GetFramesCount() const; 175 unsigned int GetFramesCount() const;
173 176
174 static ParsedDicomFile* CreateFromJson(const Json::Value& value, 177 static ParsedDicomFile* CreateFromJson(const Json::Value& value,
175 DicomFromJsonFlags flags); 178 DicomFromJsonFlags flags);
179
180 void ChangeEncoding(Encoding target);
176 }; 181 };
177
178 } 182 }