]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/tracktype.h
Support more complex article numbers
[r2c2.git] / source / libmarklin / tracktype.h
index b44374018239060f0dd62be2dbbae4cefc7701c3..b1aff1e0920e3229113c517d5fb228c62a511501 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the GPL
 #define LIBMARKLIN_TRACKTYPE_H_
 
 #include <msp/datafile/loader.h>
+#include "articlenumber.h"
 #include "geometry.h"
 #include "trackpart.h"
 
@@ -37,7 +38,7 @@ public:
        };
 
 private:
-       unsigned art_nr;
+       ArticleNumber art_nr;
        std::string description;
        std::vector<TrackPart> parts;
        std::vector<Endpoint> endpoints;
@@ -45,9 +46,9 @@ private:
        unsigned autofit_preference;
 
 public:
-       TrackType(unsigned);
+       TrackType(const ArticleNumber &);
 
-       unsigned get_article_number() const { return art_nr; }
+       const ArticleNumber &get_article_number() const { return art_nr; }
        const std::string &get_description() const { return description; }
        float get_total_length() const;
        float get_path_length(int) const;