command-setter.h
Go to the documentation of this file.
1 //
2 // Copyright 2010 CNRS
3 //
4 // Author: Florent Lamiraux
5 //
6 
7 #ifndef DYNAMIC_GRAPH_COMMAND_SETTER_H
8 #define DYNAMIC_GRAPH_COMMAND_SETTER_H
9 
10 #include "dynamic-graph/command.h"
11 
12 namespace dynamicgraph {
13 namespace command {
14 
44 template <class E, typename T>
45 class Setter : public Command {
46  public:
48  typedef void (E::*SetterMethod)(const T &);
50  Setter(E &entity, SetterMethod setterMethod, const std::string &docString);
51 
52  protected:
53  virtual Value doExecute();
54 
55  private:
57 };
58 } // namespace command
59 } // namespace dynamicgraph
60 
62 #endif // DYNAMIC_GRAPH_COMMAND_SETTER_H
command-setter.t.cpp
dynamicgraph
dynamicgraph::command::Setter::setterMethod_
SetterMethod setterMethod_
Definition: command-setter.h:56
dynamicgraph::command::Setter::SetterMethod
void(E::* SetterMethod)(const T &)
Pointer to method that sets parameter of type T.
Definition: command-setter.h:48
dynamicgraph::command::Setter::doExecute
virtual Value doExecute()
Specific action performed by the command.
command.h
dynamicgraph::command::Setter::Setter
Setter(E &entity, SetterMethod setterMethod, const std::string &docString)
Constructor.
dynamicgraph::command::Command
Definition: command.h:35
dynamicgraph::command::Setter
Definition: command-setter.h:45
dynamicgraph::command::Value
This class implements a variant design pattern to handle basic types in Command.
Definition: value.h:51


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:38