]> Creatis software - gdcm.git/blob - src/gdcmDicomDirMeta.h
Fix mistypings
[gdcm.git] / src / gdcmDicomDirMeta.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirMeta.h,v $
5   Language:  C++
6   Date:      $Date: 2007/08/29 15:30:48 $
7   Version:   $Revision: 1.25 $
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 _GDCMDICOMDIRMETA_H_
20 #define _GDCMDICOMDIRMETA_H_
21
22 #include "gdcmDicomDirObject.h"
23
24 namespace GDCM_NAME_SPACE 
25 {
26
27 //-----------------------------------------------------------------------------
28 /**
29  * \brief   Meta Elements (group 0002) of a DicomDir
30  */
31 class GDCM_EXPORT DicomDirMeta : public DicomDirObject 
32 {
33    gdcmTypeMacro(DicomDirMeta);
34
35 public:
36 /// \brief Constructs a DicomDirMeta with a RefCounter
37    static DicomDirMeta *New(bool empty=false) {return new DicomDirMeta(empty);}
38
39    virtual void Print(std::ostream &os = std::cout, std::string const &indent = "" );
40    virtual void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements, bool insideSequence);
41    int ComputeGroup0002Length( );
42    
43 protected:
44    DicomDirMeta(bool empty=false); 
45    ~DicomDirMeta();
46 };
47 } // end namespace gdcm
48 //-----------------------------------------------------------------------------
49 #endif