summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Factory.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-08 00:20:56 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-08 00:20:56 (GMT)
commitdbd110e2b7eb08c65218a5f9d09ef12fdc62c04a (patch)
tree93444e4c106eeca34d928521bedbda8080410795 /src/uscxml/Factory.cpp
parentd5e1f6397c52513018cd59972cf5ca8740de18eb (diff)
downloaduscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.zip
uscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.tar.gz
uscxml-dbd110e2b7eb08c65218a5f9d09ef12fdc62c04a.tar.bz2
First signs of Lua Datamodel
Diffstat (limited to 'src/uscxml/Factory.cpp')
-rw-r--r--src/uscxml/Factory.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/uscxml/Factory.cpp b/src/uscxml/Factory.cpp
index 0f3e8c9..62756fc 100644
--- a/src/uscxml/Factory.cpp
+++ b/src/uscxml/Factory.cpp
@@ -104,6 +104,10 @@
# include "uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h"
# endif
+# ifdef LUA_FOUND
+# include "uscxml/plugins/datamodel/lua/LuaDataModel.h"
+# endif
+
#include "uscxml/plugins/datamodel/xpath/XPathDataModel.h"
#include "uscxml/plugins/datamodel/promela/PromelaDataModel.h"
@@ -299,6 +303,13 @@ void Factory::registerPlugins() {
}
#endif
+#if (defined LUA_FOUND && defined BUILD_DM_LUA)
+ {
+ LuaDataModel* dataModel = new LuaDataModel();
+ registerDataModel(dataModel);
+ }
+#endif
+
#if (defined BUILD_DM_PROMELA)
{
PromelaDataModel* dataModel = new PromelaDataModel();