X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFileHelper.h;h=0bfd57ecb1a5160720707c2607ad1071b2207daa;hb=029ba8b100584e6ee9d963589e3a1d36205f25c4;hp=5a17c28f0c3108c6fd5e7e1482149f5c1a0d1080;hpb=46afb30d2d016a9b1581c7ee4ca96d614a35203c;p=gdcm.git diff --git a/src/gdcmFileHelper.h b/src/gdcmFileHelper.h index 5a17c28f..0bfd57ec 100644 --- a/src/gdcmFileHelper.h +++ b/src/gdcmFileHelper.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFileHelper.h,v $ Language: C++ - Date: $Date: 2005/11/28 15:20:33 $ - Version: $Revision: 1.34 $ + Date: $Date: 2005/11/30 13:42:19 $ + Version: $Revision: 1.37 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,7 +20,7 @@ #define GDCMFILEHELPER_H #include "gdcmDebug.h" -#include "gdcmCommandManager.h" +#include "gdcmRefCounter.h" namespace gdcm @@ -40,7 +40,7 @@ typedef void (*VOID_FUNCTION_PUINT8_PFILE_POINTER)(uint8_t *, File *); * for accessing the image/volume content. One can also use it to * write Dicom/ACR-NEMA/RAW files. */ -class GDCM_EXPORT FileHelper : public CommandManager +class GDCM_EXPORT FileHelper : public RefCounter { gdcmTypeMacro(FileHelper); @@ -154,6 +154,10 @@ public: void SetKeepMediaStorageSOPClassUID (bool v) { KeepMediaStorageSOPClassUID = v; } // no GetKeepMediaStorageSOPClassUID() method, on purpose! + + void CallStartMethod(); + void CallProgressMethod(); + void CallEndMethod(); protected: FileHelper( ); @@ -190,6 +194,13 @@ private: uint8_t *GetRaw(); // members variables: +protected: + /// value of the ??? for any progress bar + float Progress; + mutable bool Abort; + +private: + /// gdcm::File to use to load the file File *FileInternal;