]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirMeta.h
* Some classes inherit now from gdcm::RefCounter
[gdcm.git] / src / gdcmDicomDirMeta.h
index ddeca2534c18372011e97033a96170caa6000609..96403f23c0ecb8c15ab61ce017bd8352a540ff93 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: 2005/10/25 14:52:33 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,12 +30,17 @@ namespace gdcm
  */
 class GDCM_EXPORT DicomDirMeta : public DicomDirObject 
 {
+   gdcmTypeMacro(DicomDirMeta);
+
 public:
-   DicomDirMeta(bool empty=false); 
-   ~DicomDirMeta();
+   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);
+
+protected:
+   DicomDirMeta(bool empty=false); 
+   ~DicomDirMeta();
 };
 } // end namespace gdcm
 //-----------------------------------------------------------------------------