diff OrthancServer/ParsedDicomFile.h @ 1818:1065401501fb worklists

ParsedDicomFile::CreateFromJson
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Nov 2015 16:48:23 +0100
parents f08978b1f45b
children b530c3dfe2a6
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h	Tue Nov 24 13:45:55 2015 +0100
+++ b/OrthancServer/ParsedDicomFile.h	Tue Nov 24 16:48:23 2015 +0100
@@ -59,7 +59,7 @@
 
     void UpdateStorageUid(const DicomTag& tag,
                           const std::string& value,
-                          bool decodeBinaryTags);
+                          bool decodeDataUriScheme);
 
   public:
     ParsedDicomFile(bool createIdentifiers);  // Create a minimal DICOM instance
@@ -94,12 +94,12 @@
 
     void Replace(const DicomTag& tag,
                  const Json::Value& value,  // Assumed to be encoded with UTF-8
-                 bool decodeBinaryTags,
+                 bool decodeDataUriScheme,
                  DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
 
     void Insert(const DicomTag& tag,
                 const Json::Value& value,   // Assumed to be encoded with UTF-8
-                bool decodeBinaryTags);
+                bool decodeDataUriScheme);
 
     void RemovePrivateTags()
     {
@@ -159,6 +159,9 @@
     bool ExtractPdf(std::string& pdf);
 
     void Convert(DicomMap& tags);
+
+    static ParsedDicomFile* CreateFromJson(const Json::Value& value,
+                                           DicomFromJsonFlags flags);
   };
 
 }