7 #ifndef __dg_command_direct_getter_h__ 8 #define __dg_command_direct_getter_h__ 18 #include <boost/assign/list_of.hpp> 20 #include "dynamic-graph/command.h" 26 template <
class E,
typename T>
34 :
Command(entity, std::vector<
Value::Type>(), docString), T_ptr(ptr) {}
43 template <
class E,
typename T>
45 const std::string &docString) {
49 inline std::string docDirectGetter(
const std::string &name,
50 const std::string &type) {
51 return std::string(
"\nGet the ") + name +
".\n\nNo input.\nReturn an " +
58 #endif // __dg_command_direct_getter_h__ DirectGetter(E &entity, T *ptr, const std::string &docString)
Constructor.
This class implements a variant design pattern to handle basic types in Command.
virtual Value doExecute()
Specific action performed by the command.
T(E::* GetterMethod)() const
Pointer to method that sets parameter of type T.