Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

XmlUtils.h File Reference

#include "smbios/compat.h"
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include "ExceptionImpl.h"

Go to the source code of this file.

Namespaces

namespace  xmlutils

Defines

#define XERCES_CPP_NAMESPACE_QUALIFIER
#define DOMElement   xmlNode
#define DOMNode   xmlNode
#define DOMDocument   xmlDoc
#define DOMBuilder   int
#define SETUP_XML_NAMESPACE
#define XML_NAMESPACE
#define CHECK_VERSION_COMPAT   LIBXML_TEST_VERSION
#define xmlDocGetRootElement(doc)   xmlDocGetRootElement(const_cast<xmlDocPtr>(doc))
#define InitXML()
#define FiniXML()   do{}while(0)
#define xmlFreeParser(parser)   do{parser=0;}while(0)
#define xmlFreeDoc(doc)   do{xmlFreeDoc(doc); doc=0;}while(0)
#define InitXML()   xmlSetGenericErrorFunc(NULL, xmlutils::suppressLibxmlWarnings);
#define compatXmlReadFile(parser, doc, name)   do{UNREFERENCED_PARAMETER(parser); doc = xmlParseFile(name);}while(0)
#define compatXmlReadMemory(parser, doc, ptr, len)   do{UNREFERENCED_PARAMETER(parser); doc = xmlParseMemory(ptr, len);}while(0)


Define Documentation

#define CHECK_VERSION_COMPAT   LIBXML_TEST_VERSION
 

Definition at line 37 of file xml_libxml2/XmlUtils.h.

#define compatXmlReadFile parser,
doc,
name   )     do{UNREFERENCED_PARAMETER(parser); doc = xmlParseFile(name);}while(0)
 

Definition at line 76 of file xml_libxml2/XmlUtils.h.

#define compatXmlReadMemory parser,
doc,
ptr,
len   )     do{UNREFERENCED_PARAMETER(parser); doc = xmlParseMemory(ptr, len);}while(0)
 

Definition at line 77 of file xml_libxml2/XmlUtils.h.

#define DOMBuilder   int
 

Definition at line 34 of file xml_libxml2/XmlUtils.h.

Referenced by xmlutils::getParser(), and SmbiosTableXml::setXmlFilePath().

#define DOMDocument   xmlDoc
 

Definition at line 33 of file xml_libxml2/XmlUtils.h.

Referenced by smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getSmbiosXmlDoc(), smbios::getString_FromItem(), SmbiosTableXml::getXmlDoc(), and SmbiosTableXml::setXmlFilePath().

#define DOMElement   xmlNode
 

Definition at line 31 of file xml_libxml2/XmlUtils.h.

Referenced by xmlutils::castNode2Element(), testPlatform::checkSkipTest(), xmlutils::findElement(), xmlutils::findElementWithNumericAttr(), smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getString_FromItem(), smbios::getStringForType(), testRbu::getTestInputString(), testPlatform::getTestInputString(), smbios::getTypeForString(), xmlutils::safeGetAttribute(), testPlatform::testConstructionOffset1(), testPlatform::testConstructionOffset2(), testPlatform::testOutOfBounds(), testPlatform::testVariousAccessors(), and smbios::validateSmbiosXmlDoc().

#define DOMNode   xmlNode
 

Definition at line 32 of file xml_libxml2/XmlUtils.h.

Referenced by xmlutils::findElement(), xmlutils::findElementWithNumericAttr(), and xmlutils::getNodeText().

 
#define FiniXML  )     do{}while(0)
 

Definition at line 42 of file xml_libxml2/XmlUtils.h.

 
#define InitXML  )     xmlSetGenericErrorFunc(NULL, xmlutils::suppressLibxmlWarnings);
 

Definition at line 70 of file xml_libxml2/XmlUtils.h.

 
#define InitXML  ) 
 

Value:

do {        \
    } while(0)

Definition at line 70 of file xml_libxml2/XmlUtils.h.

#define SETUP_XML_NAMESPACE
 

Definition at line 35 of file xml_libxml2/XmlUtils.h.

#define XERCES_CPP_NAMESPACE_QUALIFIER
 

Definition at line 30 of file xml_libxml2/XmlUtils.h.

Referenced by testPlatform::checkSkipTest(), testRbu::getTestInputString(), testPlatform::getTestInputString(), testPlatform::testConstructionOffset1(), testPlatform::testConstructionOffset2(), testPlatform::testOutOfBounds(), and testPlatform::testVariousAccessors().

#define XML_NAMESPACE
 

Definition at line 36 of file xml_libxml2/XmlUtils.h.

#define xmlDocGetRootElement doc   )     xmlDocGetRootElement(const_cast<xmlDocPtr>(doc))
 

Definition at line 38 of file xml_libxml2/XmlUtils.h.

#define xmlFreeDoc doc   )     do{xmlFreeDoc(doc); doc=0;}while(0)
 

Definition at line 44 of file xml_libxml2/XmlUtils.h.

#define xmlFreeParser parser   )     do{parser=0;}while(0)
 

Definition at line 43 of file xml_libxml2/XmlUtils.h.


Generated on Wed Apr 11 16:25:11 2007 for SMBIOS Library by doxygen 1.3.5