diff options
Diffstat (limited to 'apps/uscxml-browser.cpp')
-rw-r--r-- | apps/uscxml-browser.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp index a3c7419..359a9a0 100644 --- a/apps/uscxml-browser.cpp +++ b/apps/uscxml-browser.cpp @@ -28,7 +28,17 @@ class VerboseMonitor : public uscxml::InterpreterMonitor { } void beforeProcessingEvent(uscxml::Interpreter interpreter, const uscxml::Event& event) { - std::cout << "Event: " << event.name << std::endl; + switch (event.eventType) { + case uscxml::Event::INTERNAL: + std::cout << "Internal Event: " << event.name << std::endl; + break; + case uscxml::Event::EXTERNAL: + std::cout << "External Event: " << event.name << std::endl; + break; + case uscxml::Event::PLATFORM: + std::cout << "Platform Event: " << event.name << std::endl; + break; + } } void beforeCompletion(uscxml::Interpreter interpreter) { |