Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6sax2contenthandler.h
Go to the documentation of this file.
1 
11 #ifndef P6SAX2CONTENTHANDLER_H__
12 #define P6SAX2CONTENTHANDLER_H__ 1
13 
14 #include "p6sax2types.h"
15 #include "p6sax2locator.h"
16 #include "p6sax2attributes.h"
17 
18 
19 #ifdef __cplusplus
20 namespace P6R {
21 extern "C" {
22 #endif
23 
33 static const P6SAX2METADATA P6SAX2META_NOFLAGS = 0x00000000;
34 static const P6SAX2METADATA P6SAX2META_INCDATA = 0x00000001;
35 static const P6SAX2METADATA P6SAX2META_CONVERTUNICODE = 0x00000002;
36 
37 
62 #undef INTERFACE
63 #define INTERFACE p6ISAX2ContentHandler
65 {
83  P6DECLCOMMETHOD(characters)(P6THIS_ P6SAX2STRING* pBuffer, P6SAX2METADATA meta ) P6PURE;
84 
94  P6DECLCOMMETHOD(endDocument)(P6THIS) P6PURE;
95 
121  P6DECLCOMMETHOD(endElement)(P6THIS_ P6SAX2STRING* pURI, P6SAX2STRING* pLocalName, P6SAX2STRING* pQName ) P6PURE;
122 
139  P6DECLCOMMETHOD(endPrefixMapping)(P6THIS_ P6SAX2STRING* pPrefix ) P6PURE;
140 
154  P6DECLCOMMETHOD(ignorableWhitespace)(P6THIS_ const P6CHAR* pBuffer, P6UINT32 start, P6UINT32 length ) P6PURE;
155 
167  P6DECLCOMMETHOD(processingInstruction)(P6THIS_ P6SAX2STRING* pTarget, P6SAX2STRING* pData ) P6PURE;
168 
181  P6DECLCOMMETHOD(setDocumentLocator)(P6THIS_ p6ISAX2Locator* pObject ) P6PURE;
182 
195  P6DECLCOMMETHOD(skippedEntity)(P6THIS_ P6SAX2STRING* pName ) P6PURE;
196 
206  P6DECLCOMMETHOD(startDocument)(P6THIS) P6PURE;
207 
236  P6DECLCOMMETHOD(startElement)(P6THIS_ P6SAX2STRING* pURI,
237  P6SAX2STRING* pLocalName,
238  P6SAX2STRING* pQName,
239  P6SAX2STRING* pRawElement,
240  p6ISAX2Attributes* pAtts
241  ) P6PURE;
242 
259  P6DECLCOMMETHOD(startPrefixMapping)(P6THIS_ P6SAX2STRING* pPrefix, P6SAX2STRING* pURI ) P6PURE;
260 };
261 
262 // {6AD46931-5D6B-4d3a-9D3F-430B29912724}
263 #define IF_p6ISAX2ContentHandler {0x6ad46931,0x5d6b,0x4d3a,{0x9d,0x3f,0x43,0xb,0x29,0x91,0x27,0x24}}
264 
265 #ifdef __cplusplus
266 }
267 } // namespace
268 #endif
269 
270 
271 
272 #endif
273 
274 
275 
276 
277 
This is the standard structure used to point to tokens inside the XML document being parsed...
uint32_t P6UINT32
Definition: p6types.h:77
#define P6PURE
Definition: p6defs.h:192
This interface is created by the p6ISAX2XMLReader component and returned to the application via the P...
P6UINT32 P6SAX2METADATA
P6SAX2METADATA.
This is a standard SAX2 interface which is implemented by P6R's XML parser.
Definition: p6sax2locator.h:35
This interface is created by the P6R::p6ISAX2XMLReader component and returned to the application via ...
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
This SAX2 interface is implemented by an application using P6R's XML parser.
To avoid having to copy strings or creating new strings we simply point into a set of buffers the sta...
Definition: p6sax2types.h:34
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
This is a standard SAX2 utility interface which is implemented by P6R's XML parser.
#define P6THIS_
Definition: p6defs.h:193
#define P6THIS
Definition: p6defs.h:194
char P6CHAR
Narrow character type.
Definition: p6types.h:105
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188