arbeit arbeit
This commit is contained in:
@@ -5,14 +5,19 @@
|
|||||||
#ifndef flippR_driver_DRIVERFACTORY_H
|
#ifndef flippR_driver_DRIVERFACTORY_H
|
||||||
#define flippR_driver_DRIVERFACTORY_H
|
#define flippR_driver_DRIVERFACTORY_H
|
||||||
|
|
||||||
#include <fstream>
|
#include <istream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "input/IInputDriver.h"
|
#include "input/IInputDriver.h"
|
||||||
|
#include "output/IOutputDriver.h"
|
||||||
|
|
||||||
namespace flippR_driver
|
namespace flippR_driver
|
||||||
{
|
{
|
||||||
std::shared_ptr<input::IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream);
|
std::shared_ptr<input::IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream);
|
||||||
|
std::shared_ptr<output::IOutputDriver> get_OutputDriver(std::istream &output_pin_config,
|
||||||
|
std::istream &lamp_config,
|
||||||
|
std::istream &solenoid_config,
|
||||||
|
std::istream &sound_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //flippR_driver_DRIVERFACTORY_H
|
#endif //flippR_driver_DRIVERFACTORY_H
|
||||||
|
|||||||
@@ -5,11 +5,20 @@
|
|||||||
#include "DriverFactory.h"
|
#include "DriverFactory.h"
|
||||||
|
|
||||||
#include "input/InputDriverFactory.h"
|
#include "input/InputDriverFactory.h"
|
||||||
|
#include "output/OutputDriverFactory.h"
|
||||||
|
|
||||||
namespace flippR_driver
|
namespace flippR_driver
|
||||||
{
|
{
|
||||||
std::shared_ptr<input::IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream)
|
std::shared_ptr<input::IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream)
|
||||||
{
|
{
|
||||||
return flippR_driver::input::InputDriverFactory::get_InputDriver(input_config_stream, matrix_config_stream);
|
return input::InputDriverFactory::get_InputDriver(input_config_stream, matrix_config_stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::shared_ptr<output::IOutputDriver> get_OutputDriver(std::istream &output_pin_config,
|
||||||
|
std::istream &lamp_config,
|
||||||
|
std::istream &solenoid_config,
|
||||||
|
std::istream &sound_config)
|
||||||
|
{
|
||||||
|
return output::OutputDriverFactory::get_OutputDriver(output_pin_config, lamp_config, solenoid_config, sound_config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,18 +5,18 @@
|
|||||||
#ifndef flippR_driver_OUTPUTDRIVERFACTORY_H
|
#ifndef flippR_driver_OUTPUTDRIVERFACTORY_H
|
||||||
#define flippR_driver_OUTPUTDRIVERFACTORY_H
|
#define flippR_driver_OUTPUTDRIVERFACTORY_H
|
||||||
|
|
||||||
#include <memory>
|
#include <output/IOutputDriver.h>
|
||||||
|
|
||||||
#include "OutputDriver.h"
|
|
||||||
#include "OutputGPIOInterface.h"
|
#include "OutputGPIOInterface.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace flippR_driver
|
namespace flippR_driver
|
||||||
{
|
{
|
||||||
namespace output
|
namespace output
|
||||||
{
|
{
|
||||||
namespace OutputDriverFactory
|
namespace OutputDriverFactory
|
||||||
{
|
{
|
||||||
static std::shared_ptr<OutputDriver> getOutputDriver(std::istream &output_gpio_config, std::istream &output_config);
|
static std::shared_ptr<IOutputDriver> get_OutputDriver(std::istream &output_pin_config, std::istream &solenoid_config, std::istream &lamp_config, std::istream &sound_config);
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user