3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_TRACKTYPE_H_
9 #define LIBMARKLIN_TRACKTYPE_H_
11 #include <msp/datafile/loader.h>
13 #include "trackpart.h"
20 class Loader: public Msp::DataFile::BasicLoader<TrackType>
25 virtual void finish();
27 void position(float, float, float);
32 std::string description;
33 std::vector<TrackPart> parts;
34 std::vector<Endpoint> endpoints;
39 unsigned get_article_number() const { return art_nr; }
40 const std::string &get_description() const { return description; }
41 float get_total_length() const;
42 float get_route_length(int) const;
43 unsigned get_n_routes() const;
44 const std::vector<TrackPart> &get_parts() const { return parts; }
45 const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
48 void collect_endpoints();
51 } // namespace Marklin