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 
18 #ifdef __cplusplus
19 namespace P6R {
20 extern "C" {
21 #endif
22 
31 #undef INTERFACE
32 #define INTERFACE p6IJSONErrorHandler
34 {
48  P6DECLCOMMETHOD(warning)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject ) P6PURE;
49 
64  P6DECLCOMMETHOD(warningEx)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) P6PURE;
65 
79  P6DECLCOMMETHOD(error)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject ) P6PURE;
80 
95  P6DECLCOMMETHOD(errorEx)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) P6PURE;
96 
110  P6DECLCOMMETHOD(fatalError)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject ) P6PURE;
111 
126  P6DECLCOMMETHOD(fatalErrorEx)(P6THIS_ P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) P6PURE;
127 };
128 
129 // {63D1C133-778F-466b-8549-5E5BE9181A0B}
130 #define IF_p6IJSONErrorHandler {0x63d1c133,0x778f,0x466b,{0x85,0x49,0x5e,0x5b,0xe9,0x18,0x1a,0xb}}
131 
132 
141 #undef INTERFACE
142 #define INTERFACE p6IJSONErrorHandlerInit
144 {
155  P6DECLCOMMETHOD(initialize)(P6THIS_ p6IDataStream* pOutErrors ) P6PURE;
156 };
157 
158 // {4D2E76B6-E688-4599-AEC9-4A5655D43568}
159 #define IF_p6IJSONErrorHandlerInit {0x4d2e76b6,0xe688,0x4599,{0xae,0xc9,0x4a,0x56,0x55,0xd4,0x35,0x68}}
160 
161 // {39A3E5D8-A982-4d24-9DE0-FE152548CE24}
162 #define COMP_p6JSONErrorHandlerInit {0x39a3e5d8,0xa982,0x4d24,{0x9d,0xe0,0xfe,0x15,0x25,0x48,0xce,0x24}}
163 
164 #ifdef __cplusplus
165 }
166 } // namespace
167 #endif
168 
169 
170 #endif
171 
172 
173 
174 
175 
176 
177 
178 
#define P6PURE
Definition: p6defs.h:192
An instance of this component is passed to the application in 2 ways: a) Via the setDocumentLocator()...
Definition: p6jsonlocator.h:33
p6IDataStream interface definitions
This interface is implmented by components that support receiving streamed data.
Definition: p6datastream.h:44
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:141
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
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:105
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188