changed to boost optional instead of errorevent

This commit is contained in:
Jonas Zeunert
2018-12-07 14:34:10 +01:00
parent b4cc8b7194
commit dc0dfd732a
8 changed files with 19 additions and 44 deletions

View File

@@ -8,8 +8,10 @@
#ifndef SRC_INPUT_IINPUTDRIVER_H_
#define SRC_INPUT_IINPUTDRIVER_H_
#include "input/IEventHandler.h"
#include <memory>
#include <boost/optional.hpp>
#include "input/IEventHandler.h"
namespace flippR_driver
{
@@ -23,7 +25,7 @@ namespace input
virtual void unregister_event_handler(IEventHandler *handler) = 0;
virtual std::shared_ptr<Event> get_event(std::string name) = 0;
virtual boost::optional<std::shared_ptr<Event>> get_event(std::string name) = 0;
};
}
}