blob: ba58678ac9e46b90aac8763ea21bdc89985d66e2 (
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
|
%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
//**************************************************
// 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;
//***********************************************
// 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> >;
|