forked from ppdewolf/libmuargus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMuArgCtrl.swg
34 lines (28 loc) · 1.24 KB
/
MuArgCtrl.swg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// %module MuArgusCtrl
// directors="1" needed for being able to use the director feature
%module(directors="1") MuArgusCtrl
%include <typemaps.i>
%include <windows.i>
%include <arrays_java.i>
%include <various.i>
%include <std_string.i>
// By default treat method parameters of the following types as simple output variables in Java
// Arrays of size 1 are generated, so output can be retrieved (we can't pass the address of a variable in Java)
%apply bool *OUTPUT { bool * };
%apply long *OUTPUT { long * };
%apply double *OUTPUT { double * };
%apply char **STRING_OUT { char ** };
// Arrays used as input
%apply long[] { long *nSupps, long *VarList, long *HHFrequency, long *RecFrequency, long *Frequency, long *VarIndex, long *VarIndexes, long *UCArray};
%apply char **STRING_ARRAY { char* [] }
%apply double[] { double *ClassLeftValue };
// Include this block in the generated C++ wrapper code (MuArgus_wrap.cpp)
%{
#include "IProgressListener.h"
#include "MuArgCtrl.h"
%}
%feature("director") IProgressListener;
// Turn on director wrapping IProgressListener. This makes it possible to extend this class in Java
// Generate wrapper code for the classes in these header files, so they can be called from Java
%include "IProgressListener.h"
%include "MuArgCtrl.h"