summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/DataModelImpl.h
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-14 11:42:18 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-14 11:42:18 (GMT)
commit56074d3bd2ab4c8220b67b3da56ff55bbb286bae (patch)
treead507c0f39088bb367fe7bb295f9dba0396064d2 /src/uscxml/plugins/DataModelImpl.h
parent1453feb7ca59167c219afb21dfba4ed3ea68d176 (diff)
downloaduscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.zip
uscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.tar.gz
uscxml-56074d3bd2ab4c8220b67b3da56ff55bbb286bae.tar.bz2
Beautified code and some light refactoring
Diffstat (limited to 'src/uscxml/plugins/DataModelImpl.h')
-rw-r--r--src/uscxml/plugins/DataModelImpl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/uscxml/plugins/DataModelImpl.h b/src/uscxml/plugins/DataModelImpl.h
index 62453a8..e3db75a 100644
--- a/src/uscxml/plugins/DataModelImpl.h
+++ b/src/uscxml/plugins/DataModelImpl.h
@@ -173,10 +173,13 @@ public:
virtual Data evalAsData(const std::string& content) = 0;
/**
- * evaluating script content without return
- * @param mostly used in script content.
- */
- virtual void eval(const std::string& content) { evalAsData(content); }
+ * Evaluating an expression
+ * We need an explicit 'eval' function for the LuaDataModel, see issue 118
+ * @param expr An expression in the data-model's language.
+ */
+ virtual void eval(const std::string& content) {
+ evalAsData(content);
+ }
/**
* Evaluate a given expression as a boolean.