Loading...
Searching...
No Matches
SimpleColorTemperatureStrategy.h
Go to the documentation of this file.
#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_TEMPERATURE_STRATEGY_H
#define INCLUDE_HUEPLUSPLUS_SIMPLE_COLOR_TEMPERATURE_STRATEGY_H
#include "ColorTemperatureStrategy.h"
#include "Light.h"
namespace hueplusplus
{
class SimpleColorTemperatureStrategy : public ColorTemperatureStrategy
{
public:
bool setColorTemperature(unsigned int mired, uint8_t transition, Light& light) const override;
bool alertTemperature(unsigned int mired, Light& light) const override;
unsigned int getColorTemperature(Light& light) const override;
unsigned int getColorTemperature(const Light& light) const override;
};
} // namespace hueplusplus
#endif
ColorTemperatureStrategy.h
Light.h
hueplusplus::ColorTemperatureStrategy
Virtual base class for all ColorTemperatureStrategies.
Definition ColorTemperatureStrategy.h:34
hueplusplus::Light
Class for Hue Light fixtures.
Definition Light.h:61
hueplusplus::SimpleColorTemperatureStrategy
Class implementing the functions of ColorTemperatureStrategy.
Definition SimpleColorTemperatureStrategy.h:33
hueplusplus::SimpleColorTemperatureStrategy::setColorTemperature
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
hueplusplus::SimpleColorTemperatureStrategy::getColorTemperature
unsigned int getColorTemperature(Light &light) const override
Function that returns the current color temperature of the light.
Definition SimpleColorTemperatureStrategy.cpp:67
hueplusplus::SimpleColorTemperatureStrategy::alertTemperature
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
hueplusplus
Namespace for the hueplusplus library.
Definition Action.h:28