]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/control.h
Allow intercepting and denying turnout route and locomotive speed changes
[r2c2.git] / source / libmarklin / control.h
index 0ec3d5ba53022a6f3d2bde7614547d1c24703ee0..1d19263fb93da651807d5b0abaaa3d0978166eb5 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-200 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -47,6 +47,7 @@ public:
        void       set_power(bool);
        bool       get_power() const { return power; }
        void       set_debug(bool);
+       const std::map<unsigned, Turnout *> &get_turnouts() const { return turnouts; }
        const std::map<unsigned, Sensor *> &get_sensors() const { return sensors; }
        unsigned   get_queue_length() const { return queue.size(); }
        void       open(const std::string &);