EventAnalysis  1.3.0
EventLoopProxy.h
Go to the documentation of this file.
1 /*
2  * EventLoopProxy.h
3  *
4  * Created on: 11 Jun 2018
5  * Author: Nicola Mori
6  */
7 
10 #ifndef EVENTLOOPPROXY_H_
11 #define EVENTLOOPPROXY_H_
12 
13 namespace EA {
14 
15 class EventLoop;
16 
25 public:
30  EventLoopProxy(EventLoop &evLoop);
31 
36  unsigned int GetCurrentEvent();
37 
47  bool SetNextEvent(unsigned int nextEvent);
48 
57  bool StopLoop();
58 
59 private:
60  friend class EventLoop;
66  void _Reset();
67 
69  unsigned int _requestedEvent;
70  bool _stopLoop;
71 };
72 
73 } /* namespace EA */
74 
75 #endif /* EVENTLOOPPROXY_H_ */
unsigned int GetCurrentEvent()
Get the id number of the currently processed event.
Definition: EventLoopProxy.cpp:15
EventLoopProxy(EventLoop &evLoop)
Constructor.
Definition: EventLoopProxy.cpp:13
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
bool StopLoop()
Requests to stop the current loop.
Definition: EventLoopProxy.cpp:33
void _Reset()
Resets the proxy at the beginning of the event processing.
Definition: EventLoopProxy.cpp:38
A proxy class for EventLoop objects.
Definition: EventLoopProxy.h:24
bool _stopLoop
Definition: EventLoopProxy.h:70
unsigned int _requestedEvent
Definition: EventLoopProxy.h:69
EventLoop & _evLoop
Definition: EventLoopProxy.h:68
bool SetNextEvent(unsigned int nextEvent)
Sets the next event to be processed.
Definition: EventLoopProxy.cpp:17
Interface for event loop classes.
Definition: EventLoop.h:32