Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6jsonlocator.h
Go to the documentation of this file.
1 
10 #ifndef P6JSONLocator_H__
11 #define P6JSONLocator_H__ 1
12 
13 #include "p6err.h"
14 #include "p6jsontypes.h"
15 
16 namespace P6R {
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
31 interface p6IJSONLocator : public p6ICom
32 {
48  P6COMMETHOD getColumnNumber( P6UINT32* pNumber ) = 0;
49 
64  P6COMMETHOD getLineNumber( P6UINT32* pNumber ) = 0;
65 
85  P6COMMETHOD convertToWideString( P6JSONSTRING* pJstring, P6WCHAR* pOut, P6UINT32* pLength ) = 0;
86 };
87 
88 // {BCE34697-9C40-4ec5-9432-81B8D8611EC9}
89 #define IF_p6IJSONLocator {0xbce34697,0x9c40,0x4ec5,{0x94,0x32,0x81,0xb8,0xd8,0x61,0x1e,0xc9}}
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 } // namespace
96 
97 
98 #endif
99 
100 
101 
102 
103 
104 
105 
106 
107 
virtual P6R::P6ERR convertToWideString(P6JSONSTRING *pJstring, P6WCHAR *pOut, P6UINT32 *pLength)=0
JSON value strings can be encoded with hex digits in the form "\uhhhh" and have control characters re...
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR getLineNumber(P6UINT32 *pNumber)=0
Return the current line number, in the JSON document being parsed, where the JSON parser is currently...
virtual P6R::P6ERR getColumnNumber(P6UINT32 *pNumber)=0
The application making use of the JSON Reader can use this interface to find out where in the JSON do...
Standard error codes.
An instance of this component is passed to the application in 2 ways: a) Via the setDocumentLocator()...
Definition: p6jsonlocator.h:31
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:76
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
This is the interface structure used to point to tokens inside the JSON document being parsed...
#define P6COMMETHOD
Definition: p6types.h:872
To avoid having to copy strings or creating new strings we simply point into a set of buffers the sta...
Definition: p6jsontypes.h:32