mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
4a19095234
Added json-config for boot-sequence.
30 lines
730 B
C++
30 lines
730 B
C++
#pragma once
|
|
|
|
// Jsoncpp includes
|
|
#include <json/json.h>
|
|
|
|
// Bootsequence includes
|
|
#include <bootsequence/BootSequence.h>
|
|
|
|
// Hyperion includes
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
///
|
|
/// Factory for settings based construction of a boot-sequence
|
|
///
|
|
class BootSequenceFactory
|
|
{
|
|
public:
|
|
|
|
///
|
|
/// Creates a BootSequence using the given configuration (and Hyperion connection). Ownship of
|
|
/// the returned instance is transferred
|
|
///
|
|
/// @param[in] hyperion The Hyperion controlling the leds
|
|
/// @param[in] jsonConfig The boot-sequence configuration
|
|
///
|
|
/// @return The bootsequence (ownership is transferred to the caller
|
|
///
|
|
static BootSequence * createBootSequence(Hyperion * hyperion, const Json::Value & jsonConfig);
|
|
};
|