1 2 3 #include "tse3/file/Write.h" 4 5 #include "tse3/file/XML.h" 6 #include "tse3/Track.h" 7 write(XmlFileWriter & writer,TSE3::Track & t)8void TSE3::File::write(XmlFileWriter &writer, TSE3::Track &t) 9 { 10 TSE3::File::XmlFileWriter::AutoElement ae(writer, "Track"); 11 12 writer.element("Title", t.title()); 13 write(writer, *t.filter()); 14 write(writer, *t.params()); 15 write(writer, *t.displayParams()); 16 writer.element("NoParts", t.size()); 17 18 for (size_t n = 0; n < t.size(); ++n) 19 { 20 write(writer, *t[n]); 21 } 22 } 23