EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
Output.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_CONTROL_OUTPUT_HPP_
2 #define ORG_EEROS_CONTROL_OUTPUT_HPP_
3 
6 
7 namespace eeros {
8  namespace control {
9 
10  template < typename T = double >
11  class Output {
12  public:
13  Output() : owner(nullptr) { }
14  Output(Block* owner) : owner(owner) { }
15 
16  virtual Signal<T>& getSignal() {
17  return signal;
18  }
19 
20  virtual void setOwner(Block* block) {
21  owner = block;
22  }
23 
24  private:
25  Signal<T> signal;
26  Block* owner;
27  };
28  };
29 };
30 
31 #endif /* ORG_EEROS_CONTROL_OUTPUT_HPP_ */
virtual Signal< T > & getSignal()
Definition: Output.hpp:16
virtual void setOwner(Block *block)
Definition: Output.hpp:20
Output()
Definition: Output.hpp:13
Definition: Config.hpp:14
Definition: Block.hpp:10
Definition: Output.hpp:11
Output(Block *owner)
Definition: Output.hpp:14
Definition: Signal.hpp:17