]> Creatis software - gdcm.git/blob - src/gdcmBinEntry.h
Jean-Pierre Roux
[gdcm.git] / src / gdcmBinEntry.h
1 // gdcmBinEntry.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMBinEntry_H
4 #define GDCMBinEntry_H
5
6 #include <iostream>
7 #include <stdio.h>
8
9 #include "gdcmValEntry.h"
10
11 //-----------------------------------------------------------------------------
12 /**
13  * \ingroup gdcmBinEntry
14  * \brief   The dicom header of a Dicom file contains a set of such entries
15  *          (when successfuly parsed against a given Dicom dictionary)
16  *          This one contains a 'string value'.
17  */
18 class GDCM_EXPORT gdcmBinEntry  : public gdcmValEntry {
19
20 public:
21
22    gdcmBinEntry(gdcmDictEntry* e);
23    gdcmBinEntry(gdcmDocEntry* d);        
24    ~gdcmBinEntry(void);
25    
26    void Print(std::ostream &os = std::cout);
27
28    /// \brief Returns the area value of the current Dicom Header Entry
29    ///  when it's not string-translatable (e.g : a LUT table)         
30    inline void *       GetVoidArea(void)  { return voidArea; };
31
32    /// \brief Sets the value (non string) of the current Dicom Header Entry
33    inline void SetVoidArea(void * area)  { voidArea = area;  };
34          
35 protected:
36
37 private:
38
39 // Variables
40    
41    /// \brief unsecure memory area to hold 'non string' values 
42    /// (ie : Lookup Tables, overlays, icons)   
43   // void *voidArea;
44
45 };
46
47 //-----------------------------------------------------------------------------
48 #endif
49