3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
14 LocoType::LocoType(unsigned an):
18 unsigned LocoType::get_max_function() const
22 return (--funcs.end())->first;
26 LocoType::Loader::Loader(LocoType <):
27 VehicleType::Loader(lt)
29 add("function", &Loader::function);
32 void LocoType::Loader::function(unsigned i, const string &f)
34 static_cast<LocoType &>(obj).funcs[i] = f;
37 } // namespace Marklin