X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocotype.h;h=8234c4f45d1e85a661462c9bf46b9319a9d01d21;hb=d88bc162df8b34f2ca966524222880033132da0f;hp=7509eca1c991078d98235ef2bd842cefda8a3374;hpb=3df8cb5c78fbb0b919bcb79677c6c788b8028482;p=r2c2.git diff --git a/source/libmarklin/locotype.h b/source/libmarklin/locotype.h index 7509eca..8234c4f 100644 --- a/source/libmarklin/locotype.h +++ b/source/libmarklin/locotype.h @@ -8,14 +8,14 @@ Distributed under the GPL #ifndef LIBMARKLIN_LOCOTYPE_H_ #define LIBMARKLIN_LOCOTYPE_H_ -#include +#include "vehicletype.h" namespace Marklin { -class LocoType +class LocoType: public VehicleType { public: - class Loader: public Msp::DataFile::BasicLoader + class Loader: public VehicleType::Loader { public: Loader(LocoType &); @@ -30,8 +30,7 @@ private: public: LocoType(unsigned); - unsigned get_article_number() const { return art_nr; } - const std::string &get_name() const { return name; } + unsigned get_max_function() const; const std::map &get_functions() const { return funcs; } };