Program: gdcm
Module: $RCSfile: gdcmCallbackCommand.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:35 $
- Version: $Revision: 1.1 $
+ 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
=========================================================================*/
-#ifndef GDCMCALLBACKCOMMAND_H
-#define GDCMCALLBACKCOMMAND_H
+#ifndef _GDCMCALLBACKCOMMAND_H_
+#define _GDCMCALLBACKCOMMAND_H_
#include "gdcmDebug.h"
#include "gdcmCommand.h"
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
//-----------------------------------------------------------------------------
/**
/* // 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 *));