]> Creatis software - gdcm.git/blobdiff - src/gdcmElValue.h
*ENH: vtkGdcmReader.cxx can now read multiframe dicom
[gdcm.git] / src / gdcmElValue.h
index aeb4e4c774d9117801e17f5f8a5f98efb4dc66af..0d91c3d78df545554238ba533865d8010abbbdb9 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.6 2003/06/17 17:44:48 jpr Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.8 2003/10/09 13:22:54 jpr Exp $
 
 #ifndef GDCMELVALUE_H
 #define GDCMELVALUE_H
@@ -25,7 +25,9 @@ private:
    friend class gdcmHeader;
 public:
    std::string  value;
-   size_t Offset;     // Offset from the begining of file for direct user access
+   void * voidArea;  // unsecure memory area to hold 'non string' values 
+                     // (ie : Lookup Tables, overlays)
+   size_t Offset;    // Offset from the begining of file for direct user access
        
    gdcmElValue(gdcmDictEntry*);
    void SetDictEntry(gdcmDictEntry *NewEntry) { entry = NewEntry; };
@@ -35,18 +37,20 @@ public:
        
    gdcmDictEntry * GetDictEntry(void) { return entry;    };
    
-   guint16      GetGroup(void)   { return entry->GetGroup();  };
-   guint16      GetElement(void) { return entry->GetElement();};
-   std::string  GetKey(void)     { return entry->GetKey();    };
-   std::string  GetName(void)    { return entry->GetName();   };
-   std::string  GetVR(void)      { return entry->GetVR();     };
-   std::string  GetValue(void)   { return value;              };
-   size_t       GetOffset(void)  { return Offset;             };   
-   guint32      GetLength(void)  { return LgrElem;            };
+   guint16      GetGroup(void)    { return entry->GetGroup();  };
+   guint16      GetElement(void)  { return entry->GetElement();};
+   std::string  GetKey(void)      { return entry->GetKey();    };
+   std::string  GetName(void)     { return entry->GetName();   };
+   std::string  GetVR(void)       { return entry->GetVR();     };
+   std::string  GetValue(void)    { return value;              };
+   void *       GetVoidArea(void) { return voidArea;           };
+   size_t       GetOffset(void)   { return Offset;             };   
+   guint32      GetLength(void)   { return LgrElem;            };
    
    void         SetVR(std::string v)     { entry->SetVR(v);   }; 
    void         SetLength(guint32 l)     { LgrElem = l;       };       
-   void         SetValue(std::string val){ value = val;       };       
+   void         SetValue(std::string val){ value = val;       };
+   void         SetVoidArea(void * area) { voidArea = area;   };       
 
 };