3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_TURNOUT_H_
9 #define LIBMARKLIN_TURNOUT_H_
14 #include <sigc++/sigc++.h>
15 #include "constants.h"
25 sigc::signal<void, unsigned> signal_route_changing;
26 sigc::signal<void, unsigned> signal_route_changed;
35 Turnout(Control &, unsigned, bool =false);
37 void set_route(unsigned);
38 unsigned get_address() const { return addr; }
39 unsigned get_route() const { return route; }
42 void status_reply(const Reply &, bool);
43 bool switch_timeout();
44 void turnout_event(unsigned, bool);
47 } // namespace Marklin