diff OrthancFramework/Sources/DicomFormat/DicomValue.h @ 5044:6fed78e13233

Refactored DicomMap to handle sequences when needed
author Alain Mazy <am@osimis.io>
date Tue, 28 Jun 2022 17:45:09 +0200
parents 43e613a7756b
children ea9e2680da6f
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomValue.h	Mon Jun 27 15:22:19 2022 +0200
+++ b/OrthancFramework/Sources/DicomFormat/DicomValue.h	Tue Jun 28 17:45:09 2022 +0200
@@ -43,11 +43,13 @@
     {
       Type_Null,
       Type_String,
-      Type_Binary
+      Type_Binary,
+      Type_SequenceAsJson
     };
 
     Type         type_;
     std::string  content_;
+    Json::Value  sequenceJson_;
 
     DicomValue(const DicomValue& other);
 
@@ -61,11 +63,19 @@
                size_t size,
                bool isBinary);
     
+    DicomValue(const Json::Value& value);
+    
     const std::string& GetContent() const;
 
+    const Json::Value& GetSequenceContent() const;
+
     bool IsNull() const;
 
     bool IsBinary() const;
+
+    bool IsString() const;
+
+    bool IsSequence() const;
     
     DicomValue* Clone() const;