]> Creatis software - gdcm.git/blob - src/gdcmBinEntry.h
70e790873370c74b8aa5a0beb4bbb306360cfe09
[gdcm.git] / src / gdcmBinEntry.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmBinEntry.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/07 21:05:39 $
7   Version:   $Revision: 1.21 $
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.html 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 "gdcmValEntry.h"
23
24 #include <iostream>
25
26 //-----------------------------------------------------------------------------
27 /**
28  * \ingroup gdcmBinEntry
29  * \brief   The dicom header of a Dicom file contains a set of such entries
30  *          (when successfuly parsed against a given Dicom dictionary)
31  *          This one contains a 'string value'.
32  */
33 class GDCM_EXPORT gdcmBinEntry  : public gdcmValEntry
34 {
35 public:
36
37    gdcmBinEntry(gdcmDictEntry* e);
38    gdcmBinEntry(gdcmDocEntry* d); 
39
40    ~gdcmBinEntry();
41    
42    void Print(std::ostream &os = std::cout);
43    void Write(FILE*, FileType);
44
45    /// \brief Returns the area value of the current Dicom Header Entry
46    ///  when it's not string-translatable (e.g : a LUT table)         
47    uint8_t* GetBinArea()  { return BinArea; }
48    void  SetBinArea( uint8_t* area );
49          
50 protected:
51
52 private:
53
54 // Variables
55    
56    /// \brief unsecure memory area to hold 'non string' values 
57    ///       (ie : Lookup Tables, overlays, icons)   
58    uint8_t* BinArea;
59
60 };
61
62 //-----------------------------------------------------------------------------
63 #endif
64