X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fblock.h;h=770a3520289227830b37d40df45ce1d12ca83cc8;hb=e6b7f8c4dd12199c3c5c0bec555fa73c87079729;hp=bdbcc3f3eb0ed2687a6d09e6e5d743782cef5ce9;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/libmarklin/block.h b/source/libmarklin/block.h index bdbcc3f..770a352 100644 --- a/source/libmarklin/block.h +++ b/source/libmarklin/block.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -22,9 +22,9 @@ class Block public: struct Endpoint { - Track *track; + Track *track; unsigned track_ep; - Block *link; + Block *link; unsigned routes; Endpoint(Track *, unsigned); @@ -32,16 +32,18 @@ public: private: TrafficManager &trfc_mgr; - unsigned id; - unsigned sensor_id; - std::set tracks; + unsigned id; + unsigned sensor_id; + unsigned turnout_id; + std::set tracks; std::vector endpoints; - const Train *train; + const Train *train; public: Block(TrafficManager &, Track &); unsigned get_sensor_id() const { return sensor_id; } + unsigned get_turnout_id() const { return turnout_id; } const std::set &get_tracks() const { return tracks; } const std::vector &get_endpoints() const { return endpoints; } int get_endpoint_by_link(const Block &) const;