diff OrthancServer/FromDcmtkBridge.h @ 305:86bb79522f19

name of the private tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Dec 2012 13:01:46 +0100
parents 4eea080e6e7a
children 326d5a4a5af3
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.h	Wed Dec 19 14:57:18 2012 +0100
+++ b/OrthancServer/FromDcmtkBridge.h	Thu Dec 20 13:01:46 2012 +0100
@@ -57,6 +57,13 @@
     DicomRootLevel_Instance
   };
 
+  enum DicomReplaceMode
+  {
+    DicomReplaceMode_InsertIfAbsent,
+    DicomReplaceMode_ThrowIfAbsent,
+    DicomReplaceMode_IgnoreIfAbsent
+  };
+
   class ParsedDicomFile : public IDynamicObject
   {
   private:
@@ -67,10 +74,6 @@
     {
     }
 
-    void ReplaceInternal(const DicomTag& tag,
-                         const std::string& value,
-                         bool insertOnAbsent);
-
     void Setup(const char* content,
                size_t size);
 
@@ -106,14 +109,12 @@
 
     void Remove(const DicomTag& tag);
 
-    void Replace(const DicomTag& tag,
-                 const std::string& value);
-
     void Insert(const DicomTag& tag,
                 const std::string& value);
-    
-    void InsertOrReplace(const DicomTag& tag,
-                         const std::string& value);
+
+    void Replace(const DicomTag& tag,
+                 const std::string& value,
+                 DicomReplaceMode mode);
   };
 
   class FromDcmtkBridge