class Sensor
{
+private:
+ Control &control;
+ unsigned addr;
+ bool state;
+ Msp::Time::TimeStamp off_timeout;
+
public:
sigc::signal<void, bool> signal_state_changed;
Sensor(Control &, unsigned);
+
unsigned get_address() const { return addr; }
bool get_state() const { return state; }
void tick();
private:
- Control &control;
- unsigned addr;
- bool state;
- Msp::Time::TimeStamp off_timeout;
-
void sensor_event(unsigned, bool);
};