X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibmarklin%2Fvehicletype.h;h=7844825ea17111188e6c560475c9afffcf1d5e0c;hb=9b05c573a38639827697fe393d55b7c76f5bde45;hp=9ef1c5ec9d22798620674d486588789cecb24e07;hpb=97443d96ff3ce51388d2edd1e0dca8f2cd231346;p=r2c2.git diff --git a/source/libmarklin/vehicletype.h b/source/libmarklin/vehicletype.h index 9ef1c5e..7844825 100644 --- a/source/libmarklin/vehicletype.h +++ b/source/libmarklin/vehicletype.h @@ -9,6 +9,7 @@ Distributed under the GPL #define LIBMARKLIN_VEHICLETYPE_H_ #include +#include "articlenumber.h" namespace Marklin { @@ -67,7 +68,7 @@ public: }; private: - unsigned art_nr; + ArticleNumber art_nr; std::string name; bool locomotive; std::map functions; @@ -79,9 +80,9 @@ private: std::string object; public: - VehicleType(unsigned); + VehicleType(const ArticleNumber &); - unsigned get_article_number() const { return art_nr; } + const ArticleNumber &get_article_number() const { return art_nr; } const std::string &get_name() const { return name; } bool is_locomotive() const { return locomotive; } unsigned get_max_function() const;