X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=eca86fbadc8c8eb30eb480c837df687fc1856ed7;hb=aff4772d80d574a6e549d9dfab0d085850039794;hp=572d6f97c6e0ef9248684b57d5d4cc75c8fee829;hpb=5603c3d2b4ba248da2ec05555c5f076055041792;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index 572d6f97..eca86fba 100644 --- a/src/gdcmDicomDir.h +++ b/src/gdcmDicomDir.h @@ -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 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;