Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6sax2errorhandler.h
Go to the documentation of this file.
1 
11 #ifndef P6SAX2ERRORHANDLER_H__
12 #define P6SAX2ERRORHANDLER_H__ 1
13 
14 #include "p6sax2locator.h"
15 #include "p6datastream.h"
16 
17 namespace P6R {
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
31 interface p6ISAX2ErrorHandler : public p6ICom
32 {
46  P6COMMETHOD warning( P6ERR errorCode, p6ISAX2Locator* pObject ) = 0;
47 
62  P6COMMETHOD warningEx( P6ERR errorCode, p6ISAX2Locator* pObject, const P6WCHAR* pDisplay ) = 0;
63 
77  P6COMMETHOD error( P6ERR errorCode, p6ISAX2Locator* pObject ) = 0;
78 
93  P6COMMETHOD errorEx( P6ERR errorCode, p6ISAX2Locator* pObject, const P6WCHAR* pDisplay ) = 0;
94 
108  P6COMMETHOD fatalError( P6ERR errorCode, p6ISAX2Locator* pObject ) = 0;
109 
124  P6COMMETHOD fatalErrorEx( P6ERR errorCode, p6ISAX2Locator* pObject, const P6WCHAR* pDisplay ) = 0;
125 };
126 
127 // {95214A54-6564-4f68-8DCE-3C0D9B8802E7}
128 #define IF_p6ISAX2ErrorHandler {0x95214a54,0x6564,0x4f68,{0x8d,0xce,0x3c,0xd,0x9b,0x88,0x2,0xe7}}
129 
130 
131 
140 interface p6ISAX2ErrorHandlerInit : public p6ICom
141 {
152  P6COMMETHOD initialize( p6IDataStream* pOutErrors ) = 0;
153 };
154 
155 // {1C4D5626-1D53-4fdc-B20C-EF1CC7A70FDD}
156 #define IF_p6ISAX2ErrorHandlerInit {0x1c4d5626,0x1d53,0x4fdc,{0xb2,0xc,0xef,0x1c,0xc7,0xa7,0xf,0xdd}}
157 
158 // {21747C83-89EB-4c2b-93C5-D9FE2941870C}
159 #define COMP_p6SAX2ErrorHandlerInit {0x21747c83,0x89eb,0x4c2b,{0x93,0xc5,0xd9,0xfe,0x29,0x41,0x87,0xc}}
160 
161 #ifdef __cplusplus
162 }
163 #endif
164 
165 } // namespace
166 
167 
168 #endif
169 
170 
171 
172 
173 
174 
175 
virtual P6R::P6ERR initialize(p6IDataStream *pOutErrors)=0
Sets up the component to run properly.
virtual P6R::P6ERR error(P6ERR errorCode, p6ISAX2Locator *pObject)=0
The XML parser notifies the application that a recoverable parsing error has been detected...
This SAX2 interface is implemented by an application using P6R's XML parser.
p6IDataStream interface definitions
This is a standard SAX2 interface which is implemented by P6R's XML parser.
Definition: p6sax2locator.h:33
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:76
This interface is implmented by components that support receiving streamed data.
Definition: p6datastream.h:42
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR warningEx(P6ERR errorCode, p6ISAX2Locator *pObject, const P6WCHAR *pDisplay)=0
The XML parser notifies the application of an unusual condition detected during parsing.
This interface allows the caller to use the P6R implementation of the p6ISAX2ErrorHandler component...
virtual P6R::P6ERR warning(P6ERR errorCode, p6ISAX2Locator *pObject)=0
The XML parser notifies the application of an unusual condition detected during parsing.
virtual P6R::P6ERR fatalError(P6ERR errorCode, p6ISAX2Locator *pObject)=0
The XML parser notifies the application that a non-recoverable parsing error has been detected...
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:109
virtual P6R::P6ERR errorEx(P6ERR errorCode, p6ISAX2Locator *pObject, const P6WCHAR *pDisplay)=0
The XML parser notifies the application that a recoverable parsing error has been detected...
#define P6COMMETHOD
Definition: p6types.h:872
This is a standard SAX2 utility interface which is implemented by P6R's XML parser.
virtual P6R::P6ERR fatalErrorEx(P6ERR errorCode, p6ISAX2Locator *pObject, const P6WCHAR *pDisplay)=0
The XML parser notifies the application that a non-recoverable parsing error has been detected...