1 #ifndef ORG_EEROS_CONTROL_SIGNAL_HPP_
2 #define ORG_EEROS_CONTROL_SIGNAL_HPP_
13 template <
typename T =
double >
54 template <
typename VT >
91 std::list<SignalInterface*>::iterator
i = signalList.begin();
92 while(i != signalList.end()) {
93 if((*i)->getId() ==
id) {
108 template <
typename S>
typename std::enable_if<std::is_arithmetic<S>::value>
::type _clear() {
112 template <
typename S>
typename std::enable_if<!std::is_arithmetic<S>::value>
::type _clear() {
116 static std::list<SignalInterface*> signalList;
117 static uint16_t signalCounter;
118 static Signal<T> illegalSignal;
121 template <
typename T>
122 std::list<SignalInterface*> Signal<T>::signalList;
124 template <
typename T>
127 template <
typename T>
128 Signal<T> Signal<T>::illegalSignal;
virtual void clear()
Definition: Signal.hpp:67
sigid_t id
Definition: Signal.hpp:104
void setValue(VT newValue)
Definition: Signal.hpp:55
virtual T getValue() const
Definition: Signal.hpp:46
virtual sigid_t getId() const
Definition: Signal.hpp:21
virtual std::string getName() const
Definition: Signal.hpp:25
virtual void setValue(T newValue)
Definition: Signal.hpp:50
T value
Definition: Signal.hpp:102
Signal< T > & operator=(Signal< T > right)
Definition: Signal.hpp:71
virtual void setTimestamp(timestamp_t newTimestamp)
Definition: Signal.hpp:63
type
Definition: Sequencer.hpp:15
std::string name
Definition: Signal.hpp:105
static Signal< T > & getIllegalSignal()
Definition: Signal.hpp:82
timestamp_t timestamp
Definition: Signal.hpp:103
virtual timestamp_t getTimestamp() const
Definition: Signal.hpp:59
static SignalInterface * getSignalById(sigid_t id)
Definition: Signal.hpp:90
Definition: Signal.hpp:14
virtual std::string getLabel() const
Definition: Signal.hpp:33
Definition: SignalInterface.hpp:12
Signal()
Definition: Signal.hpp:16
int i
Definition: RingBufferTest.cpp:12
virtual void setName(std::string n)
Definition: Signal.hpp:29
uint32_t sigid_t
Definition: types.hpp:9
static std::list< SignalInterface * > getSignalList()
Definition: Signal.hpp:86
uint64_t timestamp_t
Definition: types.hpp:12
Definition: SignalInterface.hpp:14