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_path_changing;
26 sigc::signal<void, unsigned> signal_path_changed;
32 unsigned char pending_path;
33 unsigned char pending_cmds;
38 Turnout(Control &, unsigned, bool =false);
40 void set_path(unsigned char);
41 unsigned get_address() const { return addr; }
42 unsigned char get_path() const { return path; }
44 void command(unsigned char);
45 void command_reply(const Reply &, unsigned char);
46 void status_reply(const Reply &, unsigned char);
47 void turnout_event(unsigned, bool);
50 } // namespace Marklin