X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=c77f91a521781a529416f8b602a63ca5057142df;hb=bde18845deffbd09ed1c154d28e09284ae39cd76;hp=56f8a083f73bca693ec69c20664d4359fd857f27;hpb=8758f1c110cbbb2e71c71d6f722d36a144e02db9;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index 56f8a083..c77f91a5 100644 --- a/src/gdcmDicomDir.h +++ b/src/gdcmDicomDir.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.h,v $ Language: C++ - Date: $Date: 2004/11/02 03:10:32 $ - Version: $Revision: 1.36 $ + Date: $Date: 2004/11/16 10:25:53 $ + Version: $Revision: 1.39 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,7 +34,6 @@ namespace gdcm typedef std::list ListDicomDirPatient; typedef std::vector VectDocument; -typedef GDCM_EXPORT void(Method)(void*); //----------------------------------------------------------------------------- /** @@ -45,6 +44,8 @@ typedef GDCM_EXPORT void(Method)(void*); class GDCM_EXPORT DicomDir: public Document { public: + typedef void(Method)(void*); + DicomDir( std::string const & filename, bool parseDir = false ); DicomDir(); @@ -66,12 +67,21 @@ public: /// Parsing void ParseDirectory(); - void SetStartMethod(Method*, void* = NULL, Method* = NULL); - void SetStartMethodArgDelete(Method*); - void SetProgressMethod(Method* ,void* = NULL, Method* = NULL); - void SetProgressMethodArgDelete(Method*); - void SetEndMethod(Method*, void* = NULL,Method* = NULL); - void SetEndMethodArgDelete(Method*); + // 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*, + void* = NULL, + DicomDir::Method* = NULL ); + void SetProgressMethod( DicomDir::Method*, + void* = NULL, + DicomDir::Method* = NULL ); + void SetEndMethod( DicomDir::Method*, + void* = NULL, + DicomDir::Method* = NULL ); + void SetStartMethodArgDelete( DicomDir::Method* ); + void SetProgressMethodArgDelete( DicomDir::Method* ); + void SetEndMethodArgDelete( DicomDir::Method* ); /// GetProgress GetProgress float GetProgress() { return Progress; };