]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirMeta.h
When 'Pixel Aspect Ratio' exists, don't add a default 'Pixel Spacing'
[gdcm.git] / src / gdcmDicomDirMeta.h
index fe3de1232c941292ff5c5057f329c62bca3c010b..ee793596bb76531acfe21e6218df1002943abd52 100644 (file)
@@ -3,12 +3,12 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.h,v $
   Language:  C++
-  Date:      $Date: 2004/08/01 02:39:09 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2007/08/22 16:14:03 $
+  Version:   $Revision: 1.24 $
                                                                                 
   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.htm for details.
+  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
                                                                                 
 =========================================================================*/
 
-#ifndef GDCMDICOMDIRMETA_H
-#define GDCMDICOMDIRMETA_H
+#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();
+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);
+   int ComputeGroup0002Length( );
+   
+protected:
+   DicomDirMeta(bool empty=false); 
+   ~DicomDirMeta();
 };
-
+} // end namespace gdcm
 //-----------------------------------------------------------------------------
 #endif