Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6sax2xmlreader.h
Go to the documentation of this file.
1 
14 #ifndef P6SAX2XMLREADER_H__
15 #define P6SAX2XMLREADER_H__ 1
16 
17 #include "p6err.h"
18 #include "p6sax2dtdhandler.h"
19 #include "p6sax2entityresolver.h"
20 #include "p6sax2errorhandler.h"
21 #include "p6sax2contenthandler.h"
22 
23 namespace P6R {
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
38 const P6SAX2FLAGS P6SAX2_NOFLAGS = 0x00000000;
39 const P6SAX2FLAGS P6SAX2_TRACEON = 0x00000001;
40 
41 
89 interface p6ISAX2XMLReader : public p6ICom
90 {
103  P6COMMETHOD initialize( P6SAX2FLAGS flags ) = 0;
104 
118 
133 
148 
162 
176 
188 
200 
212 
225 
239  P6COMMETHOD getFeature( const P6CHAR* pString, P6BOOL* pResult ) = 0;
240 
254  P6COMMETHOD getProperty( const P6CHAR* pString, P6VOID** pObject ) = 0;
255 
269  P6COMMETHOD setFeature( const P6CHAR* pString, P6BOOL result ) = 0;
270 
284  P6COMMETHOD setProperty( const P6CHAR* pString, P6VOID* pObject ) = 0;
285 };
286 
287 // {733ECF23-1DDC-4d18-8B30-FFD4708180C7}
288 #define IF_p6ISAX2XMLReader {0x733ecf23,0x1ddc,0x4d18,{0x8b,0x30,0xff,0xd4,0x70,0x81,0x80,0xc7}}
289 
290 // {AC64AD31-4A89-4675-B4DB-2334976282F3}
291 #define COMP_p6SAX2XMLReader {0xac64ad31,0x4a89,0x4675,{0xb4,0xdb,0x23,0x34,0x97,0x62,0x82,0xf3}}
292 
293 #ifdef __cplusplus
294 }
295 #endif
296 
297 } // namespace
298 
299 
300 #endif
301 
302 
303 
304 
305 
virtual P6R::P6ERR setFeature(const P6CHAR *pString, P6BOOL result)=0
Features: http://xml.org/sax/features/namespaces and http://xml.org/sax/features/namespaces-prefixes...
The purpose of this callback is to allow the application to resolve the location of an external entit...
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR getContentHandler(p6ISAX2ContentHandler **pObject)=0
The content handler component is defined and set by the application.
This is the main SAX interface.
virtual P6R::P6ERR getProperty(const P6CHAR *pString, P6VOID **pObject)=0
Properties are not currently supported.
Standard error codes.
bool P6BOOL
Boolean type.
Definition: p6types.h:101
This interface is implemented by the application making use of the p6sax2 component.
This SAX2 interface is implemented by an application using P6R's XML parser.
virtual P6R::P6ERR setContentHandler(p6ISAX2ContentHandler *pObject)=0
The calling application uses this method to register a content handler.
virtual P6R::P6ERR releaseAllHandlers()=0
This is not a standard SAX2 function.
virtual P6R::P6ERR setProperty(const P6CHAR *pString, P6VOID *pObject)=0
Properties are not currently supported.
This SAX2 interface is implemented by an application using P6R's XML parser.
const P6SAX2FLAGS P6SAX2_NOFLAGS
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
This SAX2 interface is implemented by an application using P6R's XML parser.
P6UINT32 P6SAX2FLAGS
P6SAX2FLAGS.
virtual P6R::P6ERR getErrorHandler(p6ISAX2ErrorHandler **pObject)=0
The Error handler component is defined and set by the application.
virtual P6R::P6ERR getDTDHandler(p6ISAX2DTDHandler **pObject)=0
The DTD handler component is defined and set by the application.
This SAX2 interface is implemented by an application using P6R's XML parser.
virtual P6R::P6ERR setErrorHandler(p6ISAX2ErrorHandler *pObject)=0
The calling application uses this method to register an error event hanlder.
#define P6COMMETHOD
Definition: p6types.h:872
The purpose of this callback is to notify an applicaton of DTD parsing events.
virtual P6R::P6ERR setEntityResolver(p6ISAX2EntityResolver *pObject)=0
The calling application uses this method to register an application written (or custom) entity resolv...
virtual P6R::P6ERR initialize(P6SAX2FLAGS flags)=0
Sets up the component to run properly.
virtual P6R::P6ERR getEntityResolver(p6ISAX2EntityResolver **pObject)=0
The Entity handler component is defined and set by the application.
void P6VOID
Definition: p6types.h:75
This interface defines the methods than an application is notified of SAX2 errors during the XML pars...
const P6SAX2FLAGS P6SAX2_TRACEON
virtual P6R::P6ERR setDTDHandler(p6ISAX2DTDHandler *pObject)=0
The calling application uses this method to register a DTD event handler.
virtual P6R::P6ERR getFeature(const P6CHAR *pString, P6BOOL *pResult)=0
Test to see if a feature has been enabled.
char P6CHAR
Narrow character type.
Definition: p6types.h:71