-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#ifndef LIBR2C2_CATALOGUE_H_
#define LIBR2C2_CATALOGUE_H_
#include <map>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "articlenumber.h"
#include "layout.h"
#include "profile.h"
class Catalogue
{
public:
- class Loader: public Msp::DataFile::BasicLoader<Catalogue>
+ class Loader: public Msp::DataFile::ObjectLoader<Catalogue>
{
public:
Loader(Catalogue &);
Profile rail_profile;
Profile ballast_profile;
Profile path_profile;
+ std::string track_technique;
TrackMap tracks;
VehicleMap vehicles;
Layout layout;
const Profile &get_rail_profile() const { return rail_profile; }
const Profile &get_ballast_profile() const { return ballast_profile; }
const Profile &get_path_profile() const { return path_profile; }
+ const std::string &get_track_technique() const { return track_technique; }
void add_track(TrackType &);
const TrackType &get_track(const ArticleNumber &) const;