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>
45 DirectSetter<E, T> *makeDirectSetter(E &entity, T *ptr,
46 const std::string &docString) {
47 return new DirectSetter<E, T>(entity, ptr, 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__