diff 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
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h	Thu Dec 08 16:29:34 2016 +0100
+++ b/OrthancServer/ParsedDicomFile.h	Fri Dec 09 11:24:04 2016 +0100
@@ -125,6 +125,7 @@
       RemovePrivateTagsInternal(&toKeep);
     }
 
+    // WARNING: This function handles the decoding of strings to UTF8
     bool GetTagValue(std::string& value,
                      const DicomTag& tag);
 
@@ -143,6 +144,8 @@
 
     Encoding GetEncoding() const;
 
+    // WARNING: This function only sets the encoding, it will not
+    // convert the encoding of the tags. Use "ChangeEncoding()" if need be.
     void SetEncoding(Encoding encoding);
 
     void DatasetToJson(Json::Value& target, 
@@ -173,6 +176,7 @@
 
     static ParsedDicomFile* CreateFromJson(const Json::Value& value,
                                            DicomFromJsonFlags flags);
+
+    void ChangeEncoding(Encoding target);
   };
-
 }