1 #ifndef LIBMARKLIN_CATALOGUE_H_
2 #define LIBMARKLIN_CATALOGUE_H_
5 #include <msp/datafile/loader.h>
15 class Loader: public Msp::DataFile::Loader
22 void locomotive(unsigned);
27 std::map<unsigned, TrackType *> tracks;
28 std::map<unsigned, LocoType *> locos;
33 TrackType &get_track(unsigned) const;
34 const std::map<unsigned, TrackType *> &get_tracks() const { return tracks; }
35 LocoType &get_locomotive(unsigned) const;
36 const std::map<unsigned, LocoType *> &get_locomotives() const { return locos; }
37 void load(const std::string &);
40 } // namespace Marklin