hueplusplus  1.0.0
BrightnessStrategy.h
Go to the documentation of this file.
1 
23 #ifndef INCLUDE_HUEPLUSPLUS_BRIGHTNESS_STRATEGY_H
24 #define INCLUDE_HUEPLUSPLUS_BRIGHTNESS_STRATEGY_H
25 
26 #include <cstdint>
27 
28 namespace hueplusplus
29 {
30 class Light;
31 
34 {
35 public:
43  virtual bool setBrightness(unsigned int bri, uint8_t transition, Light& light) const = 0;
49  virtual unsigned int getBrightness(Light& light) const = 0;
55  virtual unsigned int getBrightness(const Light& light) const = 0;
57  virtual ~BrightnessStrategy() = default;
58 };
59 } // namespace hueplusplus
60 
61 #endif
Namespace for the hueplusplus library.
Definition: Action.h:27
virtual bool setBrightness(unsigned int bri, uint8_t transition, Light &light) const =0
Virtual function for changing a lights brightness with a specified transition.
Virtual base class for all BrightnessStrategies.
Definition: BrightnessStrategy.h:33
Class for Hue Light fixtures.
Definition: Light.h:60
virtual unsigned int getBrightness(Light &light) const =0
Virtual function that returns the current brightnessof the light.
virtual ~BrightnessStrategy()=default
Virtual dtor.