00001 /*========================================================================= 00002 00003 Program: gdcm 00004 Module: $RCSfile: gdcmDocEntryArchive.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/02/04 16:51:36 $ 00007 Version: $Revision: 1.8 $ 00008 00009 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00010 l'Image). All rights reserved. See Doc/License.txt or 00011 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. 00012 00013 This software is distributed WITHOUT ANY WARRANTY; without even 00014 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00015 PURPOSE. See the above copyright notices for more information. 00016 00017 =========================================================================*/ 00018 00019 #ifndef GDCMDOCENTRYARCHIVE_H 00020 #define GDCMDOCENTRYARCHIVE_H 00021 00022 #include "gdcmFile.h" 00023 00024 namespace gdcm 00025 { 00026 00027 //----------------------------------------------------------------------------- 00037 class GDCM_EXPORT DocEntryArchive 00038 { 00039 public: 00040 DocEntryArchive(File *file); 00041 ~DocEntryArchive(); 00042 00043 void Print(std::ostream &os = std::cout); 00044 00045 bool Push(DocEntry *newEntry); 00046 bool Push(uint16_t group,uint16_t elem); 00047 bool Restore(uint16_t group,uint16_t elem); 00048 00049 void ClearArchive(void); 00050 00051 private: 00053 File *ArchFile; 00055 TagDocEntryHT Archive; 00056 }; 00057 } // end namespace gdcm 00058 00059 //----------------------------------------------------------------------------- 00060 #endif