3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_SENSOR_H_
9 #define LIBMARKLIN_SENSOR_H_
13 #include <sigc++/signal.h>
14 #include <msp/time/timestamp.h>
26 Msp::Time::TimeStamp off_timeout;
29 sigc::signal<void, bool> signal_state_changed;
31 Sensor(Control &, unsigned);
33 unsigned get_address() const { return addr; }
34 bool get_state() const { return state; }
37 void sensor_event(unsigned, bool);
40 } // namespace Marklin