summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/sample/SampleInvoker.cpp
blob: 3678cc39bb4f14844066fa9f557e23826fc5699a (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
40
41
42
43
44
45
46
47
48
#include "SampleInvoker.h"
#include <glog/logging.h>

#ifdef BUILD_AS_PLUGINS
#include <Pluma/Connector.hpp>
#endif

namespace uscxml {

#ifdef BUILD_AS_PLUGINS
PLUMA_CONNECTOR
bool connect(pluma::Host& host) {
	host.add( new SampleInvokerProvider() );
	return true;
}
#endif

SampleInvoker::SampleInvoker() {
}

SampleInvoker::~SampleInvoker() {
};

Invoker* SampleInvoker::create(Interpreter* interpreter) {
	SampleInvoker* invoker = new SampleInvoker();
	invoker->_interpreter = interpreter;
	return invoker;
}

Data SampleInvoker::getDataModelVariables() {
	Data data;
	return data;
}

void SampleInvoker::send(SendRequest& req) {
}

void SampleInvoker::cancel(const std::string sendId) {
}

void SampleInvoker::sendToParent(SendRequest& req) {
}

void SampleInvoker::invoke(InvokeRequest& req) {
	_invokeId = req.invokeid;
}

}