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 "architecture/utilities/bskException.swg"
 4%default_bsk_exception();
 5
 6%{
 7   #include "someModule.h"
 8%}
 9
10%include "swig_c_wrap.i"
11%c_wrap(someModule);
12
13%include "architecture/msgPayloadDefC/SomeMsgPayload.h"
14struct SomeMsg_C;
15
16%pythoncode %{
17import sys
18protectAllClasses(sys.modules[__name__])
19%}

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