Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6jsonerrorhandler.h
Go to the documentation of this file.
1 
11 #ifndef P6JSONERRORHANDLER_H__
12 #define P6JSONERRORHANDLER_H__ 1
13 
14 #include "p6jsonlocator.h"
15 #include "p6datastream.h"
16 
17 namespace P6R {
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
31 interface p6IJSONErrorHandler : public p6ICom
32 {
46  P6COMMETHOD warning( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
47 
62  P6COMMETHOD warningEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
63 
77  P6COMMETHOD error( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
78 
93  P6COMMETHOD errorEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
94 
108  P6COMMETHOD fatalError( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
109 
124  P6COMMETHOD fatalErrorEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
125 };
126 
127 // {63D1C133-778F-466b-8549-5E5BE9181A0B}
128 #define IF_p6IJSONErrorHandler {0x63d1c133,0x778f,0x466b,{0x85,0x49,0x5e,0x5b,0xe9,0x18,0x1a,0xb}}
129 
130 
139 interface p6IJSONErrorHandlerInit : public p6ICom
140 {
151  P6COMMETHOD initialize( p6IDataStream* pOutErrors ) = 0;
152 };
153 
154 // {4D2E76B6-E688-4599-AEC9-4A5655D43568}
155 #define IF_p6IJSONErrorHandlerInit {0x4d2e76b6,0xe688,0x4599,{0xae,0xc9,0x4a,0x56,0x55,0xd4,0x35,0x68}}
156 
157 // {39A3E5D8-A982-4d24-9DE0-FE152548CE24}
158 #define COMP_p6JSONErrorHandlerInit {0x39a3e5d8,0xa982,0x4d24,{0x9d,0xe0,0xfe,0x15,0x25,0x48,0xce,0x24}}
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 } // namespace
165 
166 
167 #endif
168 
169 
170 
171 
172 
173 
174 
175 
virtual P6R::P6ERR fatalErrorEx(P6ERR errorCode, p6IJSONLocator *pObject, const P6CHAR *pDisplay)=0
The JSON parser notifies the application that a non-recoverable parsing error has been detected...
virtual P6R::P6ERR initialize(p6IDataStream *pOutErrors)=0
Sets up the component to run properly.
An instance of this component is passed to the application in 2 ways: a) Via the setDocumentLocator()...
Definition: p6jsonlocator.h:31
virtual P6R::P6ERR fatalError(P6ERR errorCode, p6IJSONLocator *pObject)=0
The JSON parser notifies the application that a non-recoverable parsing error has been detected...
p6IDataStream interface definitions
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, p6IJSONLocator *pObject, const P6CHAR *pDisplay)=0
The JSON parser notifies the application of an unusual condition detected during parsing.
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:109
virtual P6R::P6ERR errorEx(P6ERR errorCode, p6IJSONLocator *pObject, const P6CHAR *pDisplay)=0
The JSON parser notifies the application that a recoverable parsing error has been detected...
#define P6COMMETHOD
Definition: p6types.h:872
virtual P6R::P6ERR error(P6ERR errorCode, p6IJSONLocator *pObject)=0
The JSON parser notifies the application that a recoverable parsing error has been detected...
This is a JSON parsing utility interface which is implemented by P6R's parser.
The p6IJSONErrorHandlerInit interface is used to initialize the P6R implementation of the p6IJSONErro...
This interface is implemented by an application and is used to handle error information generated by ...
char P6CHAR
Narrow character type.
Definition: p6types.h:71
virtual P6R::P6ERR warning(P6ERR errorCode, p6IJSONLocator *pObject)=0
The JSON parser notifies the application of an unusual condition detected during parsing.