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