X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftracktype.h;h=c1963c42d8444a0628219c4eadda4c1507ad6171;hb=d06a1e1ab34e5ecb4bb7011d44298a0b5e6162be;hp=2a116134d850b0353a0ba1f2586bea15caa52a2d;hpb=81ee4fbd16b472892b67b35ea85956423a2247ed;p=r2c2.git diff --git a/source/libr2c2/tracktype.h b/source/libr2c2/tracktype.h index 2a11613..c1963c4 100644 --- a/source/libr2c2/tracktype.h +++ b/source/libr2c2/tracktype.h @@ -2,7 +2,6 @@ #define LIBR2C2_TRACKTYPE_H_ #include -#include "articlenumber.h" #include "geometry.h" #include "objecttype.h" #include "trackpart.h" @@ -28,15 +27,21 @@ public: class Loader: public Msp::DataFile::DerivedObjectLoader { + 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;