3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
18 void Dummy::set_power(bool p)
21 signal_power.emit(power);
24 void Dummy::add_turnout(unsigned addr)
29 void Dummy::set_turnout(unsigned addr, bool state)
31 turnouts[addr] = state;
32 signal_turnout.emit(addr, state);
35 bool Dummy::get_turnout(unsigned addr) const
37 map<unsigned, bool>::const_iterator i = turnouts.find(addr);
43 } // namespace Marklin