X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftracktype.h;h=582f77ae25b1a506bbd49b28c6fec8cfea3f57e7;hb=97443d96ff3ce51388d2edd1e0dca8f2cd231346;hp=45d8720bd4ae02da8d72f5fc299063017e8302ff;hpb=6dc18b0e518407bd2a86602bae1e9bbae05da7c8;p=r2c2.git diff --git a/source/libmarklin/tracktype.h b/source/libmarklin/tracktype.h index 45d8720..582f77a 100644 --- a/source/libmarklin/tracktype.h +++ b/source/libmarklin/tracktype.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -32,6 +32,7 @@ private: std::string description; std::vector parts; std::vector endpoints; + bool double_address; public: TrackType(unsigned); @@ -40,9 +41,13 @@ public: const std::string &get_description() const { return description; } float get_total_length() const; float get_path_length(int) const; + unsigned get_paths() const; unsigned get_n_paths() const; + bool is_turnout() const; + bool is_double_address() const { return double_address; } const std::vector &get_parts() const { return parts; } const std::vector &get_endpoints() const { return endpoints; } + TrackPoint get_point(unsigned, unsigned, float) const; private: void collect_endpoints();