goptions
|
Represents a switch with a description and a status. More...
#include <gswitch.h>
Public Member Functions | |
GSwitch ()=default | |
Default constructor. More... | |
GSwitch (const std::string &d) | |
Parameterized constructor. More... | |
void | turnOn () |
Turns the switch on. More... | |
void | turnOff () |
Turns the switch off. More... | |
bool | getStatus () const |
Retrieves the current status of the switch. More... | |
const std::string & | getDescription () const |
Retrieves the description of the switch. More... | |
The GSwitch
class encapsulates a switch's description and its status, allowing the switch to be turned on or off, and providing methods to query its current state.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |