/** * @file * @author 2012-2014 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de) * @copyright Simplified BSD * * @cond * This program is free software: you can redistribute it and/or modify * it under the terms of the FreeBSD license as published by the FreeBSD * project. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * You should have received a copy of the FreeBSD license along with this * program. If not, see . * @endcond */ #ifndef WRAPPEDINVOKER_H_F9725D47 #define WRAPPEDINVOKER_H_F9725D47 #include #include #include #include #include #include "../../../uscxml/messages/Event.h" #include "../../../uscxml/plugins/Factory.h" #include "../../../uscxml/plugins/InvokerImpl.h" // forward declare namespace XERCESC_NS { class DOMElement; } namespace uscxml { class WrappedInvoker : public InvokerImpl { public: WrappedInvoker(InterpreterImpl* interpreter); virtual ~WrappedInvoker(); virtual std::list getNames() { return std::list(); }; virtual std::shared_ptr create(InterpreterImpl* interpreter) { std::shared_ptr inv = std::shared_ptr(new WrappedInvoker(interpreter)); return inv; } virtual void invoke(const std::string& source, const Event& invokeEvent) {} virtual void uninvoke() {} virtual void eventFromSCXML(const Event& event) {} virtual XERCESC_NS::DOMElement* getFinalize() { return _finalize; } virtual void setFinalize(XERCESC_NS::DOMElement* finalize) { _finalize = finalize; } virtual void setInvokeId(const std::string& invokeId) { _invokeId = invokeId; } virtual Data getDataModelVariables() { return Data(); } void eventToSCXML(Event& event, const std::string& type, const std::string& invokeId, bool internal = false) { } private: InterpreterImpl* _interpreter; }; } #endif /* end of include guard: WRAPPEDINVOKER_H_F9725D47 */