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