]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/layout.h
Ignore the click that causes manipulator to finish
[r2c2.git] / source / libmarklin / layout.h
index 0f88fab5c36ca690c04b07ff91940877fea96756..1ec1012c431d098c9ef1078fa621b2302f8bd53f 100644 (file)
@@ -15,6 +15,7 @@ Distributed under the GPL
 
 namespace Marklin {
 
+class ArticleNumber;
 class Block;
 class Catalogue;
 class Driver;
@@ -38,7 +39,9 @@ public:
                void route();
                void route(const std::string &);
                void track(unsigned);
+               void track(ArticleNumber);
                void train(unsigned, unsigned);
+               void train(ArticleNumber, unsigned);
        };
 
 public:
@@ -81,7 +84,6 @@ public:
 
        void add_block(Block &);
        Block &get_block(unsigned) const;
-       Block &get_block_by_track(Track &) const;
        const std::set<Block *> &get_blocks() const { return blocks; }
        void create_blocks();
        void create_blocks(Track &);