diff OrthancFramework/Sources/DicomFormat/DicomPath.h @ 4689:ead3b81f4541

added DicomPath::SetPrefixIndex()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jun 2021 10:54:14 +0200
parents 7182f5732480
children 13efc0967cea
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomPath.h	Thu Jun 10 10:09:54 2021 +0200
+++ b/OrthancFramework/Sources/DicomFormat/DicomPath.h	Thu Jun 10 10:54:14 2021 +0200
@@ -66,6 +66,8 @@
       }
 
       size_t GetIndex() const;
+
+      void SetIndex(size_t index);
     };
 
     std::vector<PrefixItem>  prefix_;
@@ -135,6 +137,11 @@
 
     bool HasUniversal() const;
 
+    // This method is used for an optimization in Stone
+    // (cf. "DicomStructureSet.cpp")
+    void SetPrefixIndex(size_t level,
+                        size_t index);
+
     std::string Format() const;
 
     static DicomPath Parse(const std::string& s);