X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocotype.cpp;h=7a1becf35ac5152db6d926a1c73673ed271ea895;hb=90790c9a28793d31b9ea38eea2f55652a0e9297b;hp=6dcd6ae302920757072eee25c0fb5d00eb168ed6;hpb=38fb8d56efde037a71c46a58bda314655e68ab6c;p=r2c2.git diff --git a/source/libmarklin/locotype.cpp b/source/libmarklin/locotype.cpp index 6dcd6ae..7a1becf 100644 --- a/source/libmarklin/locotype.cpp +++ b/source/libmarklin/locotype.cpp @@ -15,6 +15,13 @@ LocoType::LocoType(unsigned an): 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(lt)