X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntryArchive.h;h=5c8de46e1fc43bc8ef9b0c798942b9860a2cf32a;hb=928d3c30e40ab7f3d12bfd038ce8a48befcddce8;hp=98d30d7df25d472dd5029c4c863e3f361dfbdaf1;hpb=ac0c6624e5206f25f5adc7deb53f937e00e6e264;p=gdcm.git diff --git a/src/gdcmDocEntryArchive.h b/src/gdcmDocEntryArchive.h index 98d30d7d..5c8de46e 100644 --- a/src/gdcmDocEntryArchive.h +++ b/src/gdcmDocEntryArchive.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntryArchive.h,v $ Language: C++ - Date: $Date: 2005/01/11 15:15:38 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/02/04 16:51:36 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,7 +19,7 @@ #ifndef GDCMDOCENTRYARCHIVE_H #define GDCMDOCENTRYARCHIVE_H -#include "gdcmHeader.h" +#include "gdcmFile.h" namespace gdcm { @@ -27,29 +27,31 @@ namespace gdcm //----------------------------------------------------------------------------- /** * \brief Container - * It's goal is to change the Header correctly. At this time, the change is + * It's goal is to change the File header correctly. At this time, the change is * only made for the first level of the Document. In the future, it might * consider Dicom Sequences (SeqEntry, within any SQItem). * The change is made by replacing a DocEntry by an other that is created - * outside the class. The old value is kept. When we restore the Header + * outside the class. The old value is kept. When we restore the File * status, the added DocEntry is deleted and replaced by the old value. */ class GDCM_EXPORT DocEntryArchive { public: - DocEntryArchive(Header *header); + DocEntryArchive(File *file); ~DocEntryArchive(); void Print(std::ostream &os = std::cout); bool Push(DocEntry *newEntry); - bool Push(uint16_t group,uint16_t element); - bool Restore(uint16_t group,uint16_t element); + bool Push(uint16_t group,uint16_t elem); + bool Restore(uint16_t group,uint16_t elem); void ClearArchive(void); private: - TagDocEntryHT &HeaderHT; + /// pointer to the gdcm::File pointer we want to save values from + File *ArchFile; + /// H table to save values. TagDocEntryHT Archive; }; } // end namespace gdcm