]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/trackappearance.h
8a18cd4e74850c18e73a834f3305b4b631441943
[r2c2.git] / source / libr2c2 / trackappearance.h
1 #ifndef LIBR2C2_TRACKAPPEARANCE_H_
2 #define LIBR2C2_TRACKAPPEARANCE_H_
3
4 #include <string>
5 #include <msp/datafile/objectloader.h>
6 #include "profile.h"
7
8 namespace R2C2 {
9
10 class TrackAppearance
11 {
12 public:
13         class Loader: public Msp::DataFile::ObjectLoader<TrackAppearance>
14         {
15         public:
16                 Loader(TrackAppearance &);
17
18         private:
19                 void ballast_profile();
20                 void rail_profile();
21         };
22
23 private:
24         Profile rail_profile;
25         Profile ballast_profile;
26         std::string technique;
27
28 public:
29         float get_rail_elevation() const;
30         const Profile &get_rail_profile() const { return rail_profile; }
31         const Profile &get_ballast_profile() const { return ballast_profile; }
32         const std::string &get_technique() const { return technique; }
33 };
34
35 } // namespace R2C2
36
37 #endif