/* * InputFactory.h * * Created on: Apr 5, 2018 * Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht */ #ifndef INPUTFACTORY_H_ #define INPUTFACTORY_H_ #include #include #include "Detector.h" #include "IInputDriver.h" #include "utilities/InputGPIOInterface.h" #include "json/json.hpp" #include "IEventNotifier.h" namespace FlippR_Driver { namespace Input { class InputDriverFactory { public: static std::shared_ptr get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream); private: static void create_input_events(nlohmann::json matrix_config, std::map>& address_event_map, std::map>& name_event_map, std::shared_ptr event_notifier); }; } } #endif