summaryrefslogtreecommitdiff
path: root/lib/eventSourceBase.h
blob: 6d512b286950ec71d0f983e465732aee97da02e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
	};
	using EventSourceBasePtr = std::unique_ptr<EventSourceBase>;
}

#endif