diff -r 075aaa0a4e6f -r 27a9a75b957b gui/gui_writer.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gui/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) +{ +}