void del();
};
- struct BlockReservation
- {
- Block *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