]> Creatis software - gdcm.git/blobdiff - src/gdcmDocument.h
ENH: Change the name
[gdcm.git] / src / gdcmDocument.h
index 55666c1166d65de0dfe7047ac15102ba489a76bb..35271f9c647a313e0aa7658b2488a45a2efc690f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2005/11/21 12:25:41 $
-  Version:   $Revision: 1.133 $
+  Date:      $Date: 2005/11/29 17:21:34 $
+  Version:   $Revision: 1.137 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,6 +24,7 @@
 #include "gdcmElementSet.h"
 #include "gdcmException.h"
 #include "gdcmDebug.h"  // for LEGACY
+#include "gdcmCommandManager.h"
 
 #include <map>
 #include <list>
@@ -47,7 +48,8 @@ public:
 
 // Loading
    //Deprecated : use SetFileName() + Load()
-   GDCM_LEGACY(  virtual bool Load( std::string const &filename )  ); 
+   //GDCM_LEGACY(  virtual bool Load( std::string const &filename )  ); 
+   //virtual bool Load( std::string const &filename );
    virtual bool Load( ); 
 
 // Dictionaries
@@ -111,7 +113,11 @@ protected:
    // gdcm::DicomDir are meaningfull).
    Document();
    virtual ~Document();
-   
+
+   virtual void CallStartMethod();
+   virtual void CallProgressMethod();
+   virtual void CallEndMethod();
+      
    uint16_t ReadInt16() throw ( FormatError );
    uint32_t ReadInt32() throw ( FormatError );
    void     SkipBytes(uint32_t);
@@ -217,6 +223,11 @@ private:
    DocEntry *Backtrack(DocEntry *docEntry);
 
 // Variables
+protected:
+   /// value of the ??? for any progress bar
+   float Progress;
+   mutable bool Abort;
+   
    /// Public dictionary used to parse this header
    Dict *RefPubDict;
    /// \brief Optional "shadow dictionary" (private elements) used to parse