#ifndef LIBR2C2_LAYOUT_H_
#define LIBR2C2_LAYOUT_H_
+#include <deque>
#include <set>
#include <sigc++/sigc++.h>
#include <msp/datafile/objectloader.h>
void del();
};
+ struct BlockReservation
+ {
+ Block █
+ Train *train;
+
+ BlockReservation(Block &, Train *);
+ };
+
public:
typedef std::vector<Zone *> ZoneArray;
std::map<unsigned, Train *> trains;
Msp::Time::TimeStamp last_tick;
unsigned next_turnout_addr;
+ bool emitting_block_reserved;
+ std::deque<BlockReservation> block_reserve_queue;
public:
Layout(Catalogue &, Driver * = 0);
void save_dynamic(const std::string &) const;
private:
void sensor_state_changed(Sensor &, Sensor::State);
+ void block_reserved(Block &, Train *);
};
} // namespace R2C2