hueplusplus  1.0.0
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 
29 namespace hueplusplus
30 {
33 {
34 public:
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
unsigned int getBrightness(Light &light) const override
Function that returns the current brightness of the light.
Definition: SimpleBrightnessStrategy.cpp:40
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
Namespace for the hueplusplus library.
Definition: Action.h:27
Virtual base class for all BrightnessStrategies.
Definition: BrightnessStrategy.h:33
Class implementing the functions of BrightnessStrategy.
Definition: SimpleBrightnessStrategy.h:32
Class for Hue Light fixtures.
Definition: Light.h:60