EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PeripheralOutput.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_PERIPHERALOUTPUT_HPP_
2 #define ORG_EEROS_HAL_PERIPHERALOUTPUT_HPP_
3 
4 #include <eeros/core/System.hpp>
5 #include <string>
6 
7 namespace eeros {
8  namespace hal {
9 
11  public:
13  virtual std::string getId() const = 0;
14  };
15 
16  template <typename T>
18  public:
19  explicit PeripheralOutput(std::string id) : id(id) { }
20  virtual ~PeripheralOutput() { }
21  virtual inline std::string getId() const { return id; }
22  virtual T get() = 0;
23  virtual void set(T value) = 0;
24  private:
25  std::string id;
26  };
27 
28  };
29 };
30 
31 #endif /* ORG_EEROS_HAL_PERIPHERALOUTPUT_HPP_ */
Definition: PeripheralOutput.hpp:17
Definition: PeripheralOutput.hpp:10
virtual std::string getId() const
Definition: PeripheralOutput.hpp:21
virtual ~PeripheralOutputInterface()
Definition: PeripheralOutput.hpp:12
virtual void set(T value)=0
virtual std::string getId() const =0
PeripheralOutput(std::string id)
Definition: PeripheralOutput.hpp:19
virtual ~PeripheralOutput()
Definition: PeripheralOutput.hpp:20