]> Creatis software - gdcm.git/blob - src/gdcmBinEntry.h
* src/gdcmBinEntry.cxx, gdcmValEntry.cxx: gdcmBinEntry::Print() now
[gdcm.git] / src / gdcmBinEntry.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmBinEntry.h,v $
5   Language:  C++
6   Date:      $Date: 2004/06/20 18:08:47 $
7   Version:   $Revision: 1.8 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef GDCMBinEntry_H
20 #define GDCMBinEntry_H
21
22 #include <iostream>
23 #include <stdio.h>
24
25 #include "gdcmValEntry.h"
26
27 //-----------------------------------------------------------------------------
28 /**
29  * \ingroup gdcmBinEntry
30  * \brief   The dicom header of a Dicom file contains a set of such entries
31  *          (when successfuly parsed against a given Dicom dictionary)
32  *          This one contains a 'string value'.
33  */
34 class GDCM_EXPORT gdcmBinEntry  : public gdcmValEntry {
35
36 public:
37
38    gdcmBinEntry(gdcmDictEntry* e);
39    gdcmBinEntry(gdcmDocEntry* d);
40    ~gdcmBinEntry(void);
41    
42    void Print(std::ostream &os = std::cout);
43
44    /// \brief Returns the area value of the current Dicom Header Entry
45    ///  when it's not string-translatable (e.g : a LUT table)         
46    inline void *       GetVoidArea(void)  { return voidArea; };
47
48    /// \brief Sets the value (non string) of the current Dicom Header Entry
49    inline void SetVoidArea(void * area)  { voidArea = area;  };
50          
51 protected:
52
53 private:
54
55 // Variables
56    
57    /// \brief unsecure memory area to hold 'non string' values 
58    /// (ie : Lookup Tables, overlays, icons)   
59   // void *voidArea;
60
61 };
62
63 //-----------------------------------------------------------------------------
64 #endif
65