]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/route.h
Add a timetable row type to wait for another train
[r2c2.git] / source / libmarklin / route.h
index 7c188b00e702bf37bf7786ccbdbd0af010799b20..3825c7eb286b233ef9bb29f291db2b3633460484 100644 (file)
@@ -53,6 +53,7 @@ public:
        const std::string &get_name() const { return name; }
        void set_temporary(bool);
        bool is_temporary() const { return temporary; }
+       void set_turnout(unsigned, unsigned);
        void update_turnouts();
        int get_turnout(unsigned) const;
        const std::map<unsigned, int> &get_turnouts() const { return turnouts; }
@@ -68,6 +69,7 @@ private:
 public:
        static Route *find(const Track &, unsigned, const Track &);
        static Route *find(const Track &, unsigned, const Route &);
+       static Route *find(const Track &, unsigned, const std::set<const Track *> &);
 };
 
 } // namespace Marklin