summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/DataModelImpl.h
diff options
context:
space:
mode:
authoralexzhornyak <alexander.zhornyak@gmail.com>2017-05-13 21:39:11 (GMT)
committeralexzhornyak <alexander.zhornyak@gmail.com>2017-05-13 21:39:11 (GMT)
commitb3c8edc7788fc6bcdd941ecdee5435957bc08366 (patch)
tree4e4238ad748c5f9e7baf28a24783bb2cccc07cdd /src/uscxml/plugins/DataModelImpl.h
parent43370419fb7a9f14d85f96f39ffff86a337756d4 (diff)
parent82087b37adc295d1aab5afd51f855f8d9f0923f8 (diff)
downloaduscxml-b3c8edc7788fc6bcdd941ecdee5435957bc08366.zip
uscxml-b3c8edc7788fc6bcdd941ecdee5435957bc08366.tar.gz
uscxml-b3c8edc7788fc6bcdd941ecdee5435957bc08366.tar.bz2
Merge branch 'Improving-EvalAsData' into Explicit-Eval
Diffstat (limited to 'src/uscxml/plugins/DataModelImpl.h')
-rw-r--r--src/uscxml/plugins/DataModelImpl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uscxml/plugins/DataModelImpl.h b/src/uscxml/plugins/DataModelImpl.h
index a804ea3..62453a8 100644
--- a/src/uscxml/plugins/DataModelImpl.h
+++ b/src/uscxml/plugins/DataModelImpl.h
@@ -173,6 +173,12 @@ 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); }
+
+ /**
* Evaluate a given expression as a boolean.
* This function is a subset of evalAsData() but saves on creating and copying a Data object.
* @param expr An expression in the data-model's language.