]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/sensor.h
Add Id tags and copyright notices to files
[r2c2.git] / source / libmarklin / sensor.h
index d3db6367a2b7b40ed9d0a232906c2f23561b4513..930b15fff890be651f82cbe1a0453cfb19f7be1a 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef LIBMARKLIN_SENSOR_H_
 #define LIBMARKLIN_SENSOR_H_
 
@@ -12,19 +19,21 @@ class Control;
 
 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);
 };