diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-06 21:17:13 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-06 21:17:13 (GMT) |
commit | 1e6ba139ac12c688f025745812d381915775b1fb (patch) | |
tree | 1d49070eddd4502ec6aa25a769ab7c47d04a1c30 /apps/mmi-browser.cpp | |
parent | 139439f0675ec05e936fd4297086462037cd618e (diff) | |
download | uscxml-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 'apps/mmi-browser.cpp')
-rw-r--r-- | apps/mmi-browser.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/apps/mmi-browser.cpp b/apps/mmi-browser.cpp index b432296..ff326f1 100644 --- a/apps/mmi-browser.cpp +++ b/apps/mmi-browser.cpp @@ -19,12 +19,12 @@ #endif class VerboseMonitor : public uscxml::InterpreterMonitor { - void onStableConfiguration(uscxml::Interpreter* interpreter) { - printConfig(interpreter->getConfiguration()); + void onStableConfiguration(uscxml::Interpreter interpreter) { + printConfig(interpreter.getConfiguration()); } - void beforeCompletion(uscxml::Interpreter* interpreter) { - printConfig(interpreter->getConfiguration()); + void beforeCompletion(uscxml::Interpreter interpreter) { + printConfig(interpreter.getConfiguration()); } void printConfig(const Arabica::XPath::NodeSet<std::string>& config) { @@ -164,20 +164,19 @@ 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); if (verbose) { VerboseMonitor* vm = new VerboseMonitor(); - interpreter->addMonitor(vm); + interpreter.addMonitor(vm); } - interpreter->start(); - while(interpreter->runOnMainThread(25)); - delete interpreter; + interpreter.start(); + while(interpreter.runOnMainThread(25)); } return EXIT_SUCCESS; |