]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/control.h
Forgot to add the new files
[r2c2.git] / source / libmarklin / control.h
index 61469a8ea8c289f75316943e1404fa690a2c0d65..a041e957caaf1b009ee216b43ef34e1794cf52e7 100644 (file)
@@ -53,12 +53,14 @@ public:
        Command &command(Cmd, unsigned char);
        Command &command(Cmd, const unsigned char *, unsigned);
        unsigned get_queue_length() const { return queue.size(); }
+       void flush();
 
        void add_turnout(Turnout &);
        Turnout &get_turnout(unsigned) const;
        const std::map<unsigned, Turnout *> &get_turnouts() const { return turnouts; }
        void add_locomotive(Locomotive &);
        Locomotive &get_locomotive(unsigned) const;
+       const std::map<unsigned, Locomotive *> &get_locomotives() const { return locomotives; }
        void add_sensor(Sensor &);
        Sensor &get_sensor(unsigned) const;
        const std::map<unsigned, Sensor *> &get_sensors() const { return sensors; }