changed pointer stuff
This commit is contained in:
@@ -20,13 +20,17 @@ class InputDriver : public IInputDriver
|
||||
|
||||
public:
|
||||
|
||||
InputDriver(std::shared_ptr<IEventNotifier> event_notifier, std::unique_ptr<IDetector> detector);
|
||||
InputDriver(std::shared_ptr<IEventNotifier> event_notifier, std::unique_ptr<IDetector> detector, std::map<std::string, std::shared_ptr<Event>> events);
|
||||
virtual void register_event_handler(IEventHandler* handler) override;
|
||||
virtual void unregister_event_handler(IEventHandler* handler) override;
|
||||
|
||||
virtual std::shared_ptr<Event> get_event(std::string name);
|
||||
|
||||
private:
|
||||
std::shared_ptr<IEventNotifier> event_notifier;
|
||||
std::unique_ptr<IDetector> detector;
|
||||
|
||||
std::map<std::string, std::shared_ptr<Event>> events;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user