summaryrefslogtreecommitdiffstats
path: root/src/bindings/swig/java/uscxml.i
blob: ccd6fe035e4bf014470f404bbe1264b76a844714 (plain)
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
35
36
37
38
39
40
%module(directors="1", allprotected="1") uscxmlNativeJava

// import swig typemaps
//%include <arrays_java.i>
//%include <inttypes.i>
%include <boost_shared_ptr.i>

// disable warning related to unknown base class
#pragma SWIG nowarn=401
//%ignore boost::enable_shared_from_this;

%javaconst(1);

# %shared_ptr(uscxml::dom::Element);
# %shared_ptr(uscxml::dom::Executable);


//**************************************************
// This ends up in the generated wrapper code
//**************************************************

%{

#include "../../../uscxml/Message.h"
#include "../../../uscxml/Interpreter.h"

using namespace uscxml;

%}

%rename(toString) operator<<;


//***********************************************
// Parse the header file to generate wrappers
//***********************************************

%include "../../../uscxml/Message.h"
%include "../../../uscxml/Interpreter.h"