SWIG'ing the filter class

C++ code: convert.h/.cpp + gridloop.h/.cpp
SWIG interface file:
/* file: ext_gridloop.i */
%module ext_gridloop
%{
/* include C++ header files needed to compile the interface */
#include "convert.h"
#include "gridloop.h"
%}

%include "convert.h"
%include "gridloop.h"
Important: call NumPy's import_array (here in Convert_MyArray constructor)
Run SWIG:
swig -python -c++ -I. ext_gridloop.i
Compile and link shared library module

previousnexttable of contents