From: Robert J. <spa...@us...> - 2006-01-14 23:45:11
|
Update of /cvsroot/lmuse/muse/al In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32126/al Modified Files: xml.cpp xml.h Log Message: plugins the melody Index: xml.h =================================================================== RCS file: /cvsroot/lmuse/muse/al/xml.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** xml.h 13 Jan 2005 21:15:32 -0000 1.1 --- xml.h 14 Jan 2006 23:44:57 -0000 1.2 *************** *** 45,48 **** --- 45,49 ---- void geometryTag(const char* name, const QWidget* g); void qrectTag(const char* name, const QRect& r); + QByteArray dump(); }; Index: xml.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/al/xml.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xml.cpp 6 Jan 2006 22:48:08 -0000 1.3 --- xml.cpp 14 Jan 2006 23:44:57 -0000 1.4 *************** *** 200,203 **** --- 200,222 ---- } + + //--------------------------------------------------------- + // dump + //--------------------------------------------------------- + QByteArray Xml::dump() + { + QByteArray dumpData; + char buf[512]; + if (f == 0) + return dumpData; + fpos_t pos; + fgetpos(f, &pos); + rewind(f); + while(fgets(buf, 512, f) != 0) + dumpData.append(buf); + fsetpos(f, &pos); + return dumpData; + } + //--------------------------------------------------------- // readGeometry |