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
26 std::map<unsigned, bool> turnouts;
27 std::map<unsigned, LocoState> locos;
28 std::map<unsigned, bool> sensors;
33 virtual void set_power(bool);
34 virtual bool get_power() const { return power; }
36 virtual void add_loco(unsigned) { }
37 virtual void set_loco_speed(unsigned, unsigned);
38 virtual void set_loco_reverse(unsigned, bool);
39 virtual void set_loco_function(unsigned, unsigned, bool);
41 virtual void add_turnout(unsigned);
42 virtual void set_turnout(unsigned, bool);
43 virtual bool get_turnout(unsigned) const;
45 virtual void add_sensor(unsigned) { }
46 virtual void set_sensor(unsigned, bool);
47 virtual bool get_sensor(unsigned) const;
49 virtual void tick() { }
50 virtual void flush() { }
53 } // namespace Marklin