class is derived from
DeviceController and models an light controller that turns the light on and off
and adjusts it brightness.
Defined in: devices.hpp and
unsigned short brightness
Relative brightness of the
unsigned short wattage
The wattage of the light.
Constructs a LightController object.
(const LightController & that)
Constructs a DeviceController object that is a copy of the specified
Destructor of class LightController.
Overrides DeviceController's createCopy function.
(const LightController &that)
virtual ostream &
operator<< (ostream & stream)
Writes the LightController's data to the specified output stream.
virtual istream &
operator>> (istream & stream)
Read the LightController's data to the specified input stream.
(unsigned long command)
Overrides DeviceController's processCommand function.
Turn on the light.
Turn off the light.