00001
00011 #ifndef P6JSONERRORHANDLER_H__
00012 #define P6JSONERRORHANDLER_H__ 1
00013
00014 #include "p6jsonlocator.h"
00015 #include "p6datastream.h"
00016
00017 namespace P6R {
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022
00031 interface p6IJSONErrorHandler : public p6ICom
00032 {
00046 P6COMMETHOD warning( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
00047
00062 P6COMMETHOD warningEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
00063
00077 P6COMMETHOD error( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
00078
00093 P6COMMETHOD errorEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
00094
00108 P6COMMETHOD fatalError( P6ERR errorCode, p6IJSONLocator* pObject ) = 0;
00109
00124 P6COMMETHOD fatalErrorEx( P6ERR errorCode, p6IJSONLocator* pObject, const P6CHAR* pDisplay ) = 0;
00125 };
00126
00127
00128 #define IF_p6IJSONErrorHandler {0x63d1c133,0x778f,0x466b,{0x85,0x49,0x5e,0x5b,0xe9,0x18,0x1a,0xb}}
00129
00130
00139 interface p6IJSONErrorHandlerInit : public p6ICom
00140 {
00151 P6COMMETHOD initialize( p6IDataStream* pOutErrors ) = 0;
00152 };
00153
00154
00155 #define IF_p6IJSONErrorHandlerInit {0x4d2e76b6,0xe688,0x4599,{0xae,0xc9,0x4a,0x56,0x55,0xd4,0x35,0x68}}
00156
00157
00158 #define COMP_p6JSONErrorHandlerInit {0x39a3e5d8,0xa982,0x4d24,{0x9d,0xe0,0xfe,0x15,0x25,0x48,0xce,0x24}}
00159
00160 #ifdef __cplusplus
00161 }
00162 #endif
00163
00164 }
00165
00166
00167 #endif
00168
00169
00170
00171
00172
00173
00174
00175