3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_DUMMY_H_
9 #define LIBMARKLIN_DUMMY_H_
16 class Dummy: public Driver
20 std::map<unsigned, bool> turnouts;
25 virtual void set_power(bool);
26 virtual bool get_power() const { return power; }
28 virtual void add_loco(unsigned) { }
29 virtual void set_loco_speed(unsigned, unsigned) { }
30 virtual void set_loco_reverse(unsigned, bool) { }
31 virtual void set_loco_function(unsigned, unsigned, bool) { }
33 virtual void add_turnout(unsigned);
34 virtual void set_turnout(unsigned, bool);
35 virtual bool get_turnout(unsigned) const;
37 virtual void add_sensor(unsigned) { }
38 virtual bool get_sensor(unsigned) const { return false; }
40 virtual void tick() { }
41 virtual void flush() { }
44 } // namespace Marklin