3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef MARKLIN_TRACKPART_H_
9 #define MARKLIN_TRACKPART_H_
11 #include <msp/datafile/loader.h>
19 class Loader: public Msp::DataFile::BasicLoader<TrackPart>
24 virtual void finish();
25 void start(float, float, float);
40 float get_length() const;
41 bool is_curved() const { return radius; }
42 TrackPoint get_point(float) const;
43 unsigned get_path() const { return path; }
44 bool is_dead_end() const { return dead_end; }
45 void check_link(TrackPart &);
46 TrackPart *get_link(unsigned) const;
49 } // namespace Marklin