]> 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 6b36f46ec3ed5a68fbad407aef800f2d76f64eb1..3825c7eb286b233ef9bb29f291db2b3633460484 100644 (file)
@@ -36,6 +36,8 @@ public:
                void turnout(unsigned, unsigned);
        };
 
+       sigc::signal<void, const std::string &> signal_name_changed;
+
 private:
        Layout &layout;
        std::string name;
@@ -44,12 +46,14 @@ private:
        TurnoutMap turnouts;
 
 public:
-       Route(Layout &, const std::string &);
+       Route(Layout &);
        ~Route();
 
+       void set_name(const std::string &);
        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; }
@@ -65,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