EverWrath/deps/acelite/ace/XML_Utils/XML_Error_Handler.h
Yehonal f06f32849f Directory Structure [step 1]: moving files
working on #672

NOTE: This commit can't be compiled!!
2017-10-12 20:00:52 +02:00

58 lines
1.2 KiB
C++

//==============================================================
/**
* @file XML_Error_Handler.h
*
* @brief Error handler for Xerces
*
* @author Bala Natarajan <bala@dre.vanderbilt.edu>
*/
//================================================================
#ifndef ACE_XML_ERROR_HANDLER_H
#define ACE_XML_ERROR_HANDLER_H
#include /**/ "ace/pre.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "XML_Utils_Export.h"
#include <xercesc/sax/ErrorHandler.hpp>
using xercesc::SAXParseException;
namespace XML
{
/**
* @class XML_Error_Hander
*
* @brief Error handler for XERCES
*
*/
class XML_Utils_Export XML_Error_Handler
: public xercesc::ErrorHandler
{
public:
XML_Error_Handler (void);
~XML_Error_Handler (void);
void warning(const SAXParseException& toCatch);
void error(const SAXParseException& toCatch);
void fatalError(const SAXParseException& toCatch);
void resetErrors();
bool getErrors (void) const;
private :
// Disallow copying
XML_Error_Handler (const XML_Error_Handler&);
XML_Error_Handler& operator= (const XML_Error_Handler&);
bool errors_;
};
}
#include /**/ "ace/post.h"
#endif /* ACE_XML_ERROR_HANDLER_H */