1 #ifndef LIBR2C2_SENSOR_H_
2 #define LIBR2C2_SENSOR_H_
4 #include <sigc++/signal.h>
5 #include <msp/time/timedelta.h>
12 class Sensor: public sigc::trackable
23 sigc::signal<void, State> signal_state_changed;
30 Msp::Time::TimeDelta state_confirm_timeout;
36 unsigned get_address() const { return address; }
37 State get_state() const { return state; }
38 virtual Block *get_block() const { return 0; }
40 void tick(const Msp::Time::TimeDelta &);
43 void event(unsigned, bool);