X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmCallbackCommand.cxx;h=d1481a9b1df8e77e4dbe19a10e5b4fb447d8285b;hb=df832cf7f90b4ca5aca2f628c1756fb276779fac;hp=598bd50c227a340d6f8db6087de0a504008bec9b;hpb=8fd45dc6d321d1419854dc0e4fa6a37d6826b655;p=gdcm.git diff --git a/src/gdcmCallbackCommand.cxx b/src/gdcmCallbackCommand.cxx index 598bd50c..d1481a9b 100644 --- a/src/gdcmCallbackCommand.cxx +++ b/src/gdcmCallbackCommand.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCallbackCommand.cxx,v $ Language: C++ - Date: $Date: 2007/05/23 14:18:07 $ - Version: $Revision: 1.3 $ + Date: $Date: 2007/10/25 08:02:38 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,11 +25,13 @@ namespace GDCM_NAME_SPACE /** * \brief Constructor used when we want to generate dicom files from scratch */ -CallbackCommand::CallbackCommand() +CallbackCommand::CallbackCommand() : + Callback(NULL), CallbackArgDelete(NULL), CallbackArg(NULL) + { - Callback = NULL; - CallbackArgDelete = NULL; - CallbackArg = NULL; +// Callback = NULL; +// CallbackArgDelete = NULL; +// CallbackArg = NULL; } /** @@ -44,35 +46,36 @@ CallbackCommand::~CallbackCommand () // Public /** * \brief Set the callback method - * @param method Method to call + * @param callback Method to call * @param arg Argument to pass to the method * \warning In python : the arg parameter isn't considered */ + /*void CallbackCommand::SetCallback( CallbackCommand::CbkMethod *callback,void *arg ) { SetCallback(callback,arg,NULL); }*/ -/** - * \brief Set the callback method to delete the argument +/* + *\brief Set the callback method to delete the argument * The argument is destroyed when the callback method is changed * or when the class is destroyed - * @param method Method to call to delete the argument + * @param callback Method to call to delete the argument */ /*void CallbackCommand::SetCallbackArgDelete( CallbackCommand::CbkMethod *callback ) { CallbackArgDelete = callback; }*/ -/** - * \brief Set the callback method - * @param method Method to call +/* + *\brief Set the callback method + * @param callback Method to call * @param arg Argument to pass to the method * @param argDelete Argument * \warning In python : the arg parameter isn't considered */ /*void CallbackCommand::SetCallback( void(*callback)(void *), - void *arg,void(*argDelete)(void *) ) + void *arg, void(*argDelete)(void *) ) { if ( CallbackArg && CallbackArgDelete ) {