50 GSwitch(
const std::string& d) : description(d), status(false) {
93 std::string description;
Represents a boolean command-line 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.