Go to the documentation of this file.
20 const std::string &docstring)
21 : owner_(entity), valueTypeVector_(valueTypes), docstring_(docstring) {}
28 const std::vector<Value::Type> ¶mTypes =
valueTypes();
30 if (values.size() != paramTypes.size()) {
32 "wrong number of parameters");
35 for (
unsigned int iParam = 0; iParam < values.size(); iParam++) {
36 if (values[iParam].type() != paramTypes[iParam]) {
38 ss <<
"argument " << iParam
virtual Value doExecute()=0
Specific action performed by the command.
Command(Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring)
This class represents an entity, i.e. a generic computational unit that provides input and output sig...
const std::vector< Value > & getParameterValues() const
Get parameter values.
static const std::vector< Value::Type > EMPTY_ARG
void setParameterValues(const std::vector< Value > &values)
Set parameter values.
std::vector< Value::Type > valueTypeVector_
std::string getDocstring() const
Get documentation string.
const std::vector< Value::Type > & valueTypes() const
Return the value type of all parameters.
Abstract root class for all dynamic-graph exceptions.
std::vector< Value > valueVector_
Value execute()
Execute the command after checking parameters.
static std::string typeName(Type type)
Return the name of the type.
This class implements a variant design pattern to handle basic types in Command.
Entity & owner()
Get a reference to the Entity owning this command.
dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:38