diff OrthancServer/ParsedDicomFile.h @ 1695:18c02c6987d5

fix for encodings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Oct 2015 14:34:19 +0200
parents 558b25228a23
children 8ca0e89798b2
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h	Thu Oct 08 13:49:20 2015 +0200
+++ b/OrthancServer/ParsedDicomFile.h	Thu Oct 08 14:34:19 2015 +0200
@@ -79,21 +79,21 @@
     void Remove(const DicomTag& tag);
 
     void Insert(const DicomTag& tag,
-                const std::string& value);
+                const std::string& utf8Value);
+
+    void Replace(const DicomTag& tag,
+                 const std::string& utf8Value,
+                 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
 
     void Insert(const DicomTag& tag,
-                const Json::Value& value,
+                const Json::Value& value,   // Assumed to be encoded with UTF-8
                 bool decodeBinaryTags);
 
     void Replace(const DicomTag& tag,
-                 const Json::Value& value,
+                 const Json::Value& value,  // Assumed to be encoded with UTF-8
                  bool decodeBinaryTags,
                  DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
 
-    void Replace(const DicomTag& tag,
-                 const std::string& value,
-                 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
-
     void RemovePrivateTags()
     {
       RemovePrivateTagsInternal(NULL);