]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/catalogue.h
Move track appearance properties into a separate class
[r2c2.git] / source / libr2c2 / catalogue.h
index 5a9156097380cbebbc9bb4aa5113da65c0a96838..21ebd38a90a6382c931f08809ac46e25051b7036 100644 (file)
@@ -5,7 +5,7 @@
 #include <msp/datafile/objectloader.h>
 #include "articlenumber.h"
 #include "layout.h"
-#include "profile.h"
+#include "trackappearance.h"
 
 namespace R2C2 {
 
@@ -19,14 +19,13 @@ public:
        public:
                Loader(Catalogue &);
        private:
-               void ballast_profile();
                void gauge(float);
                void layout();
-               void rail_profile();
                void scale(float, float);
                void signal(ArticleNumber);
                void terrain(ArticleNumber);
                void track(ArticleNumber);
+               void track_appearance();
                void vehicle(ArticleNumber);
        };
 
@@ -37,9 +36,7 @@ public:
 private:
        float scale;
        float gauge;
-       Profile rail_profile;
-       Profile ballast_profile;
-       std::string track_technique;
+       TrackAppearance appearance;
        ObjectMap objects;
        Layout layout;
 
@@ -49,10 +46,6 @@ public:
 
        float get_scale() const { return scale; }
        float get_gauge() const { return gauge; }
-       float get_rail_elevation() const;
-       const Profile &get_rail_profile() const { return rail_profile; }
-       const Profile &get_ballast_profile() const { return ballast_profile; }
-       const std::string &get_track_technique() const { return track_technique; }
 
        void add(ObjectType &);
        const ObjectType &get(const ArticleNumber &) const;