/home/barant/Development/BMA/server_core/ServerCore/BMATimer.h
#ifndef __BMATimer_h__
#define __BMATimer_h__
#include "BMASocket.h"
#include "BMAEPoll.h"
class BMATimer : BMASocket {
public:
BMATimer(BMAEPoll &ePoll);
BMATimer(BMAEPoll &ePoll, double delay);
~BMATimer();
void setTimer(double delay);
void clearTimer();
double getElapsed();
double getEpoch();
protected:
virtual void onTimeout() = 0;
private:
void onDataReceived(std::string data) override;
double delayValue;
};
#endif
BMASocket
Definition: BMASocket.h:31
BMATimer::onTimeout
virtual void onTimeout()=0
BMAEPoll
Definition: BMAEPoll.h:29
BMATimer
Definition: BMATimer.h:16
BMATimer::getElapsed
double getElapsed()
Definition: BMATimer.cpp:45
BMATimer::setTimer
void setTimer(double delay)
Definition: BMATimer.cpp:12
BMATimer::clearTimer
void clearTimer()
Definition: BMATimer.cpp:32