My Project
|
class CFSwitches More...
#include <cf_switches.h>
Public Member Functions | |
CFSwitches () | |
CFSwitches::CFSwitches () More... | |
~CFSwitches () | |
void | On (int s) |
switch 's' on More... | |
void | Off (int s) |
switch 's' off More... | |
bool | isOn (int s) const |
check if 's' is on More... | |
bool | isOff (int s) const |
check if 's' is off More... | |
Private Attributes | |
bool | switches [CFSwitchesMax] |
class CFSwitches
class CFSwitches - manages boolean switches.
An object of class ‘CFSwitches’ is simply an array of booleans with some comfortable access methods (‘On()’, ‘isOn()’, etc.). Each object may contain ‘CFSwitchesMax’ switches. When a new object of type ‘CFSwitches’ is created, all its switches are turned off.
Note: No range checking is done when accessing switches.
switches: the switches
Definition at line 39 of file cf_switches.h.
CFSwitches::CFSwitches | ( | ) |
CFSwitches::CFSwitches() - default constructor.
Turns all switches off.
Definition at line 31 of file cf_switches.cc.
|
inline |
Definition at line 47 of file cf_switches.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 42 of file cf_switches.h.