]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/route.h
Add Id tags and copyright notices to files
[r2c2.git] / source / libmarklin / route.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef LIBMARKLIN_ROUTE_H_
9 #define LIBMARKLIN_ROUTE_H_
10
11 #include <list>
12 #include <map>
13 #include <set>
14 #include <string>
15
16 namespace Marklin {
17
18 class Track;
19 class Turnout;
20
21 class Route
22 {
23 public:
24         Route();
25         const std::map<unsigned, Turnout *> &get_turnouts() const { return turnouts; }
26         void add_track(Track *);
27         ~Route();
28 private:
29         std::string name;
30         std::set<Track *> tracks;
31         std::map<unsigned, Turnout *> turnouts;
32 };
33
34 } // namespace Marklin
35
36 #endif