]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/locomotive.h
Add networking library and a remote control program
[r2c2.git] / source / libmarklin / locomotive.h
index 4c1f056eefec7ab65bf0ab0906dd461f3eba2624..4a6770ec6c9feb701165828286d49bd52b9a1801 100644 (file)
@@ -46,6 +46,7 @@ public:
        unsigned get_speed() const { return speed; }
        bool get_reverse() const { return reverse; }
        bool get_function(unsigned f) const { return (funcs>>f)&1; }
+       unsigned get_functions() const { return funcs; }
        void refresh_status();
 private:
        void send_command(bool);