7 #ifndef __dg_command_direct_setter_h__ 8 #define __dg_command_direct_setter_h__ 18 #include "dynamic-graph/command.h" 19 #include <boost/assign/list_of.hpp> 27 DirectSetter(E &entity, T *ptr,
const std::string &docString)
35 T val = values[0].value();
44 template <
class E,
typename T>
46 const std::string &docString) {
50 inline std::string docDirectSetter(
const std::string &name,
51 const std::string &type) {
52 return std::string(
"\nSet the ") + name +
".\n\nInput:\n - a " + type +
53 ".\nVoid return.\n\n";
59 #endif // __dg_command_direct_setter_h__ Command(Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring)
virtual Value doExecute()
Specific action performed by the command.
This class implements a variant design pattern to handle basic types in Command.
const std::vector< Value > & getParameterValues() const
Get parameter values.