Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

xmlparserbase.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     xmlparserbase.h  -  Definition of XmlParserBase class
00003                              -------------------
00004     begin                : June 21 2002
00005     copyright            : (C) 2003 by Vojtìch Toman
00006     email                : vtoman@lit.cz
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00027 #ifndef XMLPARSERBASE_H
00028 #define XMLPARSERBASE_H
00029 
00030 #include "defs.h"
00031 #include "iodevice.h"
00032 #include "xmldefs.h"
00033 #include "xmlmodelbase.h"
00034 #include "saxbase.h"
00035 
00041 class XmlParserBase : public SAXBase, public UserOfTextCodec
00042 {
00043 public:
00049   XmlParserBase(void)
00050     : SAXBase(), UserOfTextCodec()
00051   {
00052     init_();
00053   }
00054 
00055 
00061   XmlParserBase(const XmlChar *encoding)
00062     : SAXBase(), UserOfTextCodec()
00063   {
00064     init_();
00065   }
00066 
00072   virtual ~XmlParserBase(void) {}
00073 
00081   virtual void setInputDevice(IODevice *dev) { inputDevice = dev; }
00082 
00093   virtual void setXmlModel(XmlModelBase *model) { xmlModel = model; }
00094 
00101   virtual long parse(void) throw (ExaltParserException, ExaltEncodingException, ExaltIOException)
00102   {
00103     return true; 
00104   }
00105 
00114   virtual long parsePush(const char *data, int length, bool isFinal) throw (ExaltParserException, ExaltEncodingException, ExaltIOException)
00115   {
00116     return true; 
00117   }
00118 
00119 
00120 protected:
00122   IODevice *inputDevice;
00123 
00125   XmlModelBase *xmlModel;
00126 
00132   void init_(void)
00133   {
00134     inputDevice = 0;
00135     xmlModel = 0;
00136   }
00137 };
00138 
00139 
00140 
00141 
00142 #endif //XMLPARSERBASE_H

Generated on Wed Feb 5 10:43:03 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002