7 #ifndef __dg_command_direct_setter_h__ 8 #define __dg_command_direct_setter_h__ 18 #include <boost/assign/list_of.hpp> 26 template <
class E,
typename T>
37 T val = values[0].value();
46 template <
class E,
typename T>
48 const std::string &docString) {
53 const std::string &type) {
54 return std::string(
"\nSet the ") + name +
".\n\nInput:\n - a " + type +
55 ".\nVoid return.\n\n";
61 #endif // __dg_command_direct_setter_h__
DirectSetter(E &entity, T *ptr, const std::string &docString)
This class implements a variant design pattern to handle basic types in Command.
virtual Value doExecute()
Specific action performed by the command.
const std::vector< Value > & getParameterValues() const
Get parameter values.
std::string docDirectSetter(const std::string &name, const std::string &type)
DirectSetter< E, T > * makeDirectSetter(E &entity, T *ptr, const std::string &docString)