X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fcatalogue.h;h=92d1149f1f4162a0030857782af9b95f472cc310;hb=5929b101ee38b5668b328e7b1eac4bf49c912412;hp=5a9156097380cbebbc9bb4aa5113da65c0a96838;hpb=2220ba2f11705ea9a4e480603d43ab7ed4cf5a89;p=r2c2.git diff --git a/source/libr2c2/catalogue.h b/source/libr2c2/catalogue.h index 5a91560..92d1149 100644 --- a/source/libr2c2/catalogue.h +++ b/source/libr2c2/catalogue.h @@ -5,7 +5,7 @@ #include #include "articlenumber.h" #include "layout.h" -#include "profile.h" +#include "trackappearance.h" namespace R2C2 { @@ -19,14 +19,12 @@ 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); }; @@ -36,10 +34,7 @@ public: private: float scale; - float gauge; - Profile rail_profile; - Profile ballast_profile; - std::string track_technique; + TrackAppearance appearance; ObjectMap objects; Layout layout; @@ -48,11 +43,6 @@ public: ~Catalogue(); 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;