diff OrthancFramework/Sources/DicomFormat/DicomImageInformation.h @ 4138:1a26daefc3fe

DicomImageInformation::USEFUL_TAG_LENGTH
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Aug 2020 17:56:10 +0200
parents bf7b9edf6b81
children ab4d015af660
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomImageInformation.h	Thu Aug 06 17:38:55 2020 +0200
+++ b/OrthancFramework/Sources/DicomFormat/DicomImageInformation.h	Thu Aug 06 17:56:10 2020 +0200
@@ -30,6 +30,17 @@
 {
   class ORTHANC_PUBLIC DicomImageInformation
   {
+  public:
+    /**
+     * This constant gives a bound on the maximum tag length that is
+     * useful to class "DicomImageInformation", in order to avoid
+     * using too much memory when copying DICOM tags from "DcmDataset"
+     * to "DicomMap" using "ExtractDicomSummary()". The value 256
+     * corresponds to ORTHANC_MAXIMUM_TAG_LENGTH that was implicitly
+     * used in Orthanc <= 1.7.2.
+     **/
+    static const unsigned int USEFUL_TAG_LENGTH = 256;
+  
   private:
     unsigned int width_;
     unsigned int height_;