diff options
Diffstat (limited to 'src/uscxml/plugins/datamodel/ecmascript/v8')
-rw-r--r-- | src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp | 6 | ||||
-rw-r--r-- | src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp b/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp index 3bdf28c..5ab9b3e 100644 --- a/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp +++ b/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp @@ -23,7 +23,7 @@ V8DataModel::V8DataModel() { // _contexts.push_back(v8::Context::New()); } -DataModel* V8DataModel::create(Interpreter* interpreter) { +DataModelImpl* V8DataModel::create(Interpreter* interpreter) { V8DataModel* dm = new V8DataModel(); dm->_interpreter = interpreter; v8::Locker locker; @@ -62,8 +62,8 @@ DataModel* V8DataModel::create(Interpreter* interpreter) { return dm; } -void V8DataModel::registerIOProcessor(const std::string& name, IOProcessor* ioprocessor) { - assign("_ioprocessors['" + name + "']", ioprocessor->getDataModelVariables()); +void V8DataModel::registerIOProcessor(const std::string& name, const IOProcessor& ioprocessor) { + assign("_ioprocessors['" + name + "']", ioprocessor.getDataModelVariables()); } void V8DataModel::setSessionId(const std::string& sessionId) { diff --git a/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h b/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h index deee58c..e5c1bc8 100644 --- a/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h +++ b/src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h @@ -17,11 +17,11 @@ class V8SCXMLDOM; namespace uscxml { -class V8DataModel : public DataModel { +class V8DataModel : public DataModelImpl { public: V8DataModel(); virtual ~V8DataModel(); - virtual DataModel* create(Interpreter* interpreter); + virtual DataModelImpl* create(Interpreter* interpreter); virtual std::set<std::string> getNames() { std::set<std::string> names; @@ -34,7 +34,7 @@ public: virtual void setName(const std::string& name); virtual void setEvent(const Event& event); - virtual void registerIOProcessor(const std::string& name, IOProcessor* ioprocessor); + virtual void registerIOProcessor(const std::string& name, const IOProcessor& ioprocessor); virtual bool validate(const std::string& location, const std::string& schema); |