blob: 97584b8aad53f2fa21d8a6d73a5b40fb476acff8 (
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
|
#include "uscxml/Interpreter.h"
#include <DOM/io/Stream.hpp>
int main(int argc, char** argv) {
if (argc != 2) {
std::cerr << "Expected path to test-communication.scxml" << std::endl;
exit(EXIT_FAILURE);
}
using namespace uscxml;
std::list<Interpreter*> _interpreters;
// Event e;
// e.compound["foo"] = Data("bar", Data::VERBATIM);
// e.compound["foo2"] = Data("bar2", Data::VERBATIM);
// std::cout << e.toDocument() << std::endl;
for (int i = 0; i < 1; i++) {
_interpreters.push_back(new Interpreter(argv[1]));
_interpreters.back()->start();
}
tthread::this_thread::sleep_for(tthread::chrono::milliseconds(100000));
}
|