#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) { }