Detailed Description
Public Member Functions |
| BoolVariable (const string &name) |
| Create a new BoolVariable.
|
void | Set (bool value) |
| Set the value of the variable.
|
bool | Get () const |
| Get the value of this variable.
|
const string | Value () const |
| Get the value of this variable as a string.
|
| BaseVariable (const string &name) |
| Create a new BaseVariable.
|
virtual | ~BaseVariable () |
const string | Name () const |
| Return the name of this variable.
|
Constructor & Destructor Documentation
ola::BoolVariable::BoolVariable |
( |
const string & |
name | ) |
|
|
inlineexplicit |
Member Function Documentation
bool ola::BoolVariable::Get |
( |
| ) |
const |
|
inline |
Get the value of this variable.
- Returns
- the value of the boolean variable.
void ola::BoolVariable::Set |
( |
bool |
value | ) |
|
|
inline |
Set the value of the variable.
- Parameters
-
const string ola::BoolVariable::Value |
( |
| ) |
const |
|
inlinevirtual |
Get the value of this variable as a string.
- Returns
- the value of the boolean variable.
Booleans are represented by a 1 or 0.
Implements ola::BaseVariable.
The documentation for this class was generated from the following file: