////////////////////////////////////////////////////////////////////////////
// This is a base class for lightswitches.
// It provides the callback service to registered clients.
class LightSwitch : public DioObserver,
public Subject
protected:
LightSwitch (void);
void notifyClients (bool state); // True means switch pushed "ON".
};
Previous slide | Next slide | Back to first slide | View graphic version |