summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/DataModel.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-03 11:31:35 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-03 11:31:35 (GMT)
commit67f8e8b4106eb20ce0bc01fd840b0d8e4319cb36 (patch)
tree42ba94ef35bf70d74ebb8dcc03e01752874a6540 /src/uscxml/plugins/DataModel.h
parentb542369263782dc8b85893e218119ed070efa7b3 (diff)
downloaduscxml-67f8e8b4106eb20ce0bc01fd840b0d8e4319cb36.zip
uscxml-67f8e8b4106eb20ce0bc01fd840b0d8e4319cb36.tar.gz
uscxml-67f8e8b4106eb20ce0bc01fd840b0d8e4319cb36.tar.bz2
Introduced isLocation for datamodels to check for valid namelist entries
Diffstat (limited to 'src/uscxml/plugins/DataModel.h')
-rw-r--r--src/uscxml/plugins/DataModel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uscxml/plugins/DataModel.h b/src/uscxml/plugins/DataModel.h
index f142a60..1a4deba 100644
--- a/src/uscxml/plugins/DataModel.h
+++ b/src/uscxml/plugins/DataModel.h
@@ -41,6 +41,7 @@ public:
virtual std::list<std::string> getNames() = 0;
virtual bool validate(const std::string& location, const std::string& schema) = 0;
+ virtual bool isLocation(const std::string& expr) = 0;
virtual void setEvent(const Event& event) = 0;
virtual Data getStringAsData(const std::string& content) = 0;
@@ -121,6 +122,10 @@ public:
virtual bool validate(const std::string& location, const std::string& schema) {
return _impl->validate(location, schema);
}
+ virtual bool isLocation(const std::string& expr) {
+ return _impl->isLocation(expr);
+ }
+
virtual void setEvent(const Event& event) {
return _impl->setEvent(event);
}