refactored namespaces and added driverfactory
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <atomic>
|
||||
|
||||
#include "Detector.h"
|
||||
#include "InputDriver.h"
|
||||
#include "IInputDriver.h"
|
||||
|
||||
#include "utilities/InputGPIOInterface.h"
|
||||
#include "utilities/config.h"
|
||||
@@ -24,13 +24,13 @@
|
||||
|
||||
INITIALIZE_EASYLOGGINGPP
|
||||
|
||||
namespace Input
|
||||
namespace FlippR_Driver::Input
|
||||
{
|
||||
class InputDriverFactory
|
||||
{
|
||||
|
||||
public:
|
||||
static std::shared_ptr<InputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream);
|
||||
static std::shared_ptr<IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream);
|
||||
|
||||
private:
|
||||
static void create_input_events(nlohmann::json matrix_config, std::map<char, std::shared_ptr<Event>> address_event_map, std::map<std::string, std::shared_ptr<Event>> name_event_map);
|
||||
|
||||
Reference in New Issue
Block a user