EEROS
0.4.1.0
API for the EEROS Real-Time Robotics Framework
Main Page
Namespaces
Classes
Files
File List
File Members
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
8
class
PeripheralInputInterface
{
9
public
:
10
virtual
~PeripheralInputInterface
() { }
11
virtual
std::string
getId
()
const
= 0;
12
};
13
14
template
<
typename
T>
15
class
PeripheralInput
:
public
PeripheralInputInterface
{
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_ */
eeros::hal::PeripheralInput::~PeripheralInput
virtual ~PeripheralInput()
Definition:
PeripheralInput.hpp:18
eeros::hal::PeripheralInput
Definition:
PeripheralInput.hpp:15
eeros::hal::PeripheralInput::getId
virtual std::string getId() const
Definition:
PeripheralInput.hpp:19
eeros::hal::PeripheralInputInterface
Definition:
PeripheralInput.hpp:8
eeros::hal::PeripheralInputInterface::getId
virtual std::string getId() const =0
eeros::hal::PeripheralInput::PeripheralInput
PeripheralInput(std::string id)
Definition:
PeripheralInput.hpp:17
eeros::hal::PeripheralInputInterface::~PeripheralInputInterface
virtual ~PeripheralInputInterface()
Definition:
PeripheralInput.hpp:10
includes
eeros
hal
PeripheralInput.hpp
Generated on Wed Jul 8 2015 11:18:07 for EEROS by
1.8.6