diff options
Diffstat (limited to 'src/uscxml/plugins/datamodel/lua')
-rw-r--r-- | src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp | 3 | ||||
-rw-r--r-- | src/uscxml/plugins/datamodel/lua/bindings.i | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp index 607f994..d4c27da 100644 --- a/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp +++ b/src/uscxml/plugins/datamodel/lua/LuaDataModel.cpp @@ -36,7 +36,9 @@ #endif #include "uscxml/messages/Event.h" +#ifndef NO_XERCESC #include "uscxml/util/DOM.h" +#endif #include "uscxml/interpreter/Logging.h" #include <boost/algorithm/string.hpp> @@ -272,6 +274,7 @@ void LuaDataModel::setEvent(const Event& event) { luabridge::LuaRef luaEvent(_luaState); luaEvent = luabridge::newTable(_luaState); + luaEvent["name"] = event.name; if (event.raw.size() > 0) luaEvent["raw"] = event.raw; diff --git a/src/uscxml/plugins/datamodel/lua/bindings.i b/src/uscxml/plugins/datamodel/lua/bindings.i index 24b756b..73bc9f9 100644 --- a/src/uscxml/plugins/datamodel/lua/bindings.i +++ b/src/uscxml/plugins/datamodel/lua/bindings.i @@ -7,6 +7,7 @@ %import "uscxml/config.h" %import "uscxml/Common.h" +#ifndef NO_XERCESC %import "xercesc/util/XercesDefs.hpp" %import "xercesc/util/Xerces_autoconf_config.hpp" @@ -29,6 +30,7 @@ %} %include "../common/bindings/dom/dom.i" +#endif // Operators we do want // %rename(operator_assignment) operator=; |