Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

xmlmem.m File Reference

Memory operations for XML data. More...

#include <LibXmlKit/xmlmem.h>
#include <LibXmlKit/xmldoc.h>
#include <LibXmlKit/xmlnode.h>

Classes

struct  SXmlExt

Defines

#define S_ASSERT(EXP)

Typedefs

typedef char * s_byteptr

Enumerations

enum  SXmlExtType { S_XML_EXT_MISC, S_XML_EXT_NODE, S_XML_EXT_DOC }

Functions

void xml_mem_init (void)
 Initialize the memory system for XML processing.

XmlDocxml_mem_doc_ptr2obj (xmlDocPtr doc)
 Get XmlDoc instance from xmlDocPtr.

XmlNodexml_mem_node_ptr2obj (xmlNodePtr node)
 Get XmlNode instance from xmlNodePtr.


Detailed Description

Memory operations for XML data.

Date:
2004.02.14
Author:
Steel Wheels Project
Copyright
Copyright (C) 2004 Steel Wheels Project. All right reserved.
Description
The libxml2 library has custom memory allocation functions and they can be replaced by the user.

Define Documentation

#define S_ASSERT EXP   ) 
 

Value:

if(!(EXP)){ \
                fprintf(stderr, "ERROR in %d at %s\n", __LINE__, \
                  __FILE__) ; \
                exit(1) ; \
        }


Function Documentation

XmlDoc* xml_mem_doc_ptr2obj xmlDocPtr  doc  ) 
 

Get XmlDoc instance from xmlDocPtr.

Parameters:
doc xml document data.
Returns:
Instance of XmlDoc class.
Description
Get XmlDoc instance from xmlDocPtr.

void xml_mem_init void   ) 
 

Initialize the memory system for XML processing.

Description
Initialize the memory system for XML processing. This function is called in the startup initializer in XmlDoc class. DO NOT CALL this method in the other place.

XmlNode* xml_mem_node_ptr2obj xmlNodePtr  node  ) 
 

Get XmlNode instance from xmlNodePtr.

Returns:
Instance of XmlNode class.
Parameters:
node xmlNode to get pair.
Description
Get XmlNode object from xmlNodePtr.


Generated on Mon Jul 19 20:04:09 2004 for LibXmlKit by doxygen 1.3.6