ChunkedXMLInputSource.h

Go to the documentation of this file.
00001 /*
00002   Class to handle large xml files for SAX parser
00003 
00004   Adapted from 
00005   
00006   http://lists.trolltech.com/qt-interest/2007-01/thread00263-0.html
00007 
00008 */
00009 
00010 #ifndef CHUNKED_XML_INPUT_SOURCE_H
00011 #define CHUNKED_XML_INPUT_SOURCE_H
00012 
00013 // qt
00014 #include <qxml.h>
00015 
00016 class QFile;
00017 class QTextStream;
00018 class QIODevice;
00019 
00020 class ChunkedXMLInputSource : public QXmlInputSource
00021 {
00022 public:
00023     ChunkedXMLInputSource( QIODevice* dev );
00024     ~ChunkedXMLInputSource();
00025 
00026     virtual void fetchData();
00027 
00028 private:
00029     ChunkedXMLInputSource();
00030     ChunkedXMLInputSource( QFile& );
00031     ChunkedXMLInputSource( QTextStream& );
00032 
00033     QIODevice* m_io;
00034 };
00035 
00036 #endif // CHUNKED_XML_INPUT_SOURCE_H

Generated on Fri Jul 17 20:19:29 2009 for ngsview by  doxygen 1.5.1