7 #include <leddevice/LedDevice.h> 36 virtual bool init(
const QJsonObject &deviceConfig);
46 virtual int write(
const std::vector<ColorRgb> & ledValues);
Implementation of the LedDevice that write the led-colors to an ASCII-textfile('/home/pi/LedDevice.out')
Definition: LedDeviceFile.h:13
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
std::ofstream _ofs
The outputstream.
Definition: LedDeviceFile.h:49
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceFile.cpp:18
virtual ~LedDeviceFile()
Destructor of this test-device.
Definition: LedDeviceFile.cpp:9
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceFile.cpp:13
virtual int write(const std::vector< ColorRgb > &ledValues)
Writes the given led-color values to the output stream.
Definition: LedDeviceFile.cpp:34
LedDeviceFile(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceFile.cpp:3