SMACC
Loading...
Searching...
No Matches
sr_event_countdown.h
Go to the documentation of this file.
1#pragma once
2#include <smacc/common.h>
4#include <map>
5#include <typeinfo>
6#include <boost/statechart/event.hpp>
7
8namespace smacc
9{
10
11namespace state_reactors
12{
13template <typename TSource, typename TObjectTag = EmptyObjectTag>
14struct EvCountdownEnd : sc::event<EvCountdownEnd<TSource, TObjectTag>>
15{
16};
17
18//-----------------------------------------------------------------------
20{
21private:
22 std::map<const std::type_info *, bool> triggeredEvents;
24
25public:
26 SrEventCountdown(int eventCount);
27
28 virtual void onInitialized() override;
29
30 virtual void onEventNotified(const std::type_info *eventType) override;
31
32 virtual bool triggers() override;
33};
34} // namespace state_reactors
35} // namespace smacc
virtual void onEventNotified(const std::type_info *eventType) override
std::map< const std::type_info *, bool > triggeredEvents