hueplusplus 1.2.0
Loading...
Searching...
No Matches
SimpleColorTemperatureStrategy.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_TEMPERATURE_STRATEGY_H
24#define INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_TEMPERATURE_STRATEGY_H
25
27#include "Light.h"
28
29namespace hueplusplus
30{
33{
34public:
43 bool setColorTemperature(unsigned int mired, uint8_t transition, Light& light) const override;
51 bool alertTemperature(unsigned int mired, Light& light) const override;
58 unsigned int getColorTemperature(Light& light) const override;
65 unsigned int getColorTemperature(const Light& light) const override;
66};
67} // namespace hueplusplus
68
69#endif
Virtual base class for all ColorTemperatureStrategies.
Definition ColorTemperatureStrategy.h:34
Class for Hue Light fixtures.
Definition Light.h:61
Class implementing the functions of ColorTemperatureStrategy.
Definition SimpleColorTemperatureStrategy.h:33
bool setColorTemperature(unsigned int mired, uint8_t transition, Light &light) const override
Function for changing a lights color temperature in mired with a specified transition.
Definition SimpleColorTemperatureStrategy.cpp:35
unsigned int getColorTemperature(Light &light) const override
Function that returns the current color temperature of the light.
Definition SimpleColorTemperatureStrategy.cpp:67
bool alertTemperature(unsigned int mired, Light &light) const override
Function that lets the light perform one breath cycle in the specified color.
Definition SimpleColorTemperatureStrategy.cpp:40
Namespace for the hueplusplus library.
Definition Action.h:28