summaryrefslogtreecommitdiffstats
path: root/src/bindings
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 12:38:26 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 12:38:26 (GMT)
commit422dedee98e956a7f4cffa69a4ba0a34716dec7f (patch)
tree2e3c4d3b8d851f89a40cc632f2d9472c673aaa01 /src/bindings
parentd35b69b97dead2e50dda697f0fb0d5e574bbf205 (diff)
downloaduscxml-422dedee98e956a7f4cffa69a4ba0a34716dec7f.zip
uscxml-422dedee98e956a7f4cffa69a4ba0a34716dec7f.tar.gz
uscxml-422dedee98e956a7f4cffa69a4ba0a34716dec7f.tar.bz2
Polished java datamodel example
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/swig/java/uscxml.i3
-rw-r--r--src/bindings/swig/php/uscxml.i1
-rw-r--r--src/bindings/swig/php/uscxmlNativePHP.php36
3 files changed, 7 insertions, 33 deletions
diff --git a/src/bindings/swig/java/uscxml.i b/src/bindings/swig/java/uscxml.i
index 02ef531..7f496cd 100644
--- a/src/bindings/swig/java/uscxml.i
+++ b/src/bindings/swig/java/uscxml.i
@@ -38,6 +38,7 @@ typedef uscxml::SendRequest SendRequest;
%ignore operator std::list<Data>;
%ignore operator std::string;
%ignore operator std::map<std::string,Data>;
+%ignore operator<<;
//**************************************************
@@ -59,8 +60,6 @@ using namespace uscxml;
%}
-%rename(toString) operator<<;
-
%ignore uscxml::NumAttr;
%ignore uscxml::SCXMLParser;
%ignore uscxml::InterpreterImpl;
diff --git a/src/bindings/swig/php/uscxml.i b/src/bindings/swig/php/uscxml.i
index 8500bfe..fb7d370 100644
--- a/src/bindings/swig/php/uscxml.i
+++ b/src/bindings/swig/php/uscxml.i
@@ -19,6 +19,7 @@
%ignore operator std::list<Data>;
%ignore operator std::string;
%ignore operator std::map<std::string,Data>;
+%ignore operator<<;
%template(StringMap) std::map<std::string, std::string>;
%template(StringVector) std::vector<std::string>;
diff --git a/src/bindings/swig/php/uscxmlNativePHP.php b/src/bindings/swig/php/uscxmlNativePHP.php
index 08fc515..ce52045 100644
--- a/src/bindings/swig/php/uscxmlNativePHP.php
+++ b/src/bindings/swig/php/uscxmlNativePHP.php
@@ -391,12 +391,12 @@ class Event {
Event_setName($this->_cPtr,$name);
}
- function getType() {
- return Event_getType($this->_cPtr);
+ function getEventType() {
+ return Event_getEventType($this->_cPtr);
}
- function setType($type) {
- Event_setType($this->_cPtr,$type);
+ function setEventType($type) {
+ Event_setEventType($this->_cPtr,$type);
}
function getOrigin() {
@@ -517,34 +517,8 @@ class Event {
return $r;
}
- function getNameListKeys() {
- $r=Event_getNameListKeys($this->_cPtr);
- if (is_resource($r)) {
- $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
- if (class_exists($c)) return new $c($r);
- return new StringVector($r);
- }
- return $r;
- }
-
function getParams() {
- $r=Event_getParams($this->_cPtr);
- if (is_resource($r)) {
- $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
- if (class_exists($c)) return new $c($r);
- return new Params($r);
- }
- return $r;
- }
-
- function getParamKeys() {
- $r=Event_getParamKeys($this->_cPtr);
- if (is_resource($r)) {
- $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
- if (class_exists($c)) return new $c($r);
- return new StringVector($r);
- }
- return $r;
+ return Event_getParams($this->_cPtr);
}
}