22 #include <boost/thread.hpp> 131 virtual std::string
const &
name()
const = 0;
139 virtual void strset(std::string
const & valstring) = 0;
142 virtual std::string
const strget()
const = 0;
165 virtual void callbackInitCall() = 0;
182 template <
typename T>
194 virtual std::string
const &
name()
const override;
197 virtual std::string
descriptor()
const override;
205 void set(T
const & newVal);
209 virtual void strset(std::string
const & valstring)
override;
212 virtual std::string
const strget()
const override;
236 void setCallback(std::function<
void(T
const &)> cb);
240 virtual Component const * owner()
const = 0;
243 void callbackInitCall()
override;
245 std::function<void(T const &)> itsCallback;
369 template <
class Param,
class ... Tail>
372 static_assert(std::is_base_of<jevois::ParameterBase, Param>::value,
373 "jevois::Parameter<...> template arguments must all be parameters " 374 "(derive from jevois::ParameterBase");
std::string name
Plain name of the parameter.
std::string validvalues
Description of the parameter's valid values specification, as a string.
std::string description
Description of the parameter.
A changeable parameter for a Component, core class.
std::string descriptor
Descriptor. This is the name of the parameter, qualified by a chain of component names.
Generic variadic template class template definition for Component Parameters.
ParameterSummary provides a summary about a parameter.
std::string value
Current value of the parameter, as a string.
std::string defaultvalue
Default value of the parameter, as a string.
bool itsVirgin
Param has not yet been explicitly set, need to call the callback (if any) at init time...
A component of a model hierarchy.
std::string valuetype
Parameter value type, as a string.
bool frozen
Flag that indicates whether parameter is frozen.
Base class for Parameter.
std::string category
Category of the parameter, as a string.
boost::shared_mutex itsMutex
Mutex to protect the parameter value.
A simple registry of all parameters associated with a Component.
std::string categorydescription
Category description.
volatile bool itsFrozen
When true, parameter is frozen (read-only, does not show up in help message)