summaryrefslogtreecommitdiffstats
path: root/src/bindings/swig/java/JavaInvoker.h
blob: e4db75937349ac4dda05444db31cda1b06f2861d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef JAVAINVOKER_H_WDV9B5F6
#define JAVAINVOKER_H_WDV9B5F6

#include "../../../uscxml/Message.h"
#include "../../../uscxml/Factory.h"
#include "../../../uscxml/Interpreter.h"

namespace uscxml {

class JavaInvoker : public InvokerImpl {
public:
	JavaInvoker();
	virtual ~JavaInvoker();

	virtual std::set<std::string> getNames() {
		return std::set<std::string>();
	};

	virtual Data getDataModelVariables() {
		Data data;
		return data;
	}

	virtual void send(const SendRequest& req) {}
	virtual void invoke(const InvokeRequest& req) {}

	virtual JavaInvoker* create(Interpreter interpreter) {
		return new JavaInvoker();
	}

	virtual boost::shared_ptr<InvokerImpl> create(InterpreterImpl* interpreter) {
		return boost::shared_ptr<InvokerImpl>(create(interpreter->shared_from_this()));
	}

};

}

#endif /* end of include guard: JAVAINVOKER_H_WDV9B5F6 */