X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmCallbackCommand.h;h=1c4ad9dafce364befc9000488b8e3bec115b12ba;hb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;hp=365ce602b69fa4dcb6e8e68901404b57318d45c1;hpb=8fd45dc6d321d1419854dc0e4fa6a37d6826b655;p=gdcm.git diff --git a/src/gdcmCallbackCommand.h b/src/gdcmCallbackCommand.h index 365ce602..1c4ad9da 100644 --- a/src/gdcmCallbackCommand.h +++ b/src/gdcmCallbackCommand.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCallbackCommand.h,v $ Language: C++ - Date: $Date: 2007/05/23 14:18:07 $ - Version: $Revision: 1.2 $ + Date: $Date: 2007/09/18 15:59:48 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMCALLBACKCOMMAND_H -#define GDCMCALLBACKCOMMAND_H +#ifndef _GDCMCALLBACKCOMMAND_H_ +#define _GDCMCALLBACKCOMMAND_H_ #include "gdcmDebug.h" #include "gdcmCommand.h" @@ -42,10 +42,14 @@ public: /* // Note: the CallbackCommand:: namespace prefix is needed by Swig in the // following method declarations. Refer to gdcmPython/gdcm.i // for the reasons of this unnecessary notation at C++ level. + void SetCallback(CallbackCommand::CbkMethod *callback,void *arg = NULL ); + void SetCallbackArgDelete(CallbackCommand::CbkMethod *callback); + // Note: replace CallbackCommand::Method *method to void(*method)(void *) to // avoid wrapping problems with the typemap conversions + void SetCallback(void(*callback)(void *), // CallbackCommand::Method *method void *arg, void(*argDelete)(void *));