Catalogue::Loader::Loader(Catalogue &c):
- DataFile::BasicLoader<Catalogue>(c)
+ DataFile::ObjectLoader<Catalogue>(c)
{
add("ballast_profile", &Loader::ballast_profile);
add("gauge", &Loader::gauge);
#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 &);
Layout::Loader::Loader(Layout &l):
- DataFile::BasicLoader<Layout>(l),
+ DataFile::ObjectLoader<Layout>(l),
new_tracks(false)
{
add("base", &Layout::base);
#include <set>
#include <sigc++/sigc++.h>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include <msp/time/timestamp.h>
#include "block.h"
class Layout
{
public:
- class Loader: public Msp::DataFile::BasicLoader<Layout>
+ class Loader: public Msp::DataFile::ObjectLoader<Layout>
{
private:
bool new_tracks;
Route::Loader::Loader(Route &r):
- DataFile::BasicLoader<Route>(r)
+ DataFile::ObjectLoader<Route>(r)
{
add("name", &Route::name);
add("turnout", &Loader::turnout);
#include <set>
#include <string>
#include <sigc++/trackable.h>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
namespace R2C2 {
public:
typedef std::map<unsigned, int> TurnoutMap;
- class Loader: public Msp::DataFile::BasicLoader<Route>
+ class Loader: public Msp::DataFile::ObjectLoader<Route>
{
private:
TurnoutMap turnouts;
Track::Loader::Loader(Track &t):
- DataFile::BasicLoader<Track>(t)
+ DataFile::ObjectLoader<Track>(t)
{
add("position", &Loader::position);
add("rotation", &Track::rot);
#include <list>
#include <set>
#include <sigc++/trackable.h>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "geometry.h"
namespace R2C2 {
class Track: public sigc::trackable
{
public:
- class Loader: public Msp::DataFile::BasicLoader<Track>
+ class Loader: public Msp::DataFile::ObjectLoader<Track>
{
public:
Loader(Track &);
TrackPart::Loader::Loader(TrackPart &p):
- Msp::DataFile::BasicLoader<TrackPart>(p)
+ Msp::DataFile::ObjectLoader<TrackPart>(p)
{
add("start", &Loader::start);
add("length", &TrackPart::length);
#ifndef LIBR2C2_TRACKPART_H_
#define LIBR2C2_TRACKPART_H_
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "geometry.h"
namespace R2C2 {
class TrackPart
{
public:
- class Loader: public Msp::DataFile::BasicLoader<TrackPart>
+ class Loader: public Msp::DataFile::ObjectLoader<TrackPart>
{
public:
Loader(TrackPart &);
TrackType::Loader::Loader(TrackType &t):
- Msp::DataFile::BasicLoader<TrackType>(t),
+ Msp::DataFile::ObjectLoader<TrackType>(t),
state_bits_set(false)
{
add("autofit_preference", &TrackType::autofit_preference);
#ifndef LIBR2C2_TRACKTYPE_H_
#define LIBR2C2_TRACKTYPE_H_
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "articlenumber.h"
#include "geometry.h"
#include "trackpart.h"
Endpoint(float, float, float, unsigned);
};
- class Loader: public Msp::DataFile::BasicLoader<TrackType>
+ class Loader: public Msp::DataFile::ObjectLoader<TrackType>
{
private:
bool state_bits_set;
Train::Loader::Loader(Train &t):
- DataFile::BasicLoader<Train>(t),
+ DataFile::ObjectLoader<Train>(t),
prev_block(0),
blocks_valid(true)
{
#include <sigc++/signal.h>
#include <sigc++/trackable.h>
+#include <msp/datafile/objectloader.h>
#include <msp/time/timestamp.h>
#include "block.h"
#include "blockiter.h"
class Train: public sigc::trackable
{
public:
- class Loader: public Msp::DataFile::BasicLoader<Train>
+ class Loader: public Msp::DataFile::ObjectLoader<Train>
{
private:
Block *prev_block;