diff -r 23f0afd1a323 -r f60f89147531 gui_writer.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gui_writer.cc Sat Dec 17 20:55:41 2005 +0000 @@ -0,0 +1,26 @@ +#include "gui_writer.h" +#include "xml.h" +#include "mapstorage.h" +#include +#include + +std::string GuiWriter::header() +{ + return "@gui"; +} + +void GuiWriter::write(std::ostream& os) +{ + XmlIo x(os); + std::map > m; + for (EdgeIt e(mapstorage->graph); e != INVALID; ++e) + { + int edgeid = (int)(*(mapstorage->edgemap_storage["id"]))[e]; + m[edgeid] = mapstorage->arrow_pos[e]; + } + x("arrow_pos", m); +} + +GuiWriter::GuiWriter(LemonWriter& writer, MapStorage* ms) : Parent(writer), mapstorage(ms) +{ +}