diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-06-26 21:37:03 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-06-26 21:37:03 (GMT) |
commit | a4b506fd774ec50ad79b7531bd3698c5a6339407 (patch) | |
tree | 5e524b2c91e97f1037818e0262616f74e5e628a4 /src/bindings/swig/csharp | |
parent | fe84b93d3e80d4b03e7a401582654c84d7fa7d9a (diff) | |
download | uscxml-a4b506fd774ec50ad79b7531bd3698c5a6339407.zip uscxml-a4b506fd774ec50ad79b7531bd3698c5a6339407.tar.gz uscxml-a4b506fd774ec50ad79b7531bd3698c5a6339407.tar.bz2 |
More work on language bindings and C# examples
Diffstat (limited to 'src/bindings/swig/csharp')
-rw-r--r-- | src/bindings/swig/csharp/uscxml.i | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/bindings/swig/csharp/uscxml.i b/src/bindings/swig/csharp/uscxml.i index e7b7d62..6f4f214 100644 --- a/src/bindings/swig/csharp/uscxml.i +++ b/src/bindings/swig/csharp/uscxml.i @@ -3,9 +3,6 @@ // provide a macro for the header files #define SWIGIMPORTED 1 -// import swig typemaps -//%include <inttypes.i> - %include <stl.i> %include <std_map.i> %include <std_string.i> @@ -24,6 +21,7 @@ typedef uscxml::SendRequest SendRequest; %feature("director") uscxml::WrappedDataModel; %feature("director") uscxml::WrappedIOProcessor; %feature("director") uscxml::WrappedExecutableContent; +%feature("director") uscxml::WrappedInterpreterMonitor; // disable warning related to unknown base class #pragma SWIG nowarn=401 @@ -32,9 +30,6 @@ typedef uscxml::SendRequest SendRequest; %csconst(1); -# %shared_ptr(uscxml::dom::Element); -# %shared_ptr(uscxml::dom::Executable); - %rename(equals) operator==; %rename(isValid) operator bool; @@ -47,19 +42,14 @@ typedef uscxml::SendRequest SendRequest; #include "../../../uscxml/Message.h" #include "../../../uscxml/Factory.h" -#include "../../../uscxml/concurrency/BlockingQueue.h" #include "../../../uscxml/Interpreter.h" - -//#include <DOM/Document.hpp> -//#include <DOM/Node.hpp> -//#include <DOM/Element.hpp> -//#include <DOM/Attr.hpp> -//#include <DOM/Text.hpp> +#include "../../../uscxml/concurrency/BlockingQueue.h" #include "../wrapped/WrappedInvoker.h" #include "../wrapped/WrappedDataModel.h" #include "../wrapped/WrappedExecutableContent.h" #include "../wrapped/WrappedIOProcessor.h" +#include "../wrapped/WrappedInterpreterMonitor.h" using namespace uscxml; using namespace Arabica::DOM; @@ -68,6 +58,7 @@ using namespace Arabica::DOM; #include "../wrapped/WrappedDataModel.cpp" #include "../wrapped/WrappedExecutableContent.cpp" #include "../wrapped/WrappedIOProcessor.cpp" +#include "../wrapped/WrappedInterpreterMonitor.cpp" %} @@ -136,10 +127,6 @@ WRAP_THROW_EXCEPTION(uscxml::Interpreter::interpret); %rename Data DataNative; -// translate param multimap to Map<String, List<Data> > -%rename(getParamsNative) uscxml::Event::getParams(); -%csmethodmodifiers uscxml::Event::getParams() "private"; - %include "../uscxml_beautify.i" @@ -157,6 +144,7 @@ WRAP_THROW_EXCEPTION(uscxml::Interpreter::interpret); %include "../wrapped/WrappedDataModel.h" %include "../wrapped/WrappedExecutableContent.h" %include "../wrapped/WrappedIOProcessor.h" +%include "../wrapped/WrappedInterpreterMonitor.h" %template(DataList) std::list<uscxml::Data>; |