X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fgdcm.i;h=bb21af1be49a10ff9c3c23ef2ac41494eb30f819;hb=2e1f797ea8181180ebba6a48f0a4463bf43acedc;hp=128f4db72f626b92f51bc62d7d3cd528aabfef43;hpb=5e749d7ae1b35e0f81e1278ba3a2bc12502e96ce;p=gdcm.git diff --git a/gdcmPython/gdcm.i b/gdcmPython/gdcm.i index 128f4db7..bb21af1b 100644 --- a/gdcmPython/gdcm.i +++ b/gdcmPython/gdcm.i @@ -1,4 +1,5 @@ %module gdcm +#pragma SWIG nowarn=504 %{ #include @@ -127,9 +128,7 @@ typedef unsigned long long uint64_t; // Note: Uses gdcmPythonVoidFunc and gdcmPythonVoidFuncArgDelete defined // in the Swig verbatim section of this gdcm.i i.e. in the above section // enclosed within the %{ ... %} scope operator ). -%typemap(python, in) ( gdcm::DicomDir::Method *, - void * = NULL, - gdcm::DicomDir::Method * = NULL ) +%typemap(python, in) (void(*method)(void *),void *arg,void(*argDelete)(void *)) { if($input!=Py_None) { @@ -204,8 +203,9 @@ typedef unsigned long long uint64_t; %ignore gdcm::binary_write(std::ostream &,uint32_t const &); %ignore gdcm::binary_write(std::ostream &,uint16_t const &); -%ignore gdcm::File::File(); -%ignore gdcm::DicomDir::DicomDir(); +%ignore gdcm::DicomDir::SetStartMethod(DicomDir::Method *method,void *arg = NULL); +%ignore gdcm::DicomDir::SetProgressMethod(DicomDir::Method *method,void *arg = NULL); +%ignore gdcm::DicomDir::SetEndMethod(DicomDir::Method *method,void *arg = NULL); // Ignore all placed in gdcmCommon.h %ignore GDCM_UNKNOWN;