holoscan::ArgumentSetter
holoscan::ArgumentSetter
Class to set arguments for components.
This class is used to set arguments for components (including Operator, Condition, and Resource) from Arg or ArgList.
Constructors
ArgumentSetter
Methods
get_argument_setter
Get the argument setter function object.
Returns: The reference to the SetterFunc object.
Parameters
index
The type index of the parameter.
add_argument_setter
Add the SetterFunc for the type (with func)
Add the SetterFunc for the type (with func and index)
Add the SetterFunc for the type
inline
Add the SetterFunc for the type.
Template parameters
typeT
TypeT The type of the parameter.
Parameters
func
The SetterFunc object.
Static methods
get_instance
Get the instance object.
Returns: The reference to the ArgumentSetter instance.
set_param
Set the param object.
Throws: std::runtime_error if the parameter could not be set.
Parameters
param_wrap
The ParameterWrapper object.
arg
The Arg object to set.
ensure_type
Register the SetterFunc for the type.
Template parameters
typeT
The type of the parameter.