3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_VEHICLETYPE_H_
9 #define LIBMARKLIN_VEHICLETYPE_H_
11 #include <msp/datafile/objectloader.h>
18 class Loader: public Msp::DataFile::ObjectLoader<VehicleType>
21 Loader(VehicleType &);
32 class Loader: public Msp::DataFile::ObjectLoader<Axle>
38 void wheel_diameter(float);
48 class Loader: public Msp::DataFile::ObjectLoader<Bogie>
58 std::vector<Axle> axles;
67 std::vector<Axle> axles;
68 std::vector<Bogie> bogies;
71 VehicleType(unsigned);
73 unsigned get_article_number() const { return art_nr; }
74 const std::string &get_name() const { return name; }
75 float get_length() const { return length; }
76 float get_width() const { return width; }
77 float get_height() const { return height; }
78 const std::vector<Axle> &get_axles() const { return axles; }
79 const std::vector<Bogie> &get_bogies() const { return bogies; }
82 } // namespace Marklin