blob: 760846c6db0d44865682b08d4a479c1f1a7a50b6 (
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
41
42
43
44
45
46
47
48
|
%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);
%rename(equals) operator==;
%rename(isValid) operator bool;
%ignore operator!=;
%ignore operator<;
%ignore operator=;
//**************************************************
// This ends up in the generated wrapper code
//**************************************************
%{
#include "../../../uscxml/Message.h"
#include "../../../uscxml/Interpreter.h"
using namespace uscxml;
%}
%rename(toString) operator<<;
%ignore uscxml::NumAttr;
%ignore uscxml::SCXMLParser;
%ignore uscxml::InterpreterImpl;
//***********************************************
// Parse the header file to generate wrappers
//***********************************************
%include "../../../uscxml/Message.h"
%include "../../../uscxml/Interpreter.h"
|