root/win32/xsd-3.1.0-i686/libxsd/xsd/cxx/xml/dom/bits/error-handler-proxy.hxx @ 111

Revision 111, 1.5 kB (checked in by mido, 16 years ago)

pridana knihovna XSD (a jeji chlebodarkyne XERCES), v ramci Win32 zprovoznen priklad tests/test_xsd_hello.cxx

Line 
1// file      : xsd/cxx/xml/dom/bits/error-handler-proxy.hxx
2// author    : Boris Kolpackov <boris@codesynthesis.com>
3// copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC
4// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file
5
6#ifndef XSD_CXX_XML_DOM_BITS_ERROR_HANDLER_PROXY_HXX
7#define XSD_CXX_XML_DOM_BITS_ERROR_HANDLER_PROXY_HXX
8
9#include <xercesc/dom/DOMError.hpp>
10#include <xercesc/dom/DOMLocator.hpp>
11#include <xercesc/dom/DOMErrorHandler.hpp>
12
13#include <xsd/cxx/xml/error-handler.hxx>
14
15namespace xsd
16{
17  namespace cxx
18  {
19    namespace xml
20    {
21      namespace dom
22      {
23        namespace bits
24        {
25          template <typename C>
26          class error_handler_proxy: public xercesc::DOMErrorHandler
27          {
28          public:
29            error_handler_proxy (error_handler<C>& eh)
30                : failed_ (false), eh_ (&eh), native_eh_ (0)
31            {
32            }
33
34            error_handler_proxy (xercesc::DOMErrorHandler& eh)
35              : failed_ (false), eh_ (0), native_eh_ (&eh)
36            {
37            }
38
39            virtual bool
40            handleError (const xercesc::DOMError& e);
41
42            bool
43            failed () const
44            {
45              return failed_;
46            }
47
48          private:
49            bool failed_;
50            error_handler<C>* eh_;
51            xercesc::DOMErrorHandler* native_eh_;
52          };
53        }
54      }
55    }
56  }
57}
58
59#include <xsd/cxx/xml/dom/bits/error-handler-proxy.txx>
60
61#endif  // XSD_CXX_XML_DOM_BITS_ERROR_HANDLER_PROXY_HXX
Note: See TracBrowser for help on using the browser.