]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirMeta.h
We are no longer cheated by Elem belonging to group 0x0002,
[gdcm.git] / src / gdcmDicomDirMeta.h
index ddeca2534c18372011e97033a96170caa6000609..e7f8e26fc2fccf2cba15abdfea8b3216d924126d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirMeta.h,v $
   Language:  C++
-  Date:      $Date: 2005/02/01 13:11:49 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2007/07/26 08:36:49 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,7 +21,7 @@
 
 #include "gdcmDicomDirObject.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 
 //-----------------------------------------------------------------------------
@@ -30,12 +30,19 @@ namespace gdcm
  */
 class GDCM_EXPORT DicomDirMeta : public DicomDirObject 
 {
+   gdcmTypeMacro(DicomDirMeta);
+
 public:
-   DicomDirMeta(bool empty=false); 
-   ~DicomDirMeta();
+/// \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, std::string const &indent = "" );
-   virtual void WriteContent(std::ofstream *fp, FileType t);
+   virtual void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements);
+   int ComputeGroup0002Length( );
+   
+protected:
+   DicomDirMeta(bool empty=false); 
+   ~DicomDirMeta();
 };
 } // end namespace gdcm
 //-----------------------------------------------------------------------------