hueplusplus  1.0.0
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 
29 namespace hueplusplus
30 {
33 {
34 public:
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:33
Namespace for the hueplusplus library.
Definition: Action.h:27
unsigned int getColorTemperature(Light &light) const override
Function that returns the current color temperature of the light.
Definition: SimpleColorTemperatureStrategy.cpp:67
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
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
Class for Hue Light fixtures.
Definition: Light.h:60
Class implementing the functions of ColorTemperatureStrategy.
Definition: SimpleColorTemperatureStrategy.h:32