art_nr(an)
{ }
+unsigned LocoType::get_max_function() const
+{
+ if(funcs.empty())
+ return 0;
+ return (--funcs.end())->first;
+}
+
LocoType::Loader::Loader(LocoType <):
Msp::DataFile::BasicLoader<LocoType>(lt)
void LocoType::Loader::function(unsigned i, const string &f)
{
- obj.funcs[i]=f;
+ obj.funcs[i] = f;
}
} // namespace Marklin