X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftracktype.h;h=310d17f4eca60fc748ef79e7d5a6964add537f69;hb=3e9c210ddc036cd015228504cc0803c909e27f84;hp=9822fb26c72b66af71b64c354677328ae293e173;hpb=52cbe8d99669f843f8f75c51128e2748584dd03a;p=r2c2.git diff --git a/source/libmarklin/tracktype.h b/source/libmarklin/tracktype.h index 9822fb2..310d17f 100644 --- a/source/libmarklin/tracktype.h +++ b/source/libmarklin/tracktype.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef LIBMARKLIN_TRACKTYPE_H_ #define LIBMARKLIN_TRACKTYPE_H_ @@ -37,6 +44,7 @@ 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; const std::vector &get_parts() const { return parts; } const std::vector &get_endpoints() const { return endpoints; }