X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=eca86fbadc8c8eb30eb480c837df687fc1856ed7;hb=1d6b53d6cc3487013b10aa9b604ae948585dbfb7;hp=66bfe02f0c656e22537f3e9c3c2cd631fe111318;hpb=327dfe7647e3720b0f3125f9b19397cb9afc0ed3;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index 66bfe02f..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:03:26 $ - Version: $Revision: 1.43 $ + 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(); @@ -73,15 +76,15 @@ public: // Note: the DicomDir:: namespace prefix is needed by Swig in the // following method declarations. Refer to gdcmPython/gdcm.i // for the reasons of this unecessary notation at C++ level. - void SetStartMethod( DicomDir::Method *m, - void* = NULL, - DicomDir::Method *m = NULL ); - void SetProgressMethod( DicomDir::Method *m, - void* = NULL, - DicomDir::Method *m = NULL ); - void SetEndMethod( DicomDir::Method *m, - void* = NULL, - DicomDir::Method *m = NULL ); + void SetStartMethod( DicomDir::Method *method, + void *arg = NULL, + DicomDir::Method *argDelete = NULL ); + void SetProgressMethod( DicomDir::Method *method, + void *arg = NULL, + DicomDir::Method *argDelete = NULL ); + void SetEndMethod( DicomDir::Method *method, + void *arg = NULL, + DicomDir::Method *argDelete = NULL ); void SetStartMethodArgDelete( DicomDir::Method *m ); void SetProgressMethodArgDelete( DicomDir::Method *m ); void SetEndMethodArgDelete( DicomDir::Method *m ); @@ -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;