]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/route.h
Fix memory leaks and other bad stuff
[r2c2.git] / source / libmarklin / route.h
index 6e69bba955aa3c24b8705e7370b5d230d04bd186..bcb76e143635fa4b0180f24e698dfee292509bef 100644 (file)
@@ -15,6 +15,7 @@ Distributed under the GPL
 
 namespace Marklin {
 
+class Layout;
 class Track;
 class Turnout;
 
@@ -35,7 +36,7 @@ private:
        std::map<unsigned, int> turnouts;
 
 public:
-       Route(const std::string &);
+       Route(Layout &, const std::string &);
 
        const std::string &get_name() const { return name; }
        int get_turnout(unsigned) const;
@@ -47,6 +48,7 @@ public:
 private:
        void update_turnouts();
        unsigned check_validity(const Track &) const;
+       void track_removed(Track &);
 };
 
 } // namespace Marklin