]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirMeta.h
Fix mistypings
[gdcm.git] / src / gdcmDicomDirMeta.h
index eef83e02a1e2983717ab6b044803ab76e19f6347..df2f87ba02f1a71a19fb57447ea963bf774b61c6 100644 (file)
@@ -1,20 +1,49 @@
-// gdcmDicomDirMeta.h
-//-----------------------------------------------------------------------------
-#ifndef GDCMDICOMDIRMETA_H
-#define GDCMDICOMDIRMETA_H
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmDicomDirMeta.h,v $
+  Language:  C++
+  Date:      $Date: 2007/08/29 15:30:48 $
+  Version:   $Revision: 1.25 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+#ifndef _GDCMDICOMDIRMETA_H_
+#define _GDCMDICOMDIRMETA_H_
 
-#include "gdcmObject.h"
+#include "gdcmDicomDirObject.h"
+
+namespace GDCM_NAME_SPACE 
+{
 
 //-----------------------------------------------------------------------------
-class GDCM_EXPORT gdcmDicomDirMeta : public gdcmObject 
+/**
+ * \brief   Meta Elements (group 0002) of a DicomDir
+ */
+class GDCM_EXPORT DicomDirMeta : public DicomDirObject 
 {
-public:
-   gdcmDicomDirMeta(TagDocEntryHT *ptagHT); 
+   gdcmTypeMacro(DicomDirMeta);
 
-   ~gdcmDicomDirMeta(void);
+public:
+/// \brief Constructs a DicomDirMeta with a RefCounter
+   static DicomDirMeta *New(bool empty=false) {return new DicomDirMeta(empty);}
 
-   virtual void Print(std::ostream &os = std::cout);
+   virtual void Print(std::ostream &os = std::cout, std::string const &indent = "" );
+   virtual void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements, bool insideSequence);
+   int ComputeGroup0002Length( );
+   
+protected:
+   DicomDirMeta(bool empty=false); 
+   ~DicomDirMeta();
 };
-
+} // end namespace gdcm
 //-----------------------------------------------------------------------------
 #endif