2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef CORE_EVENTLOOP_H
43#define CORE_EVENTLOOP_H
45#include "core/State.h"
46#include "core/TickStatus.h"
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
82 static bool init(
int argc,
char* argv[]);
static unsigned long tickCounter
EventMultiplexer & getEventMultiplexer()
EventLoop(const EventLoop &eventLoop)=delete
static core::State getEventLoopState()
TickStatus _tick(const utils::Timeval &timeOut)
static EventLoop & instance()
core::EventMultiplexer & eventMultiplexer
static core::State eventLoopState
EventLoop & operator=(const EventLoop &eventLoop)=delete
static void stoponsig(int sig)
static int start(const utils::Timeval &timeOut)
static TickStatus tick(const utils::Timeval &timeOut)
static bool init(int argc, char *argv[])
static unsigned long getTickCounter()
void span(core::Event *event)
void relax(core::Event *event)
virtual void onEvent(const utils::Timeval ¤tTime)=0
const std::string & getName() const
void dispatch(const utils::Timeval ¤tTime)
EventMultiplexer & eventMultiplexer
EventReceiver * eventReceiver
Event(EventReceiver *eventReceiver, const std::string &name)
EventReceiver * getEventReceiver() const