BoolCallbackParameter class. A boolean parameter class that wraps a getter and a setter methods.
More...
#include <BoolCallbackParameter.hpp>
|
typedef bool(T::* | BoolGetter) () const |
|
typedef void(T::* | BoolSetter) (bool) |
|
enum class | Type { Float
, Bool
, Int
, UInt
} |
|
|
| BoolCallbackParameter (const std::string name, T *instance, BoolGetter getter, BoolSetter setter) |
| BoolCallbackParameter constructor.
|
|
bool | getValue () const override |
| Gets the current value of the parameter.
|
|
void | setValue (const bool newValue) override |
| Sets a new value for the parameter.
|
|
| BoolParameter (const std::string name) |
| BoolParameter constructor.
|
|
virtual | ~BoolParameter ()=default |
| BoolParameter destructor.
|
|
| Parameter (const Type type, const std::string name) |
|
virtual | ~Parameter ()=default |
| Parameter destructor.
|
|
const std::string & | getName () const |
| Gets the name of the parameter.
|
|
Type | getType () const |
| Gets the type of the parameter.
|
|
|
Type | type |
|
std::string | name |
|
template<typename T>
class switchboard::BoolCallbackParameter< T >
BoolCallbackParameter class. A boolean parameter class that wraps a getter and a setter methods.
◆ BoolCallbackParameter()
BoolCallbackParameter constructor.
- Parameters
-
name | The name of the parameter. |
instance | Pointer to the instance that the getter and setter methods belong to. |
getter | The getter method for the parameter. |
setter | The setter method for the parameter. |
◆ getValue()
◆ setValue()