]> Creatis software - gdcm.git/blob - src/gdcmBinEntry.h
general commit of (future) new classes.
[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(void);
24
25
26    /// \brief Returns the area value of the current Dicom Header Entry
27    ///  when it's not string-translatable (e.g : a LUT table)         
28    inline void *       GetVoidArea(void)  { return voidArea; };
29
30    /// \brief Sets the value (non string) of the current Dicom Header Entry
31    inline void SetVoidArea(void * area)  { voidArea = area;  };
32          
33 protected:
34
35 private:
36
37 // Variables
38    
39    /// \brief unsecure memory area to hold 'non string' values 
40    /// (ie : Lookup Tables, overlays, icons)   
41    void *voidArea;
42
43 };
44
45 //-----------------------------------------------------------------------------
46 #endif
47