working on big refactor

This commit is contained in:
Jonas Zeunert
2018-12-14 01:09:54 +01:00
parent f3100004b9
commit 2aee0f4f9d
67 changed files with 914 additions and 619 deletions

View File

@@ -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