#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["label"]))[e]; m[edgeid] = mapstorage->arrow_pos[e]; } x("arrow_pos", m); std::map nm; for(int i=0;iactive_nodemaps[i]; } x("active_nodemaps", nm); std::map em; for(int i=0;iactive_edgemaps[i]; } x("active_edgemaps", em); } GuiWriter::GuiWriter(LemonWriter& writer, MapStorage* ms) : Parent(writer), mapstorage(ms) { }