]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/svgexporter.h
Add an SVG exporter to Designer
[r2c2.git] / source / designer / svgexporter.h
diff --git a/source/designer/svgexporter.h b/source/designer/svgexporter.h
new file mode 100644 (file)
index 0000000..6e93ca4
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef SVGEXPORTER_H_
+#define SVGEXPORTER_H_
+
+#include <libxml++/libxml++.h>
+#include "libmarklin/layout.h"
+
+class SvgExporter
+{
+private:
+       const Marklin::Layout &layout;
+       float gauge;
+       float rail_width;
+
+public:
+       SvgExporter(const Marklin::Layout &);
+
+       void save(const std::string &);
+private:
+       void save_track(const Marklin::Track &, xmlpp::Element &);
+};
+
+#endif