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_TRAFFICMANAGER_H_
9 #define LIBMARKLIN_TRAFFICMANAGER_H_
25 std::list<Block *> blocks;
26 std::list<Train *> trains;
27 Msp::Time::TimeStamp last_tick;
30 sigc::signal<void, const Block &, const Train *> signal_block_reserved;
32 TrafficManager(Control &, Layout &);
35 Control &get_control() const { return control; }
36 const std::list<Block *> &get_blocks() const { return blocks; }
37 Block &get_block_by_track(const Track &) const;
38 const std::list<Train *> &get_trains() const { return trains; }
39 void add_train(Train *);
42 void turnout_route_changed(unsigned, Turnout *);
45 } // namespace Marklin