diff options
Diffstat (limited to 'src/uscxml/plugins/DataModel.h')
-rw-r--r-- | src/uscxml/plugins/DataModel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uscxml/plugins/DataModel.h b/src/uscxml/plugins/DataModel.h index b1eafb9..be68ea2 100644 --- a/src/uscxml/plugins/DataModel.h +++ b/src/uscxml/plugins/DataModel.h @@ -42,6 +42,9 @@ public: virtual bool validate(const std::string& location, const std::string& schema) = 0; virtual bool isLocation(const std::string& expr) = 0; + virtual bool isValidSyntax(const std::string& expr) { + return true; // overwrite when datamodel supports it + } virtual void setEvent(const Event& event) = 0; virtual Data getStringAsData(const std::string& content) = 0; @@ -125,6 +128,9 @@ public: virtual bool isLocation(const std::string& expr) { return _impl->isLocation(expr); } + virtual bool isValidSyntax(const std::string& expr) { + return _impl->isValidSyntax(expr); + } virtual void setEvent(const Event& event) { return _impl->setEvent(event); |