summaryrefslogtreecommitdiff
path: root/lib/eventSourceBase.h
blob: db6bd1bbf8c40929286fbb057a630b015dbf34e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef MYGRATE_EVENTSOURCEBASE_H
#define MYGRATE_EVENTSOURCEBASE_H

#include "eventHandlerBase.h"
#include <memory>

namespace MyGrate {
	class EventSourceBase {
	public:
		virtual ~EventSourceBase() = default;
		virtual void readEvents(EventHandlerBase &) = 0;
		virtual void stopEvents() = 0;
	};
	using EventSourceBasePtr = std::unique_ptr<EventSourceBase>;
}

#endif