RTC Toolkit
2.0.0
|
Class for basic handling of Paramters in read thread Gives a simple interface for locking parameters from being modified when locked. More...
#include <parameter.hpp>
Public Member Functions | |
Parameter (std::string const &name) | |
Parameter (std::string const &name, T const &value) | |
void | Set (T const &value) |
Set interface for setting values. More... | |
void | Lock () |
lock parameter so cannot be changed while locked More... | |
void | Unlock () |
unlock interface More... | |
T & | Get () |
get the value set in paramter More... | |
bool | IsSet () |
checks if the value in paramter has been set More... | |
void | CheckSet () |
Check if set if not set throw error. More... | |
Class for basic handling of Paramters in read thread Gives a simple interface for locking parameters from being modified when locked.
T | parameter type i.e int, float etc. |
|
inline |
|
inline |
|
inline |
Check if set if not set throw error.
|
inline |
get the value set in paramter
|
inline |
checks if the value in paramter has been set
|
inline |
lock parameter so cannot be changed while locked
|
inline |
Set interface for setting values.
value | value to set for parameter |
|
inline |
unlock interface