|
RTC Toolkit
0.1.0-alpha
|
#include <parameter.hpp>
Public Member Functions | |
| Parameter (std::string const &name) | |
| Parameter (std::string const &name, T const &value) | |
| void | Set (T const &value) |
| void | Lock () |
| void | Unlock () |
| T & | Get () |
| bool | IsSet () |
| void | CheckSet () |
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