Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6jsoncontenthandler.h
Go to the documentation of this file.
1 
15 #ifndef P6JSONCONTENTHANDLER_H__
16 #define P6JSONCONTENTHANDLER_H__ 1
17 
18 #include "p6jsontypes.h"
19 #include "p6jsonlocator.h"
20 
21 
22 #ifdef __cplusplus
23 namespace P6R {
24 extern "C" {
25 #endif
26 
58 #undef INTERFACE
59 #define INTERFACE p6IJSONContentHandler
61 {
72  P6DECLCOMMETHOD(endDocument)(P6THIS) P6PURE;
73 
86  P6DECLCOMMETHOD(endObject)(P6THIS_ P6UINT32 nestingLevel ) P6PURE;
87 
100  P6DECLCOMMETHOD(endArray)(P6THIS_ P6UINT32 nestingLevel ) P6PURE;
101 
114  P6DECLCOMMETHOD(setDocumentLocator)(P6THIS_ p6IJSONLocator* pObject ) P6PURE;
115 
125  P6DECLCOMMETHOD(startDocument)(P6THIS) P6PURE;
126 
138  P6DECLCOMMETHOD(startObject)(P6THIS_ P6UINT32 nestingLevel ) P6PURE;
139 
154  P6DECLCOMMETHOD(startPair)(P6THIS_ P6JSONSTRING* pName ) P6PURE;
155 
167  P6DECLCOMMETHOD(startArray)(P6THIS_ P6UINT32 nestingLevel ) P6PURE;
168 
191 };
192 
193 // {97382B44-0238-43de-930F-5823575A7D8E}
194 #define IF_p6IJSONContentHandler {0x97382b44,0x238,0x43de,{0x93,0xf,0x58,0x23,0x57,0x5a,0x7d,0x8e}}
195 
196 #ifdef __cplusplus
197 }
198 } // namespace
199 #endif
200 
201 
202 #endif
203 
204 
205 
206 
207 
208 
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
The 'jstring' field is set for: { P6JSON_TYPE_STR, P6JSON_TYPE_STRPART, P6JSON_TYPE_STREND, P6JSON_TYPE_INTEGER, P6JSON_TYPE_REAL } jstring is set for numbers to allow an application to convert the string to another numeric variable type (e.g., P6UINT64 value).
Definition: p6jsontypes.h:72
An instance of this component is passed to the application in 2 ways: a) Via the setDocumentLocator()...
Definition: p6jsonlocator.h:33
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
This is the interface structure used to point to tokens inside the JSON document being parsed...
it may not contain all the symbols used by this software If you run into undefined symbol please let us know and we can provide you a build that will be compatible with your specific value
Definition: readme.txt:85
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
To avoid having to copy strings or creating new strings we simply point into a set of buffers the sta...
Definition: p6jsontypes.h:32
This is a JSON parsing utility interface which is implemented by P6R's parser.
#define P6THIS
Definition: p6defs.h:194
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188