]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/train.h
Add a set_sensor function to the Driver interface
[r2c2.git] / source / libmarklin / train.h
index 60a0c0824ade3030e52497ee0ec6a19b4f79f679..b579d7f37deba40ba47d607baabf0e42817e7de7 100644 (file)
@@ -50,7 +50,8 @@ private:
                Block *block;
                unsigned entry;
 
-               BlockRef(Block *s, unsigned e): block(s), entry(e) { }
+               BlockRef(Block *, unsigned);
+               BlockRef next() const;
        };
 
        struct RealSpeed
@@ -75,6 +76,8 @@ private:
        Msp::Time::TimeStamp stop_timeout;
        unsigned functions;
        const Route *route;
+       const Route *next_route;
+       bool end_of_route;
        std::string status;
 
        Msp::Time::TimeStamp last_entry_time;
@@ -107,6 +110,7 @@ public:
        unsigned get_functions() const { return functions; }
 
        void set_route(const Route *);
+       void go_to(const Track &);
        const Route *get_route() const { return route; }
        void place(Block &, unsigned);
        bool is_placed() const { return !cur_blocks.empty(); }