13#ifndef RTCTK_DATATASK_PARAMETER_HPP
14#define RTCTK_DATATASK_PARAMETER_HPP
29 :
rtctk::componentFramework::RtctkException(
"Parameter '" + par_name +
"' not set!") {
39 :
rtctk::componentFramework::RtctkException(
"Parameter '" + par_name +
"' not writeable!") {
55 :
m_name(name), m_value(), m_is_set(false), m_is_locked(false) {
59 :
m_name(name), m_value(value), m_is_set(true), m_is_locked(false) {
66 void Set(T
const& value) {
The RtctkException class is the base class for all Rtctk exceptions.
Definition: exceptions.hpp:237
Definition: parameter.hpp:26
ParameterNotSet(const std::string &par_name)
Definition: parameter.hpp:28
Definition: parameter.hpp:36
ParameterNotWriteable(const std::string &par_name)
Definition: parameter.hpp:38
Class for basic handling of parameters in read thread.
Definition: parameter.hpp:52
void Set(T const &value)
Set interface for setting values.
Definition: parameter.hpp:66
bool IsSet()
checks if the value in paramter has been set
Definition: parameter.hpp:103
Parameter(std::string const &name, T const &value)
Definition: parameter.hpp:58
T & Get()
get the value set in paramter
Definition: parameter.hpp:92
Parameter(std::string const &name)
Definition: parameter.hpp:54
void CheckSet()
Check if set if not set throw error.
Definition: parameter.hpp:110
void Lock()
lock parameter so cannot be changed while locked
Definition: parameter.hpp:77
void Unlock()
unlock interface
Definition: parameter.hpp:84
Provides macros and utilities for exception handling.
Definition: computationBase.hpp:33
Definition: commandReplier.cpp:22
std::string m_name
Definition: populateConfig.cpp:166