7 #ifndef __dg_command_direct_getter_h__ 8 #define __dg_command_direct_getter_h__ 18 #include "dynamic-graph/command.h" 19 #include <boost/assign/list_of.hpp> 32 :
Command(entity, std::vector<
Value::Type>(), docString), T_ptr(ptr) {}
41 template <
class E,
typename T>
43 const std::string &docString) {
47 inline std::string docDirectGetter(
const std::string &name,
48 const std::string &type) {
49 return std::string(
"\nGet the ") + name +
".\n\nNo input.\nReturn an " +
56 #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.