hyperion.ng
Static Public Member Functions | List of all members
LedDeviceFactory Class Reference

The LedDeviceFactory is responsible for constructing 'LedDevices'. More...

#include <LedDeviceFactory.h>

Static Public Member Functions

static LedDeviceconstruct (const QJsonObject &deviceConfig)
 Constructs a LedDevice based on the given configuration. More...
 

Detailed Description

The LedDeviceFactory is responsible for constructing 'LedDevices'.

Member Function Documentation

§ construct()

LedDevice * LedDeviceFactory::construct ( const QJsonObject &  deviceConfig)
static

Constructs a LedDevice based on the given configuration.

Parameters
deviceConfigThe configuration of the led-device
Returns
The constructed LedDevice or nullptr if configuration is invalid. The ownership of the constructed LedDevice is tranferred to the caller

The documentation for this class was generated from the following files: