Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6jsonreader.h
Go to the documentation of this file.
1 
12 #ifndef P6JSONREADER_H__
13 #define P6JSONREADER_H__ 1
14 
15 #include "p6err.h"
16 #include "p6jsonerrorhandler.h"
17 #include "p6jsoncontenthandler.h"
18 
19 namespace P6R {
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
35 const P6JSONFLAGS P6JSON_NOFLAGS = 0x00000000;
36 const P6JSONFLAGS P6JSON_TRACEON = 0x00000001;
37 
38 
74 interface p6IJSONReader : public p6ICom
75 {
90  P6COMMETHOD initialize( P6JSONFLAGS flags, P6UINT32 streamBufSize ) = 0;
91 
105 
117 
129 
139 
151 };
152 
153 // {34E460B3-4A49-49a4-8A1A-3E75FE28B1C1}
154 #define IF_p6IJSONReader {0x34e460b3,0x4a49,0x49a4,{0x8a,0x1a,0x3e,0x75,0xfe,0x28,0xb1,0xc1}}
155 
156 // {90E09EA2-0158-40fe-A34E-E8CB199AB2D2}
157 #define COMP_p6JSONReader {0x90e09ea2,0x158,0x40fe,{0xa3,0x4e,0xe8,0xcb,0x19,0x9a,0xb2,0xd2}}
158 
159 #ifdef __cplusplus
160 }
161 #endif
162 
163 } // namespace
164 
165 
166 #endif
167 
168 
169 
170 
171 
172 
unsigned int P6UINT32
Definition: p6types.h:40
This interface is implemented by an application to handle the parsing events that are generated by th...
virtual P6R::P6ERR initialize(P6JSONFLAGS flags, P6UINT32 streamBufSize)=0
Sets up the component to run properly.
Standard error codes.
This interface is implemented by the application making use of the p6json component.
This interface defines the methods than an application is notified of JSON errors during the parsing ...
virtual P6R::P6ERR getErrorHandler(p6IJSONErrorHandler **pObject)=0
The Error handler component is defined and set by the application.
const P6JSONFLAGS P6JSON_TRACEON
Definition: p6jsonreader.h:36
This is the main JSON interface.
Definition: p6jsonreader.h:74
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR getContentHandler(p6IJSONContentHandler **pObject)=0
The content handler component is defined and set by the application.
virtual P6R::P6ERR setContentHandler(p6IJSONContentHandler *pObject)=0
The calling application uses this method to register a content handler.
virtual P6R::P6ERR setErrorHandler(p6IJSONErrorHandler *pObject)=0
The calling application uses this method to register an error event hanlder.
virtual P6R::P6ERR releaseAllHandlers()=0
This was addded to make it easy for an application to tell the JSON reader to free all set handlers...
#define P6COMMETHOD
Definition: p6types.h:872
P6UINT32 P6JSONFLAGS
P6JSONFLAGS.
Definition: p6jsonreader.h:34
This interface is implemented by an application and is used to handle error information generated by ...
const P6JSONFLAGS P6JSON_NOFLAGS
Definition: p6jsonreader.h:35