Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtSaxCppParserIF.h File Reference

#include <string.h>
#include <stdlib.h>
#include "rtxsrc/rtxErrCodes.h"
#include "rtxsrc/rtxCppInputStreamIF.h"
#include "rtxmlsrc/osrtxml.h"
#include "rtxmlsrc/rtSaxDefs.h"

Go to the source code of this file.

Classes

class  OSXMLErrorInfo
class  OSXMLErrorHandler
class  OSXMLContentHandler
 Receive notification of general document events. More...
class  OSXMLBase
class  OSXMLReader
class  OSXMLDefaultHandlerIF
 This class is derived from the SAX class DefaultHandler base class. More...
class  OSXMLParserCtxtIF

Defines

#define DECLARE_XMLBASEIMP   public: void release () { delete this; }

Functions

OSXMLReaderrtSaxCppCreateXmlReader (OSXMLParserCtxtIF *pContext, OSXMLDefaultHandlerIF *pSaxHandler)
 This function creates XML reader instance.
void rtSaxCppLockXmlLibrary ()
 This function locks XML library.
void rtSaxCppUnlockXmlLibrary ()
 This function unlocks XML library.


Detailed Description

Definition in file rtSaxCppParserIF.h.


Function Documentation

OSXMLReader* rtSaxCppCreateXmlReader OSXMLParserCtxtIF pContext,
OSXMLDefaultHandlerIF pSaxHandler
 

This function creates XML reader instance.

Parameters:
pContext Pointer to XML Parser Context instance.
pSaxHandler Pointer to default SAX handler instance.
Returns:
OSXMLReader instance.

void rtSaxCppLockXmlLibrary  ) 
 

This function locks XML library.

It increments an internal counter to prevent unloading and freeing of XML parser library. Usually, XML parser library is being initialized on demand at the beginning of 'parse' method and is being freed at the end (if necessary, for example Xerces requires initialization/termination, but Expat does not). It may lead to serious performance impact, if multiple calls to 'parse are being done. If rtSaxCppLockXmlLibrary was called, XML parser library won't be freed until rtSaxCppUnlockXmlLibrary is called.

void rtSaxCppUnlockXmlLibrary  ) 
 

This function unlocks XML library.

It decrements an internal counter and if it is zero XML parser library will be freed (if necessary). See rtSaxCppLockXmlLibrary for further details.


This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9