renamed impl to detail
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
|
||||
#include "utility/LoggerFactory.h"
|
||||
|
||||
#include "input/impl/InputDriver.h"
|
||||
#include "input/impl/EventNotifier.h"
|
||||
#include "input/impl/Detector.h"
|
||||
#include "input/detail/InputDriver.h"
|
||||
#include "input/detail/EventNotifier.h"
|
||||
#include "input/detail/Detector.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
@@ -31,17 +31,17 @@ std::shared_ptr<InputDriver> get_InputDriver(std::istream &input_pin_stream, std
|
||||
LoggerFactory::CreateInputLogger();
|
||||
|
||||
IBlockingQueue<Event> *event_queue = new BlockingQueue<Event>;
|
||||
std::shared_ptr<EventNotifier> event_notifier(new impl::EventNotifier(event_queue));
|
||||
std::shared_ptr<EventNotifier> event_notifier(new detail::EventNotifier(event_queue));
|
||||
|
||||
std::vector<std::shared_ptr<DistributingEvent>> events;
|
||||
std::map<std::string, std::shared_ptr<Event>> name_event_map;
|
||||
|
||||
create_events(matrix_config_stream, events, name_event_map, event_notifier);
|
||||
|
||||
std::unique_ptr<InputPinController> input_gpio_interface(new impl::InputPinController(create_pin_map(input_pin_stream)));
|
||||
std::unique_ptr<Detector> detector(new impl::Detector(std::move(input_gpio_interface), events));
|
||||
std::unique_ptr<InputPinController> input_gpio_interface(new detail::InputPinController(create_pin_map(input_pin_stream)));
|
||||
std::unique_ptr<Detector> detector(new detail::Detector(std::move(input_gpio_interface), events));
|
||||
|
||||
return std::make_shared<impl::InputDriver>(event_notifier, std::move(detector), name_event_map);
|
||||
return std::make_shared<detail::InputDriver>(event_notifier, std::move(detector), name_event_map);
|
||||
}
|
||||
|
||||
namespace
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "input/InputDriver.h"
|
||||
#include "DistributingEvent.h"
|
||||
#include "input/impl/InputPinController.h"
|
||||
#include "input/detail/InputPinController.h"
|
||||
#include "input/EventNotifier.h"
|
||||
|
||||
namespace flippR_driver
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
Detector::Detector(std::unique_ptr<InputPinController> input_gpio_interface, std::vector<std::shared_ptr<DistributingEvent>> events)
|
||||
@@ -29,7 +29,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class Detector : public input::Detector
|
||||
@@ -11,7 +11,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
EventHandler::EventHandler(std::shared_ptr<InputDriver> input_driver) :
|
||||
@@ -21,7 +21,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class EventHandler;
|
||||
@@ -15,7 +15,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
EventNotifier::EventNotifier(utility::IBlockingQueue<Event> *queue) :
|
||||
@@ -25,7 +25,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class EventNotifier : public input::EventNotifier
|
||||
@@ -12,7 +12,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
InputDriver::InputDriver(std::shared_ptr<EventNotifier> event_notifier, std::unique_ptr<Detector> detector,
|
||||
@@ -18,7 +18,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class InputDriver : public input::InputDriver
|
||||
@@ -17,7 +17,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
using namespace nlohmann;
|
||||
@@ -19,7 +19,7 @@ namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
namespace impl
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class InputPinController : public input::InputPinController, public PinController
|
||||
Reference in New Issue
Block a user