Loading...
Searching...
No Matches
SimpleBrightnessStrategy.h
Go to the documentation of this file.
#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H
#define INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H
#include "BrightnessStrategy.h"
#include "Light.h"
namespace hueplusplus
{
class SimpleBrightnessStrategy : public BrightnessStrategy
{
public:
bool setBrightness(unsigned int bri, uint8_t transition, Light& light) const override;
unsigned int getBrightness(Light& light) const override;
unsigned int getBrightness(const Light& light) const override;
};
} // namespace hueplusplus
#endif
BrightnessStrategy.h
Light.h
hueplusplus::BrightnessStrategy
Virtual base class for all BrightnessStrategies.
Definition BrightnessStrategy.h:34
hueplusplus::Light
Class for Hue Light fixtures.
Definition Light.h:61
hueplusplus::SimpleBrightnessStrategy
Class implementing the functions of BrightnessStrategy.
Definition SimpleBrightnessStrategy.h:33
hueplusplus::SimpleBrightnessStrategy::setBrightness
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
hueplusplus::SimpleBrightnessStrategy::getBrightness
unsigned int getBrightness(Light &light) const override
Function that returns the current brightness of the light.
Definition SimpleBrightnessStrategy.cpp:40
hueplusplus
Namespace for the hueplusplus library.
Definition Action.h:28