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);
50 class Loader: public Msp::DataFile::ObjectLoader<Bogie>
60 std::vector<Axle> axles;
73 std::vector<Axle> axles;
74 std::vector<Bogie> bogies;
78 VehicleType(unsigned);
79 virtual ~VehicleType() { } // XXX temporary
81 unsigned get_article_number() const { return art_nr; }
82 const std::string &get_name() const { return name; }
83 float get_length() const { return length; }
84 float get_width() const { return width; }
85 float get_height() const { return height; }
86 const std::vector<Axle> &get_axles() const { return axles; }
87 const std::vector<Bogie> &get_bogies() const { return bogies; }
88 const std::string &get_object() const { return object; }
91 } // namespace Marklin