X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFileHelper.h;h=327431ba5193a3e64202d348fa0911de455fa703;hb=6516a88a1e363868706f0fb443fbc7ad9641a9b9;hp=99633894cbcfbd1e782e5f31f1fbeeef405d0d17;hpb=4f1f67880bf7de5445714fa3d29094df99de58c8;p=gdcm.git diff --git a/src/gdcmFileHelper.h b/src/gdcmFileHelper.h index 99633894..327431ba 100644 --- a/src/gdcmFileHelper.h +++ b/src/gdcmFileHelper.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFileHelper.h,v $ Language: C++ - Date: $Date: 2005/02/21 17:45:41 $ - Version: $Revision: 1.15 $ + Date: $Date: 2005/07/08 14:36:48 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,14 +50,19 @@ public: FileHelper( ); FileHelper( File *header ); FileHelper( std::string const &filename ); - + virtual ~FileHelper(); void Print(std::ostream &os = std::cout, std::string const &indent = ""); /// Accessor to \ref File File *GetFile() { return FileInternal; } + + void SetLoadMode(int loadMode); + void SetFileName(std::string const &fileName); + bool Load(); + // File methods bool SetValEntry(std::string const &content, uint16_t group, uint16_t elem); @@ -93,6 +98,8 @@ public: // LUT uint8_t* GetLutRGBA(); + int GetLutItemNumber(); + int GetLutItemSize(); // Write mode @@ -153,6 +160,7 @@ protected: BinEntry *CopyBinEntry(uint16_t group, uint16_t elem, const std::string &vr); void CheckMandatoryElements(); + void RestoreWriteMandatory(); private: void Initialize();