X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Froute.h;h=98b64f5c9ff11e9411bb987f8ad4d5877ab8bd3c;hb=651698847d5293cfb15b6fb23a394701388c0151;hp=bcb76e143635fa4b0180f24e698dfee292509bef;hpb=dcfa1e9503b7e97b61396d7458f0b2e5896779cd;p=r2c2.git diff --git a/source/libmarklin/route.h b/source/libmarklin/route.h index bcb76e1..98b64f5 100644 --- a/source/libmarklin/route.h +++ b/source/libmarklin/route.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2007-2009 Mikkosoft Productions, Mikko Rasa +Copyright © 2007-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -11,15 +11,15 @@ Distributed under the GPL #include #include #include +#include #include namespace Marklin { class Layout; class Track; -class Turnout; -class Route +class Route: public sigc::trackable { public: class Loader: public Msp::DataFile::BasicLoader @@ -31,12 +31,14 @@ public: }; private: + Layout &layout; std::string name; std::set tracks; std::map turnouts; public: Route(Layout &, const std::string &); + ~Route(); const std::string &get_name() const { return name; } int get_turnout(unsigned) const;