Swig Interface File

The swig interface file makes it possible to create, setup and manipulate the Basilisk module from python. This *.i file is in the module folder with the *.h and *.c files.

The basic swig interface file looks like this:

 1%module someModule
 2%{
 3   #include "someModule.h"
 4%}
 5
 6%include "swig_c_wrap.i"
 7%c_wrap(someModule);
 8
 9%include "architecture/msgPayloadDefC/SomeMsgPayload.h"
10struct SomeMsg_C;
11
12%pythoncode %{
13import sys
14protectAllClasses(sys.modules[__name__])
15%}

Regarding what swig interfaces to include, see C++ Swig Interface File for additional options.