Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

XMLSupportErrorHandler Class Reference

Simple error handler used when parsing XML documents. More...

#include <XMLSupport.h>

List of all members.

Public Member Functions

 XMLSupportErrorHandler (CStdString &warningsForUser, CStdString &errorForUser)
void warning (const SAXParseException &toCatch)
void error (const SAXParseException &toCatch)
void fatalError (const SAXParseException &toCatch)
void resetErrors ()

Protected Attributes

CStdString & m_warningsForUser
CStdString & m_errorForUser


Detailed Description

Simple error handler used when parsing XML documents.

Puts acquired error / warning message to one of strings, references to which are given in constructor.


Constructor & Destructor Documentation

XMLSupportErrorHandler::XMLSupportErrorHandler CStdString &  warningsForUser,
CStdString &  errorForUser
[inline]
 

Stores warningsForUser in m_warningsForUser and errorForUser in m_errorForUser.


Member Function Documentation

void XMLSupportErrorHandler::warning const SAXParseException &  toCatch  )  [inline]
 

Called if some warning should be send to user. Extracts the warning message from toCatch and adds it to m_warningsForUser using addWarning().

void XMLSupportErrorHandler::error const SAXParseException &  toCatch  )  [inline]
 

Called if document isn't valid (according to its DTD). Calls fatalError().

void XMLSupportErrorHandler::fatalError const SAXParseException &  toCatch  )  [inline]
 

Called if document isn't well-formed (and through error() also if the document isn't valid). Extracts the error message from toCatch, puts it into m_errorForUser and throws toCatch.

void XMLSupportErrorHandler::resetErrors  )  [inline]
 

This function is not supported - it calls _ASSERTE(0) only.


Member Data Documentation

CStdString& XMLSupportErrorHandler::m_warningsForUser [protected]
 

Reference to string used to pass warning messages to user.

CStdString& XMLSupportErrorHandler::m_errorForUser [protected]
 

Reference to string used to pass error messages to user.


The documentation for this class was generated from the following file:
Generated on Wed Aug 11 22:36:51 2004 for IOPC by Doxygen 1.3.6