Public Types | |
typedef void(E::* | SetterMethod) (const double &) |
Pointer to method that sets paramter of type double. | |
Public Member Functions | |
Setter (E &entity, SetterMethod setterMethod, const std::string &docString) | |
Constructor. | |
![]() | |
virtual | ~Command () |
Command (Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring) | |
Store the owner entity and a vector of value types. | |
const std::vector< Value::Type > & | valueTypes () const |
Return the value type of all parameters. | |
void | setParameterValues (const std::vector< Value > &values) |
Set parameter values. | |
const std::vector< Value > & | getParameterValues () const |
Get parameter values. | |
Value | execute () |
Execute the command after checking parameters. | |
Entity & | owner () |
Get a reference to the Entity owning this command. | |
std::string | getDocstring () const |
Get documentation string. | |
Protected Member Functions | |
virtual Value | doExecute () |
Specific action performed by the command. | |
Additional Inherited Members | |
![]() | |
static const std::vector< Value::Type > | EMPTY_ARG |
Pointer to method that sets paramter of type double.
dynamicgraph::command::Setter< E, double >::Setter | ( | E & | entity, |
SetterMethod | setterMethod, | ||
const std::string & | docString ) |
Constructor.
Specific action performed by the command.
Implements dynamicgraph::command::Command.
References dynamicgraph::command::Command::getParameterValues(), and dynamicgraph::command::Command::owner().