]> git.tdb.fi Git - r2c2.git/blob - source/designer/svgexporter.h
e498d3ddd38048b845e436eeaf74225bfea70faf
[r2c2.git] / source / designer / svgexporter.h
1 #ifndef SVGEXPORTER_H_
2 #define SVGEXPORTER_H_
3
4 #include <libxml++/libxml++.h>
5 #include "libr2c2/layout.h"
6
7 class SvgExporter
8 {
9 private:
10         const R2C2::Layout &layout;
11         float gauge;
12         float rail_width;
13
14 public:
15         SvgExporter(const R2C2::Layout &);
16
17         void save(const std::string &);
18 private:
19         void save_track(const R2C2::Track &, xmlpp::Element &);
20 };
21
22 #endif