summaryrefslogtreecommitdiffstats
path: root/test/src/test-w3c.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-06 21:17:13 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-06 21:17:13 (GMT)
commit1e6ba139ac12c688f025745812d381915775b1fb (patch)
tree1d49070eddd4502ec6aa25a769ab7c47d04a1c30 /test/src/test-w3c.cpp
parent139439f0675ec05e936fd4297086462037cd618e (diff)
downloaduscxml-1e6ba139ac12c688f025745812d381915775b1fb.zip
uscxml-1e6ba139ac12c688f025745812d381915775b1fb.tar.gz
uscxml-1e6ba139ac12c688f025745812d381915775b1fb.tar.bz2
See detailled log
Added new revised W3C tests Hide Interpreter via PIMPL Implemented SCXMLIOProcessor
Diffstat (limited to 'test/src/test-w3c.cpp')
-rw-r--r--test/src/test-w3c.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp
index 8dc3e17..70c8b80 100644
--- a/test/src/test-w3c.cpp
+++ b/test/src/test-w3c.cpp
@@ -96,7 +96,7 @@ void printUsageAndExit() {
}
class W3CStatusMonitor : public uscxml::InterpreterMonitor {
- void beforeCompletion(uscxml::Interpreter* interpreter) {
+ void beforeCompletion(uscxml::InterpreterImpl* interpreter) {
Arabica::XPath::NodeSet<std::string> config = interpreter->getConfiguration();
if (config.size() == 1 && boost::iequals(ATTR(config[0], "id"), "pass"))
exit(EXIT_SUCCESS);
@@ -145,18 +145,17 @@ int main(int argc, char** argv) {
// std::cout << optind << std::endl;
LOG(INFO) << "Processing " << argv[optind];
- Interpreter* interpreter = Interpreter::fromURI(argv[optind]);
+ Interpreter interpreter = Interpreter::fromURI(argv[optind]);
if (interpreter) {
- interpreter->setCmdLineOptions(argc, argv);
+ interpreter.setCmdLineOptions(argc, argv);
// interpreter->setCapabilities(Interpreter::CAN_NOTHING);
// interpreter->setCapabilities(Interpreter::CAN_BASIC_HTTP | Interpreter::CAN_GENERIC_HTTP);
W3CStatusMonitor* vm = new W3CStatusMonitor();
- interpreter->addMonitor(vm);
+ interpreter.addMonitor(vm);
- interpreter->start();
- while(interpreter->runOnMainThread(25));
- delete interpreter;
+ interpreter.start();
+ while(interpreter.runOnMainThread(25));
}
return EXIT_SUCCESS;