X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fsvgexporter.h;fp=source%2Fdesigner%2Fsvgexporter.h;h=6e93ca4de5f881a639b8a716a420e027a2adfd45;hb=6ba6af3637c299ab00828c49de9151429488cc17;hp=0000000000000000000000000000000000000000;hpb=30df355287abd0bfe1189e616056335505287e9a;p=r2c2.git diff --git a/source/designer/svgexporter.h b/source/designer/svgexporter.h new file mode 100644 index 0000000..6e93ca4 --- /dev/null +++ b/source/designer/svgexporter.h @@ -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 +#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