7 #ifndef DYNAMIC_GRAPH_COMMAND_GETTER_T_CPP 8 #define DYNAMIC_GRAPH_COMMAND_GETTER_T_CPP 18 template <
class E,
typename T>
20 const std::string &docstring)
22 getterMethod_(getterMethod) {}
24 template <
class E,
typename T>
26 E &entity =
static_cast<E &
>(
owner());
33 #endif // DYNAMIC_GRAPH_COMMAND_GETTER_T_CPP This class implements a variant design pattern to handle basic types in Command.
Getter(E &entity, GetterMethod getterMethod, const std::string &docString)
Constructor.
Entity & owner()
Get a reference to the Entity owning this command.
virtual Value doExecute()
Specific action performed by the command.
GetterMethod getterMethod_