]> Creatis software - gdcm.git/blobdiff - gdcmPython/gdcm.i
Typo
[gdcm.git] / gdcmPython / gdcm.i
index 6a435af22f1f8b9e3361294131057d1adb33a9c4..e230f450fda6d2aa0d32649abf3b83b9eb968891 100644 (file)
@@ -1,4 +1,5 @@
 %module gdcm
+#pragma SWIG nowarn=504
 %{
 #include <iostream>
 
@@ -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;
@@ -220,6 +220,13 @@ typedef unsigned long long uint64_t;
 %constant const char *NOTLOADED = "gdcm::NotLoaded";
 %constant const char *UNREAD    = "gdcm::UnRead";
 
+/*
+%constant unsigned int LD_ALL         = 0x00000000;
+%constant unsigned int LD_NOSEQ       = 0x00000001;
+%constant unsigned int LD_NOSHADOW    = 0x00000002;
+%constant unsigned int LD_NOSHADOWSEQ = 0x00000004;
+*/
+
 ////////////////////////////////////////////////////////////////////////////
 // Warning: Order matters !
 %include "gdcmCommon.h"