hueplusplus 1.2.0
Loading...
Searching...
No Matches
SimpleBrightnessStrategy.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H
24#define INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H
25
26#include "BrightnessStrategy.h"
27#include "Light.h"
28
29namespace hueplusplus
30{
33{
34public:
42 bool setBrightness(unsigned int bri, uint8_t transition, Light& light) const override;
48 unsigned int getBrightness(Light& light) const override;
54 unsigned int getBrightness(const Light& light) const override;
55};
56} // namespace hueplusplus
57
58#endif
Virtual base class for all BrightnessStrategies.
Definition BrightnessStrategy.h:34
Class for Hue Light fixtures.
Definition Light.h:61
Class implementing the functions of BrightnessStrategy.
Definition SimpleBrightnessStrategy.h:33
bool setBrightness(unsigned int bri, uint8_t transition, Light &light) const override
Function for changing a lights brightness with a specified transition.
Definition SimpleBrightnessStrategy.cpp:34
unsigned int getBrightness(Light &light) const override
Function that returns the current brightness of the light.
Definition SimpleBrightnessStrategy.cpp:40
Namespace for the hueplusplus library.
Definition Action.h:28