1 #ifndef LIBMARKLIN_TRACKTYPE_H_
2 #define LIBMARKLIN_TRACKTYPE_H_
4 #include <msp/datafile/loader.h>
13 class Loader: public Msp::DataFile::Loader
20 TrackType &get_object() { return ttype; }
22 virtual void finish();
25 void position(float, float, float);
30 std::string description;
31 std::vector<TrackPart> parts;
32 std::vector<Endpoint> endpoints;
37 unsigned get_article_number() const { return art_nr; }
38 const std::string &get_description() const { return description; }
39 float get_total_length() const;
40 unsigned get_n_routes() const;
41 const std::vector<TrackPart> &get_parts() const { return parts; }
42 const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
45 void collect_endpoints();
48 } // namespace Marklin