rotate(0),
pitch(0)
{
- catalogue.load("tracks.dat");
+ DataFile::load(catalogue, "tracks.dat");
cat_layout=new Layout(catalogue);
cat_layout_3d=new Layout3D(*cat_layout);
layout_3d.set_quality(quality);
- catalogue.load("tracks.dat");
- catalogue.load("locos.dat");
+ DataFile::load(catalogue, "tracks.dat");
+ DataFile::load(catalogue, "locos.dat");
const vector<string> &args=getopt.get_args();
if(args.empty())
return *i->second;
}
-void Catalogue::load(const string &fn)
-{
- IO::File in(fn.c_str());
-
- DataFile::Parser parser(in, fn);
- Loader loader(*this);
- loader.load(parser);
-}
-
Catalogue::Loader::Loader(Catalogue &c):
DataFile::BasicLoader<Catalogue>(c)
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