Files
flippr-code/FlippR-Driver/include/input/InputDriver.h
Johannes Wendel 1580d807e0 last shit
2019-04-25 01:12:33 +02:00

36 lines
673 B
C++

/*
* InputDriver.h
*
* Created on: Jun 14, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#ifndef SRC_INPUT_IINPUTDRIVER_H_
#define SRC_INPUT_IINPUTDRIVER_H_
#include <memory>
#include <boost/optional/optional_io.hpp>
#include "input/EventHandler.h"
namespace flippR_driver
{
namespace input
{
class InputDriver {
public:
virtual ~InputDriver() = default;
virtual void register_event_handler(EventHandler *handler) = 0;
virtual void unregister_event_handler(EventHandler *handler) = 0;
virtual boost::optional<std::shared_ptr<Event>> get_event(std::string name) = 0;
};
}
}
#endif /* SRC_INPUT_IINPUTDRIVER_H_ */