X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmBinEntry.h;h=f79e3e34438c427f22cfb7a3ec0026fd95f29b35;hb=8da9df62c47908e7b9a67238a6c12b92ba6cae7a;hp=6f4b561d90ea5f556f1bad656711de06a241a0b6;hpb=3ac7a631bee01193732c9ae23e90dc75181697ec;p=gdcm.git diff --git a/src/gdcmBinEntry.h b/src/gdcmBinEntry.h index 6f4b561d..f79e3e34 100644 --- a/src/gdcmBinEntry.h +++ b/src/gdcmBinEntry.h @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.h,v $ Language: C++ - Date: $Date: 2004/09/09 17:49:24 $ - Version: $Revision: 1.15 $ + Date: $Date: 2004/11/16 16:20:23 $ + Version: $Revision: 1.25 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -19,49 +19,43 @@ #ifndef GDCMBINENTRY_H #define GDCMBINENTRY_H +#include "gdcmValEntry.h" + #include -#include -#include "gdcmValEntry.h" +namespace gdcm +{ //----------------------------------------------------------------------------- /** - * \ingroup gdcmBinEntry + * \ingroup BinEntry * \brief The dicom header of a Dicom file contains a set of such entries * (when successfuly parsed against a given Dicom dictionary) * This one contains a 'string value'. */ -class GDCM_EXPORT gdcmBinEntry : public gdcmValEntry +class GDCM_EXPORT BinEntry : public ValEntry { public: + BinEntry( DictEntry* e ); + BinEntry( DocEntry* d ); - gdcmBinEntry(gdcmDictEntry* e); - gdcmBinEntry(gdcmDocEntry* d); - - ~gdcmBinEntry(); + ~BinEntry(); - void Print(std::ostream &os = std::cout); - void Write(FILE*, FileType); + void Print( std::ostream &os = std::cout ); + void Write( std::ofstream*, FileType ); /// \brief Returns the area value of the current Dicom Header Entry /// when it's not string-translatable (e.g : a LUT table) - void* GetVoidArea() { return VoidArea; }; - - /// \brief Sets the value (non string) of the current Dicom Header Entry - void SetVoidArea(void * area) { VoidArea = area; }; - -protected: + uint8_t* GetBinArea() { return BinArea; } + void SetBinArea( uint8_t* area, bool self = true ); private: - -// Variables - /// \brief unsecure memory area to hold 'non string' values - /// (ie : Lookup Tables, overlays, icons) - // void *VoidArea; - + /// (ie : Lookup Tables, overlays, icons) + uint8_t* BinArea; + bool SelfArea; }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif