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

saxbase.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     saxbase.h  -  Definition of Communicative 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 SAXBASE_H
00028 #define SAXBASE_H
00029 
00030 
00031 #include "defs.h"
00032 #include "xmldefs.h"
00033 
00034 
00040 class SAXBase
00041 {
00042 public:
00048   virtual void reportError(void) {}
00049 
00059   virtual void startElement(void *userData,
00060                             const XmlChar *name,
00061                             const XmlChar **atts) {}
00062 
00071   virtual void endElement(void *userData,
00072                           const XmlChar *name) {}
00073 
00083   virtual void characterData(void *userData,
00084                              const XmlChar *data,
00085                              int length) {}
00086 
00096   virtual void processingInstruction(void *userData,
00097                                      const XmlChar *target,
00098                                      const XmlChar *data) {}
00099 
00108   virtual void comment(void *userData,
00109                        const XmlChar *data) {}
00110 
00118   virtual void startCDATASection(void *userData) {}
00119 
00120 
00128   virtual void endCDATASection(void *userData) {}
00129 
00139   virtual void defaultHandler(void *userData,
00140                               const XmlChar *data,
00141                               int length) {}
00142 
00152   virtual int unknownEncoding(void *unknownEncodingData,
00153                               const XmlChar *name,
00154                               XML_Encoding *info) { return 0; }
00155 
00156 
00167   virtual void xmlDecl(void *userData,
00168                        const XmlChar *version,
00169                        const XmlChar *encoding,
00170                        int standalone) {}
00171 
00183   virtual void startDoctypeDecl(void *userData,
00184                                 const XmlChar *doctypeName,
00185                                 const XmlChar *systemId,
00186                                 const XmlChar *publicId,
00187                                 int hasInternalSubset) {}
00188 
00196   virtual void endDoctypeDecl(void *userData) {}
00197 
00198 
00214   virtual void entityDecl(void *userData,
00215                           const XmlChar *entityName,
00216                           int isParameterEntity,
00217                           const XmlChar *value,
00218                           int valueLength,
00219                           const XmlChar *base,
00220                           const XmlChar *systemId,
00221                           const XmlChar *publicId,
00222                           const XmlChar *notationName) {}
00223 
00235   virtual void notationDecl(void *userData,
00236                             const XmlChar *notationName,
00237                             const XmlChar *base,
00238                             const XmlChar *systemId,
00239                             const XmlChar *publicId) {}
00240 
00241 
00242 };
00243 
00244 #endif //SAXBASE_H

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