2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef CORE_EVENTLOOP_H
21#define CORE_EVENTLOOP_H
23#include "core/State.h"
24#include "core/TickStatus.h"
30#ifndef DOXYGEN_SHOULD_SKIP_THIS
60 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