1 /*=========================================================================
4 Module: $RCSfile: gdcmBinEntry.h,v $
6 Date: $Date: 2005/01/25 15:21:20 $
7 Version: $Revision: 1.33 $
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.
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.
17 =========================================================================*/
19 #ifndef GDCMBINENTRY_H
20 #define GDCMBINENTRY_H
22 #include "gdcmContentEntry.h"
28 //-----------------------------------------------------------------------------
30 * \brief Any Dicom Document (File or DicomDir) contains
31 * a set of DocEntry - Dicom entries -
32 * BinEntry is an elementary DocEntry (i.e. a ContentEntry,
33 * as opposite to SeqEntry) whose content is non std::string
35 * BinEntry is a specialisation of ContentEntry
38 class GDCM_EXPORT BinEntry : public ContentEntry
41 BinEntry( DictEntry *e );
42 BinEntry( DocEntry *d );
46 void Print( std::ostream &os = std::cout, std::string const & indent = "" );
47 void WriteContent( std::ofstream *fp, FileType ft);
49 /// \brief Returns the area value of the current Dicom Entry
50 /// when it's not string-translatable (e.g : LUT table, overlay, icon)
51 uint8_t *GetBinArea() { return BinArea; }
53 void SetBinArea( uint8_t *area, bool self = true );
56 /// \brief memory area to hold 'non std::string' representable values
57 /// (ie : Lookup Tables, overlays, icons)
62 } // end namespace gdcm
63 //-----------------------------------------------------------------------------