X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Farducontrol.h;h=3bb956badb4db577fbd4b60cffa9f2986f9c8046;hb=f2de56825be33196785c82a1418056f9e7a34461;hp=c3ca7a4106f570a418a6a7166a19a9048c1bcf67;hpb=5bc94d60a17039dfd5d46caaa292d3667fa87fb3;p=r2c2.git diff --git a/source/libr2c2/arducontrol.h b/source/libr2c2/arducontrol.h index c3ca7a4..3bb956b 100644 --- a/source/libr2c2/arducontrol.h +++ b/source/libr2c2/arducontrol.h @@ -219,6 +219,7 @@ private: public: void push(const T &); bool pop(T &); + bool empty() const; }; class Task @@ -371,6 +372,7 @@ private: Msp::FS::Path state_file; ControlledVariable power; + bool halted; LocomotiveMap locomotives; MfxInfoArray mfx_info; @@ -401,7 +403,7 @@ public: virtual void set_power(bool); virtual bool get_power() const { return power; } virtual void halt(bool); - virtual bool is_halted() const { return false; } + virtual bool is_halted() const { return halted; } virtual const char *enumerate_protocols(unsigned) const; private: