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 
20 #ifdef __cplusplus
21 namespace P6R {
22 extern "C" {
23 #endif
24 
35 static const P6JSONFLAGS P6JSON_NOFLAGS = 0x00000000;
36 static const P6JSONFLAGS P6JSON_TRACEON = 0x00000001;
37 
38 
74 #undef INTERFACE
75 #define INTERFACE p6IJSONReader
77 {
92  P6DECLCOMMETHOD(initialize)(P6THIS_ P6JSONFLAGS flags, P6UINT32 streamBufSize ) P6PURE;
93 
106  P6DECLCOMMETHOD(getContentHandler)(P6THIS_ p6IJSONContentHandler** pObject ) P6PURE;
107 
118  P6DECLCOMMETHOD(getErrorHandler)(P6THIS_ p6IJSONErrorHandler** pObject ) P6PURE;
119 
130  P6DECLCOMMETHOD(setContentHandler)(P6THIS_ p6IJSONContentHandler* pObject ) P6PURE;
131 
140  P6DECLCOMMETHOD(setErrorHandler)(P6THIS_ p6IJSONErrorHandler* pObject ) P6PURE;
141 
152  P6DECLCOMMETHOD(releaseAllHandlers)(P6THIS) P6PURE;
153 };
154 
155 // {34E460B3-4A49-49a4-8A1A-3E75FE28B1C1}
156 #define IF_p6IJSONReader {0x34e460b3,0x4a49,0x49a4,{0x8a,0x1a,0x3e,0x75,0xfe,0x28,0xb1,0xc1}}
157 
158 // {90E09EA2-0158-40fe-A34E-E8CB199AB2D2}
159 #define COMP_p6JSONReader {0x90e09ea2,0x158,0x40fe,{0xa3,0x4e,0xe8,0xcb,0x19,0x9a,0xb2,0xd2}}
160 
161 #ifdef __cplusplus
162 }
163 } // namespace
164 #endif
165 
166 
167 #endif
168 
169 
170 
171 
172 
173 
uint32_t P6UINT32
Definition: p6types.h:77
This interface is implemented by an application to handle the parsing events that are generated by th...
#define P6PURE
Definition: p6defs.h:192
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 ...
This is the main JSON interface.
Definition: p6jsonreader.h:76
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
P6UINT32 P6JSONFLAGS
P6JSONFLAGS.
Definition: p6jsonreader.h:34
#define P6THIS
Definition: p6defs.h:194
This interface is implemented by an application and is used to handle error information generated by ...
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188