blob: 5f0b9306f78becd0cc4ab80c9f77edc2014f6f35 (
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
49
50
51
52
53
54
55
|
%module(directors="1", allprotected="1") uscxmlNativePHP
// import swig typemaps
%include "stl.i"
// macros from cmake
%import "uscxml/config.h"
// disable warning related to unknown base class
#pragma SWIG nowarn=401
%rename(c_array) array;
%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"
#include "../../../uscxml/concurrency/BlockingQueue.h"
using namespace uscxml;
%}
// Add this to the very top of the generated wrapper code
%insert("begin") %{
void*** tsrm_ls;
%}
%feature("director") uscxml::InterpreterMonitor;
%ignore uscxml::NumAttr;
%ignore uscxml::SCXMLParser;
%ignore uscxml::InterpreterImpl;
//***********************************************
// Parse the header file to generate wrappers
//***********************************************
%include "../../../uscxml/Message.h"
%include "../../../uscxml/Interpreter.h"
%include "../../../uscxml/concurrency/BlockingQueue.h"
%template(ParentQueue) uscxml::concurrency::BlockingQueue<uscxml::SendRequest>;
%template(NameList) std::map<std::string, std::string>;
%template(ParamList) std::vector<std::string>;
%template(Params) std::map<std::string, std::vector<std::string> >;
|