X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fcatalogue.h;h=d529cfc07969e18f8c17983359aadc5cd543e45b;hb=77f8c0e033b9b5e7085de5d22a62128a996a5b2a;hp=641b6f8b13c3ea15275a987cdd76a8eff71035f5;hpb=48dff17ed3144d944965e7cb534e1f8fb92bd620;p=r2c2.git diff --git a/source/libmarklin/catalogue.h b/source/libmarklin/catalogue.h index 641b6f8..d529cfc 100644 --- a/source/libmarklin/catalogue.h +++ b/source/libmarklin/catalogue.h @@ -15,8 +15,8 @@ Distributed under the GPL namespace Marklin { -class LocoType; class TrackType; +class VehicleType; class Catalogue { @@ -29,22 +29,23 @@ public: void ballast_profile(); void gauge(float); void layout(); - void locomotive(unsigned); void rail_profile(); void scale(float, float); void track(unsigned); + void vehicle(unsigned); }; sigc::signal signal_track_added; - sigc::signal signal_loco_added; + sigc::signal signal_vehicle_added; private: float scale; float gauge; Profile rail_profile; Profile ballast_profile; + Profile path_profile; std::map tracks; - std::map locos; + std::map vehicles; Layout layout; public: @@ -55,14 +56,15 @@ public: float get_gauge() const { return gauge; } 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; } void add_track(TrackType &); const TrackType &get_track(unsigned) const; const std::map &get_tracks() const { return tracks; } - void add_locomotive(LocoType &); - const LocoType &get_locomotive(unsigned) const; - const std::map &get_locomotives() const { return locos; } + void add_vehicle(VehicleType &); + const VehicleType &get_vehicle(unsigned) const; + const std::map &get_vehicles() const { return vehicles; } Layout &get_layout() { return layout; } };