working on big refactor
This commit is contained in:
34
FlippR-Driver/include/input/InputDriver.h
Normal file
34
FlippR-Driver/include/input/InputDriver.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* 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.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_ */
|
||||
Reference in New Issue
Block a user