working on big refactor
This commit is contained in:
@@ -1,45 +1,24 @@
|
||||
/*
|
||||
* DisplayController.h
|
||||
*
|
||||
* Created on: Aug 7, 2018
|
||||
* Created on: Aug 2, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef _SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
||||
#define _SRC_OUTPUT_DISPLAYCONTROLLER_H_
|
||||
|
||||
#include "IDisplayController.h"
|
||||
|
||||
#include <vector>
|
||||
#include <thread>
|
||||
|
||||
#include "items/IDisplay.h"
|
||||
#include "IOutputGPIOInterface.h"
|
||||
|
||||
#ifndef _SRC_OUTPUT_IDISPLAYCONTROLLER_H_
|
||||
#define _SRC_OUTPUT_IDISPLAYCONTROLLER_H_
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class DisplayController : public IDisplayController
|
||||
class DisplayController
|
||||
{
|
||||
|
||||
public:
|
||||
explicit DisplayController(std::vector<std::shared_ptr<items::IDisplay>> displays, std::shared_ptr<IOutputGPIOInterface> output_gpio_interface);
|
||||
~DisplayController() override;
|
||||
|
||||
private:
|
||||
void cycle_displays();
|
||||
|
||||
private:
|
||||
std::vector<std::shared_ptr<items::IDisplay>> displays;
|
||||
|
||||
std::thread display_cycle_thread;
|
||||
|
||||
std::shared_ptr<IOutputGPIOInterface> output_gpio_interface;
|
||||
|
||||
bool is_running;
|
||||
virtual ~DisplayController () = default;
|
||||
};
|
||||
|
||||
}
|
||||
} /* namespace output */
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user