X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftracktype.h;h=14c98665bd11d0938c5a7c8b0c1404c0ad3fa20a;hb=90790c9a28793d31b9ea38eea2f55652a0e9297b;hp=65aa1f28d834942d9e8314c0e9a0dda554d6f7ed;hpb=449fb5de95ddb2ac9da4bd72a1c12150505d5549;p=r2c2.git diff --git a/source/libmarklin/tracktype.h b/source/libmarklin/tracktype.h index 65aa1f2..14c9866 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 */ @@ -39,10 +39,14 @@ public: unsigned get_article_number() const { return art_nr; } const std::string &get_description() const { return description; } float get_total_length() const; - float get_route_length(int) const; - unsigned get_n_routes() 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; 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();