X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntryArchive.h;h=77acc2dfda90688300780207e446f3b6f1c8b836;hb=e7768bbebdc9a5972e396d71a3e848f5674ee378;hp=bc67747688c1a090952ca3a0eb9e69901f31fdac;hpb=b21d001c8abe8aec991946adfd4c899500122304;p=gdcm.git diff --git a/src/gdcmDocEntryArchive.h b/src/gdcmDocEntryArchive.h index bc677476..77acc2df 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/20 11:39:49 $ - Version: $Revision: 1.5 $ + Date: $Date: 2007/08/22 16:14:04 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,28 +16,31 @@ =========================================================================*/ -#ifndef GDCMDOCENTRYARCHIVE_H -#define GDCMDOCENTRYARCHIVE_H +#ifndef _GDCMDOCENTRYARCHIVE_H_ +#define _GDCMDOCENTRYARCHIVE_H_ -#include "gdcmHeader.h" +#include "gdcmFile.h" -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /** * \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); + +friend class FileHelper; + +private: + DocEntryArchive(File *file); ~DocEntryArchive(); void Print(std::ostream &os = std::cout); @@ -48,8 +51,9 @@ public: 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