/* $Id$
This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
class Catalogue
{
public:
- class Loader: public Msp::DataFile::Loader
+ class Loader: public Msp::DataFile::BasicLoader<Catalogue>
{
public:
Loader(Catalogue &);
private:
- Catalogue &cat;
-
void locomotive(unsigned);
void track(unsigned);
};
const std::map<unsigned, TrackType *> &get_tracks() const { return tracks; }
LocoType &get_locomotive(unsigned) const;
const std::map<unsigned, LocoType *> &get_locomotives() const { return locos; }
- void load(const std::string &);
};
} // namespace Marklin