Class Paramita::Plugin¶
Provides capabilities to tweak parameters from the inheriting class.
This abstract class defines a common interface to get and set parameters from/to the inheriting classes, as well as a way to peek which parameters it has.
#include <Plugin.hpp>
Public Static Attributes¶
| Type | Name |
|---|---|
| constexpr const char *const | m_interface_id = "Paramita::Plugin" |
Public Functions¶
| Type | Name |
|---|---|
| Plugin () = default |
|
| Plugin (const Plugin &) = delete Deleted constructor (pure interface). |
|
| Plugin (Plugin &&) = delete Deleted constructor (pure interface). |
|
| virtual ParameterType | get (const std::string & name) Get the parameter's value. |
| virtual ParameterSpace | get_parameter_space () Get the parameter space for this class. |
| Plugin & | operator= (const Plugin & container) = delete Deleted constructor (pure interface). |
| Plugin & | operator= (Plugin &&) = delete Deleted constructor (pure interface). |
| virtual | set (const std::string & name, const ParameterType & value) Set a parameter. |
| virtual | ~Plugin () = default |
Public Static Attributes Documentation¶
variable m_interface_id¶
Public Functions Documentation¶
function Plugin [1/3]¶
function Plugin [2/3]¶
Deleted constructor (pure interface).
function Plugin [3/3]¶
Deleted constructor (pure interface).
function get¶
Get the parameter's value.
Parameters:
nameThe name of the parameter.
Returns:
The value of the parameter.
function get_parameter_space¶
Get the parameter space for this class.
Returns:
The parameter space.
function operator=¶
Deleted constructor (pure interface).
function operator=¶
Deleted constructor (pure interface).
function set¶
Set a parameter.
Parameters:
nameThe name of the parameter.valueThe value to set the parameter to.
Exception:
std::invalid_argumentIf the parameter does not exist in the space.std::invalid_argumentIf the parameter value is not valid for this name.