1 #ifndef LIBMARKLIN_TRAFFICMANAGER_H_
2 #define LIBMARKLIN_TRAFFICMANAGER_H_
16 sigc::signal<void, const Block &, const Train *> signal_block_reserved;
18 TrafficManager(Control &, Layout &);
21 Control &get_control() const { return control; }
22 Block &get_block_by_track(const Track &) const;
23 const TrainSeq &get_trains() const { return trains; }
24 void add_train(Train *);
29 std::list<Block *> blocks;
30 std::list<Train *> trains;
32 void turnout_route_changed(unsigned, Turnout *);
35 } // namespace Marklin