1 #ifndef LIBMARKLIN_SENSOR_H_
2 #define LIBMARKLIN_SENSOR_H_
6 #include <sigc++/signal.h>
7 #include <msp/time/timestamp.h>
19 Msp::Time::TimeStamp off_timeout;
22 sigc::signal<void, bool> signal_state_changed;
24 Sensor(Control &, unsigned);
26 unsigned get_address() const { return addr; }
27 bool get_state() const { return state; }
30 void sensor_event(unsigned, bool);
33 } // namespace Marklin