diff Core/SerializationToolbox.h @ 2662:47d812308d63 jobs

serialization of DicomModification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jun 2018 17:47:41 +0200
parents a6d3e45eeff5
children 218e2c864d1d
line wrap: on
line diff
--- a/Core/SerializationToolbox.h	Thu Jun 07 12:51:44 2018 +0200
+++ b/Core/SerializationToolbox.h	Thu Jun 07 17:47:41 2018 +0200
@@ -33,9 +33,10 @@
 
 #pragma once
 
+#include "DicomFormat/DicomTag.h"
+
 #include <json/value.h>
 #include <list>
-#include <set>
 
 namespace Orthanc
 {
@@ -65,6 +66,10 @@
                           const Json::Value& value,
                           const std::string& field);
 
+    void ReadSetOfTags(std::set<DicomTag>& target,
+                       const Json::Value& value,
+                       const std::string& field);
+
     void WriteArrayOfStrings(Json::Value& target,
                              const std::vector<std::string>& values,
                              const std::string& field);
@@ -72,5 +77,9 @@
     void WriteSetOfStrings(Json::Value& target,
                            const std::set<std::string>& values,
                            const std::string& field);
+
+    void WriteSetOfTags(Json::Value& target,
+                        const std::set<DicomTag>& tags,
+                        const std::string& field);
   }
 }