#include <Parameter.h>
Inheritance diagram for dtpf::OnOffParameter:
OnOffParameter
is a BooleanParameter
whose value is either 'on' or 'off'.
Public Member Functions | |
OnOffParameter () | |
Construct an OnOffParmeter with the name and default and initial values set to 'off'. | |
OnOffParameter (const muscle::String &name, const T &value, const T &default) | |
Construct an OnOffParmeter with the given name, and the given default and initial values. | |
virtual | ~OnOffParameter () |
Destroy an OnOffParameter . | |
void | SetOn () |
Set the parameter's value to 'on'. | |
bool | IsOn () const |
Find out if the parameter's value is 'on'. | |
void | SetOff () |
Set the parameter's value to 'off'. | |
bool | IsOff () const |
Find out if the parameter's value is 'off'. | |
virtual void | SetUIType (ParameterUIType uiType) |
Set the UI type to one comaptible with an on/off boolean parameter. | |
Static Public Attributes | |
const bool | ON = true |
Constant representing the 'on' value. | |
const bool | OFF = false |
Constant representing the 'off' value. |
|
Construct an
|
|
Construct an
|
|
Destroy an
|
|
Find out if the parameter's value is 'off'.
|
|
Find out if the parameter's value is 'on'.
|
|
Set the parameter's value to 'off'.
|
|
Set the parameter's value to 'on'.
|
|
Set the UI type to one comaptible with an on/off boolean parameter.
Implements dtpf::Parameter. |
|
Constant representing the 'off' value.
|
|
Constant representing the 'on' value.
|