From 26e6bddf249bb40a5774b8dedefcb215f8a6c858 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 18 Jun 2015 23:33:00 +0300 Subject: [PATCH] [alohalytics] Updated demo to process all events in the event_base.h --- 3party/Alohalytics/examples/server/demo.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3party/Alohalytics/examples/server/demo.cc b/3party/Alohalytics/examples/server/demo.cc index 74751e0755..5d0350bf8f 100644 --- a/3party/Alohalytics/examples/server/demo.cc +++ b/3party/Alohalytics/examples/server/demo.cc @@ -42,8 +42,11 @@ struct Processor { << std::endl; } void operator()(const AlohalyticsIdEvent & event) { std::cout << event.ToString() << std::endl; } + void operator()(const AlohalyticsIdServerEvent & event) { std::cout << event.ToString() << std::endl; } void operator()(const AlohalyticsKeyEvent & event) { std::cout << event.ToString() << std::endl; } + void operator()(const AlohalyticsKeyLocationEvent & event) { std::cout << event.ToString() << std::endl; } void operator()(const AlohalyticsKeyValueEvent & event) { std::cout << event.ToString() << std::endl; } + void operator()(const AlohalyticsKeyValueLocationEvent & event) { std::cout << event.ToString() << std::endl; } void operator()(const AlohalyticsKeyPairsEvent & event) { std::cout << event.ToString() << std::endl; } void operator()(const AlohalyticsKeyPairsLocationEvent & event) { std::cout << event.ToString() << std::endl; } }; @@ -56,7 +59,8 @@ int main(int, char **) { std::unique_ptr ptr; ar(ptr); bricks::rtti::RuntimeDispatcher::DispatchCall(*ptr, processor); } } catch (const cereal::Exception &) {