Developer's Guide
Guide
Modules
Index
Files
v1.1.0.13094
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
34
typedef
P6UINT32
P6JSONFLAGS
;
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
104
P6COMMETHOD
getContentHandler
(
p6IJSONContentHandler
** pObject ) = 0;
105
116
P6COMMETHOD
getErrorHandler
(
p6IJSONErrorHandler
** pObject ) = 0;
117
128
P6COMMETHOD
setContentHandler
(
p6IJSONContentHandler
* pObject ) = 0;
129
138
P6COMMETHOD
setErrorHandler
(
p6IJSONErrorHandler
* pObject ) = 0;
139
150
P6COMMETHOD
releaseAllHandlers
() = 0;
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
P6R::P6UINT32
unsigned int P6UINT32
Definition:
p6types.h:40
P6R::p6IJSONContentHandler
This interface is implemented by an application to handle the parsing events that are generated by th...
Definition:
p6jsoncontenthandler.h:58
P6R::p6IJSONReader::initialize
virtual P6R::P6ERR initialize(P6JSONFLAGS flags, P6UINT32 streamBufSize)=0
Sets up the component to run properly.
p6err.h
Standard error codes.
p6jsoncontenthandler.h
This interface is implemented by the application making use of the p6json component.
p6jsonerrorhandler.h
This interface defines the methods than an application is notified of JSON errors during the parsing ...
P6R::p6IJSONReader::getErrorHandler
virtual P6R::P6ERR getErrorHandler(p6IJSONErrorHandler **pObject)=0
The Error handler component is defined and set by the application.
P6R::P6JSON_TRACEON
const P6JSONFLAGS P6JSON_TRACEON
Definition:
p6jsonreader.h:36
P6R::p6IJSONReader
This is the main JSON interface.
Definition:
p6jsonreader.h:74
P6R::p6ICom
The base interface all [p6]COM components must derive from and implement.
Definition:
p6comdef.h:96
P6R::p6IJSONReader::getContentHandler
virtual P6R::P6ERR getContentHandler(p6IJSONContentHandler **pObject)=0
The content handler component is defined and set by the application.
P6R::p6IJSONReader::setContentHandler
virtual P6R::P6ERR setContentHandler(p6IJSONContentHandler *pObject)=0
The calling application uses this method to register a content handler.
P6R::p6IJSONReader::setErrorHandler
virtual P6R::P6ERR setErrorHandler(p6IJSONErrorHandler *pObject)=0
The calling application uses this method to register an error event hanlder.
P6R::p6IJSONReader::releaseAllHandlers
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...
P6COMMETHOD
#define P6COMMETHOD
Definition:
p6types.h:872
P6R::P6JSONFLAGS
P6UINT32 P6JSONFLAGS
P6JSONFLAGS.
Definition:
p6jsonreader.h:34
P6R::p6IJSONErrorHandler
This interface is implemented by an application and is used to handle error information generated by ...
Definition:
p6jsonerrorhandler.h:31
P6R::P6JSON_NOFLAGS
const P6JSONFLAGS P6JSON_NOFLAGS
Definition:
p6jsonreader.h:35
WINNT6.1_x86_OPT_64bit_vs2008.OBJ
src
p6jsonreader.h
© 2004 - 2014 P6R Inc. - All Rights Reserved.