3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2009 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>
22 class Loader: public Msp::DataFile::BasicLoader<Catalogue>
27 void locomotive(unsigned);
32 std::map<unsigned, TrackType *> tracks;
33 std::map<unsigned, LocoType *> locos;
38 TrackType &get_track(unsigned) const;
39 const std::map<unsigned, TrackType *> &get_tracks() const { return tracks; }
40 LocoType &get_locomotive(unsigned) const;
41 const std::map<unsigned, LocoType *> &get_locomotives() const { return locos; }
44 } // namespace Marklin