]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDir.h
Move as private some methods, in order not to confuse the users
[gdcm.git] / src / gdcmDicomDir.h
index 22ced06db8dfde4bbeb416385556b5c010b25ffb..7a698763d2ea978b29def667c903e04d767582ea 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2005/08/29 12:29:50 $
-  Version:   $Revision: 1.67 $
+  Date:      $Date: 2005/10/25 14:52:33 $
+  Version:   $Revision: 1.69 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -50,12 +50,12 @@ typedef std::vector<Document *> VectDocument;
  */
 class GDCM_EXPORT DicomDir: public Document
 {
+   gdcmTypeMacro(DicomDir);
+
 public:
-   typedef void Method(void*);
+   static DicomDir *New() {return new DicomDir();}
 
-   DicomDir(); 
-   GDCM_LEGACY( DicomDir(std::string const &filename, bool parseDir = false) ); 
-   ~DicomDir();
+   typedef void Method(void*);
 
    GDCM_LEGACY( bool Load(std::string const &filename) );
    bool Load( );
@@ -123,9 +123,9 @@ public:
    bool  IsAborted() { return Abort; }
 
    // Write
-   bool WriteDicomDir(std::string const &fileName);
+   bool Write(std::string const &fileName);
 
-   bool AnonymizeDicomDir();
+   bool Anonymize();
 
    /// Types of the DicomDirObject within the DicomDir
    typedef enum
@@ -140,6 +140,9 @@ public:
    } DicomDirType;
    
 protected:
+   DicomDir(); 
+   ~DicomDir();
+
    void CreateDicomDirChainedList(std::string const &path);
    void CallStartMethod();
    void CallProgressMethod();