33 GSwitch(
const std::string &d) : description(d), status(false) {}
67 std::string description;
Represents a switch with a description and a status.
void turnOn()
Turns the switch on.
const std::string & getDescription() const
Retrieves the description of the switch.
void turnOff()
Turns the switch off.
GSwitch(const std::string &d)
Parameterized constructor.
bool getStatus() const
Retrieves the current status of the switch.
GSwitch()=default
Default constructor.