]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/tracktype.h
Get rid of some obsolete #includes
[r2c2.git] / source / libr2c2 / tracktype.h
index 2a116134d850b0353a0ba1f2586bea15caa52a2d..c1963c42d8444a0628219c4eadda4c1507ad6171 100644 (file)
@@ -2,7 +2,6 @@
 #define LIBR2C2_TRACKTYPE_H_
 
 #include <msp/datafile/objectloader.h>
-#include "articlenumber.h"
 #include "geometry.h"
 #include "objecttype.h"
 #include "trackpart.h"
@@ -28,15 +27,21 @@ public:
 
        class Loader: public Msp::DataFile::DerivedObjectLoader<TrackType, ObjectType::Loader>
        {
+       public:
+               typedef Msp::DataFile::Collection Collection;
+
        private:
+               Collection &coll;
                bool state_bits_set;
 
        public:
-               Loader(TrackType &);
+               Loader(TrackType &, Collection &);
+
+               virtual Collection &get_collection() const { return coll; }
        private:
                virtual void finish();
+               void appearance(const std::string &);
                void part();
-               void position(float, float, float);
                void state_bits(unsigned);
        };
 
@@ -49,7 +54,7 @@ private:
        std::string object;
 
 public:
-       TrackType(const ArticleNumber & = ArticleNumber(), const TrackAppearance * = 0);
+       TrackType();
 
        const TrackAppearance &get_appearance() const;
        float get_gauge() const;