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