]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDir.h
Fix bug on DicomDir utilities
[gdcm.git] / src / gdcmDicomDir.h
index 572d6f97c6e0ef9248684b57d5d4cc75c8fee829..eca86fbadc8c8eb30eb480c837df687fc1856ed7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/06 20:33:55 $
-  Version:   $Revision: 1.44 $
+  Date:      $Date: 2005/01/18 07:53:42 $
+  Version:   $Revision: 1.48 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -42,7 +42,9 @@ typedef std::vector<Document *>  VectDocument;
 
 /**
  * \ingroup DicomDir
- * \brief    DicomDir defines an object representing a DICOMDIR in memory.
+ * \brief   DicomDir defines an object representing a DICOMDIR in memory
+ *  as a tree-like structure DicomDirPatient -> DicomDirStudy -> DicomDirSerie
+ * -> DicomDirImage
  *
  */
 class GDCM_EXPORT DicomDir: public Document
@@ -56,7 +58,7 @@ public:
    ~DicomDir();
 
    /// \brief   canonical Printer 
-   void Print(std::ostream &os = std::cout);
+   void Print(std::ostream &os = std::cout, std::string const & indent = "" );
 
    /// Informations contained in the parser
    virtual bool IsReadable();
@@ -64,8 +66,9 @@ public:
    /// Returns a pointer to the DicomDirMeta for this DICOMDIR. 
    DicomDirMeta* GetDicomDirMeta() { return MetaElems; };
 
-   /// Returns the PATIENT chained List for this DICOMDIR.    
-   ListDicomDirPatient const & GetDicomDirPatients() const { return Patients; };
+   // should avoid exposing internal mechanism
+   DicomDirPatient *GetFirstEntry();
+   DicomDirPatient *GetNextEntry();
 
    /// Parsing
    void ParseDirectory();
@@ -140,6 +143,7 @@ private:
 
    /// Pointer on *the* DicomDirObject 'DicomDirMeta Elements'
    DicomDirMeta* MetaElems;
+   ListDicomDirPatient::iterator ItDicomDirPatient;
 
    /// Chained list of DicomDirPatient (to be exploited recursively) 
    ListDicomDirPatient Patients;