]> Creatis software - gdcm.git/blob - src/gdcmDocEntryArchive.h
Fix mistypings
[gdcm.git] / src / gdcmDocEntryArchive.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDocEntryArchive.h,v $
5   Language:  C++
6   Date:      $Date: 2007/08/22 16:14:04 $
7   Version:   $Revision: 1.11 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef _GDCMDOCENTRYARCHIVE_H_
20 #define _GDCMDOCENTRYARCHIVE_H_
21
22 #include "gdcmFile.h"
23
24 namespace GDCM_NAME_SPACE 
25 {
26
27 //-----------------------------------------------------------------------------
28 /**
29  * \brief Container 
30  * It's goal is to change the File header correctly. At this time, the change is 
31  * only made for the first level of the Document. In the future, it might 
32  * consider Dicom Sequences (SeqEntry, within any SQItem).
33  * The change is made by replacing a DocEntry by an other that is created
34  * outside the class. The old value is kept. When we restore the File
35  * status, the added DocEntry is deleted and replaced by the old value.
36  */
37 class GDCM_EXPORT DocEntryArchive 
38 {
39
40 friend class FileHelper;
41
42 private:
43    DocEntryArchive(File *file);
44    ~DocEntryArchive();
45
46    void Print(std::ostream &os = std::cout);
47
48    bool Push(DocEntry *newEntry);
49    bool Push(uint16_t group,uint16_t elem);
50    bool Restore(uint16_t group,uint16_t elem);
51
52    void ClearArchive(void);
53
54    /// pointer to the gdcm::File pointer we want to save values from
55    File *ArchFile;
56    /// H table to save values.
57    TagDocEntryHT Archive;
58 };
59 } // end namespace gdcm
60
61 //-----------------------------------------------------------------------------
62 #endif