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>
20 class Loader: public Msp::DataFile::BasicLoader<TrackPart>
25 virtual void finish();
26 void start(float, float, float);
41 float get_length() const;
42 bool is_curved() const { return radius; }
43 TrackPoint get_point(float) const;
44 unsigned get_path() const { return path; }
45 bool is_dead_end() const { return dead_end; }
46 void check_link(TrackPart &);
47 TrackPart *get_link(unsigned) const;
50 } // namespace Marklin