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 namespace P6R {
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
32 const P6SAX2METADATA P6SAX2META_NOFLAGS = 0x00000000;
33 const P6SAX2METADATA P6SAX2META_INCDATA = 0x00000001;
34 
35 
60 interface p6ISAX2ContentHandler : public p6ICom
61 {
79  P6COMMETHOD characters( P6SAX2STRING* pBuffer, P6SAX2METADATA meta ) = 0;
80 
90  P6COMMETHOD endDocument() = 0;
91 
117  P6COMMETHOD endElement( P6SAX2STRING* pURI, P6SAX2STRING* pLocalName, P6SAX2STRING* pQName ) = 0;
118 
135  P6COMMETHOD endPrefixMapping( P6SAX2STRING* pPrefix ) = 0;
136 
150  P6COMMETHOD ignorableWhitespace( const P6CHAR* pBuffer, P6UINT32 start, P6UINT32 length )= 0;
151 
164 
178 
191  P6COMMETHOD skippedEntity( P6SAX2STRING* pName ) = 0;
192 
203 
233  P6SAX2STRING* pLocalName,
234  P6SAX2STRING* pQName,
235  P6SAX2STRING* pRawElement,
236  p6ISAX2Attributes* pAtts
237  ) = 0;
238 
256 };
257 
258 // {6AD46931-5D6B-4d3a-9D3F-430B29912724}
259 #define IF_p6ISAX2ContentHandler {0x6ad46931,0x5d6b,0x4d3a,{0x9d,0x3f,0x43,0xb,0x29,0x91,0x27,0x24}}
260 
261 #ifdef __cplusplus
262 }
263 #endif
264 
265 } // namespace
266 
267 
268 #endif
269 
270 
271 
272 
273 
virtual P6R::P6ERR skippedEntity(P6SAX2STRING *pName)=0
Non-validating parsers may skip entities whose definition,s are defined in DTDs that has not been rea...
This is the standard structure used to point to tokens inside the XML document being parsed...
virtual P6R::P6ERR setDocumentLocator(p6ISAX2Locator *pObject)=0
This method is called just before the startDocument() method and the application is given a p6ISAX2Lo...
unsigned int P6UINT32
Definition: p6types.h:40
const P6SAX2METADATA P6SAX2META_NOFLAGS
This interface is created by the p6ISAX2XMLReader component and returned to the application via the P...
virtual P6R::P6ERR endElement(P6SAX2STRING *pURI, P6SAX2STRING *pLocalName, P6SAX2STRING *pQName)=0
Provides an application the notification when the most recent element (as defined by a callback of th...
P6UINT32 P6SAX2METADATA
P6SAX2METADATA.
This is a standard SAX2 interface which is implemented by P6R's XML parser.
Definition: p6sax2locator.h:33
virtual P6R::P6ERR processingInstruction(P6SAX2STRING *pTarget, P6SAX2STRING *pData)=0
Provides an applicaiton with the notification that an XML processing instruction has been detected...
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:96
const P6SAX2METADATA P6SAX2META_INCDATA
virtual P6R::P6ERR ignorableWhitespace(const P6CHAR *pBuffer, P6UINT32 start, P6UINT32 length)=0
p6ISAX2XMLReader is a non-validating parser and does not implement this callback. ...
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
virtual P6R::P6ERR endPrefixMapping(P6SAX2STRING *pPrefix)=0
Provides an application the notification when a namespace has just gone out of scope.
virtual P6R::P6ERR startElement(P6SAX2STRING *pURI, P6SAX2STRING *pLocalName, P6SAX2STRING *pQName, P6SAX2STRING *pRawElement, p6ISAX2Attributes *pAtts)=0
Provides an application the notification when a new element has been detected.
virtual P6R::P6ERR characters(P6SAX2STRING *pBuffer, P6SAX2METADATA meta)=0
Provides an element's contents to the application.
#define P6COMMETHOD
Definition: p6types.h:872
virtual P6R::P6ERR endDocument()=0
Provides an application the notification when the end of the XML input document has been reached by t...
This is a standard SAX2 utility interface which is implemented by P6R's XML parser.
virtual P6R::P6ERR startDocument()=0
Provides an application the notification when the start of the XML input document has been reached by...
virtual P6R::P6ERR startPrefixMapping(P6SAX2STRING *pPrefix, P6SAX2STRING *pURI)=0
Provides an application the notification when a new namespace is just about to come into scope...
char P6CHAR
Narrow character type.
Definition: p6types.h:71