00001 #ifndef XMLWRITER_H 00002 #define XMLWRITER_H 00003 #define IO_ReadWrite QIODevice::ReadWrite 00004 00005 00006 #include <QString> 00007 #include <QDomElement> 00008 #include <QFile> 00009 #include <QDomDocument> 00010 #include <QDomText> 00011 00012 #include "tournament.h" 00013 00014 using namespace std; 00015 00016 00024 class XmlWriter 00025 { 00026 public: 00027 XmlWriter(); 00028 00033 XmlWriter(QString filename); 00034 00039 bool write(Tournament* tournament); 00040 00041 private: 00042 QString filename; 00043 }; 00044 00045 #endif // XMLWRITER_H