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 LIBMARKLIN_CATALOGUE_H_
9 #define LIBMARKLIN_CATALOGUE_H_
12 #include <msp/datafile/loader.h>
24 class Loader: public Msp::DataFile::BasicLoader<Catalogue>
29 void ballast_profile();
32 void locomotive(unsigned);
34 void scale(float, float);
42 Profile ballast_profile;
43 std::map<unsigned, TrackType *> tracks;
44 std::map<unsigned, LocoType *> locos;
51 float get_scale() const { return scale; }
52 float get_gauge() const { return gauge; }
53 const Profile &get_rail_profile() const { return rail_profile; }
54 const Profile &get_ballast_profile() const { return ballast_profile; }
55 TrackType &get_track(unsigned) const;
56 const std::map<unsigned, TrackType *> &get_tracks() const { return tracks; }
57 LocoType &get_locomotive(unsigned) const;
58 const std::map<unsigned, LocoType *> &get_locomotives() const { return locos; }
59 Layout &get_layout() { return layout; }
62 } // namespace Marklin