summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/uscxml-browser.cpp12
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) {