Loading...
Searching...
No Matches
dynamicgraph::command::DirectGetter< E, T > Class Template Reference

#include <dynamic-graph/command-direct-getter.h>

Inheritance diagram for dynamicgraph::command::DirectGetter< E, T >:
[legend]
Collaboration diagram for dynamicgraph::command::DirectGetter< E, T >:
[legend]

Public Types

typedef T(E::* GetterMethod) () const
 Pointer to method that sets paramter of type T.

Public Member Functions

 DirectGetter (E &entity, T *ptr, const std::string &docString)
 Constructor.
Public Member Functions inherited from dynamicgraph::command::Command
virtual ~Command ()
 Command (Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring)
 Store the owner entity and a vector of value types.
const std::vector< Value::Type > & valueTypes () const
 Return the value type of all parameters.
void setParameterValues (const std::vector< Value > &values)
 Set parameter values.
const std::vector< Value > & getParameterValues () const
 Get parameter values.
Value execute ()
 Execute the command after checking parameters.
Entity & owner ()
 Get a reference to the Entity owning this command.
std::string getDocstring () const
 Get documentation string.

Protected Member Functions

virtual Value doExecute ()
 Specific action performed by the command.

Additional Inherited Members

Static Public Attributes inherited from dynamicgraph::command::Command
static const std::vector< Value::Type > EMPTY_ARG

Member Typedef Documentation

◆ GetterMethod

template<class E, typename T>
typedef T(E::* dynamicgraph::command::DirectGetter< E, T >::GetterMethod) () const

Pointer to method that sets paramter of type T.

Constructor & Destructor Documentation

◆ DirectGetter()

template<class E, typename T>
dynamicgraph::command::DirectGetter< E, T >::DirectGetter ( E & entity,
T * ptr,
const std::string & docString )
inline

Member Function Documentation

◆ doExecute()

template<class E, typename T>
virtual Value dynamicgraph::command::DirectGetter< E, T >::doExecute ( )
inlineprotectedvirtual

Specific action performed by the command.

Implements dynamicgraph::command::Command.