You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/11/07 05:07:20 UTC
cvs commit: xml-xalan/c/src/XMLSupport XMLParserLiaison.hpp XMLParserLiaisonDefault.hpp
dbertoni 01/11/06 20:07:20
Modified: c/src/XMLSupport XMLParserLiaison.hpp
XMLParserLiaisonDefault.hpp
Log:
Fixed-up ErrorHandler and EntityResolver usage.
Revision Changes Path
1.15 +18 -1 xml-xalan/c/src/XMLSupport/XMLParserLiaison.hpp
Index: XMLParserLiaison.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/XMLParserLiaison.hpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- XMLParserLiaison.hpp 2001/10/30 04:00:18 1.14
+++ XMLParserLiaison.hpp 2001/11/07 04:07:20 1.15
@@ -74,6 +74,7 @@
class DocumentHandler;
class EntityResolver;
+class ErrorHandler;
class ExecutionContext;
class FormatterListener;
class InputSource;
@@ -238,7 +239,7 @@
* @return The pointer to the installed entity resolver object.
*/
virtual EntityResolver*
- getEntityResolver() = 0;
+ getEntityResolver() const = 0;
/**
* This method installs the user specified entity resolver on the
@@ -251,6 +252,22 @@
*/
virtual void
setEntityResolver(EntityResolver* resolver) = 0;
+
+ /**
+ * This method returns the installed error handler.
+ *
+ * @return The pointer to the installed error handler object.
+ */
+ virtual ErrorHandler*
+ getErrorHandler() const = 0;
+
+ /**
+ * This method installs the user-specified error handler.
+ *
+ * @param handler A pointer to the error handler to be called upon error.
+ */
+ virtual void
+ setErrorHandler(ErrorHandler* handler) = 0;
private:
1.13 +8 -0 xml-xalan/c/src/XMLSupport/XMLParserLiaisonDefault.hpp
Index: XMLParserLiaisonDefault.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/XMLParserLiaisonDefault.hpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- XMLParserLiaisonDefault.hpp 2001/08/06 01:38:11 1.12
+++ XMLParserLiaisonDefault.hpp 2001/11/07 04:07:20 1.13
@@ -148,6 +148,12 @@
virtual void
setEntityResolver(EntityResolver* resolver) { m_entityResolver = resolver; }
+ virtual ErrorHandler*
+ getErrorHandler() { return m_errorHandler; }
+
+ virtual void
+ setErrorHandler(ErrorHandler* handler) { m_errorHandler = handler; }
+
private:
// Not implemented...
@@ -162,6 +168,8 @@
bool m_fUseValidation;
EntityResolver* m_entityResolver;
+
+ ErrorHandler* m_errorHandler;
unsigned long m_documentNumber;
};
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org