]> git.tdb.fi Git - r2c2.git/blob - source/designer/svgexporter.h
38d77a9a4f162ef4aa519de019824c5be5a01362
[r2c2.git] / source / designer / svgexporter.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef SVGEXPORTER_H_
9 #define SVGEXPORTER_H_
10
11 #include <libxml++/libxml++.h>
12 #include "libr2c2/layout.h"
13
14 class SvgExporter
15 {
16 private:
17         const R2C2::Layout &layout;
18         float gauge;
19         float rail_width;
20
21 public:
22         SvgExporter(const R2C2::Layout &);
23
24         void save(const std::string &);
25 private:
26         void save_track(const R2C2::Track &, xmlpp::Element &);
27 };
28
29 #endif