Main Page | Namespace List | Class Hierarchy | Class List | Directories | 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)

Functions

 DECLARE_EXCEPTION (XmlUtilsException)
 DECLARE_EXCEPTION_EX (NotFound, xmlutils, XmlUtilsException)
 DECLARE_EXCEPTION_EX (Invalid, xmlutils, XmlUtilsException)
 DEFINE_EXCEPTION_EX (NotFoundImpl, xmlutils, NotFound)
 DEFINE_EXCEPTION_EX (InvalidImpl, xmlutils, Invalid)


Define Documentation

#define CHECK_VERSION_COMPAT   LIBXML_TEST_VERSION
 

Definition at line 37 of file XmlUtils.h.

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

Definition at line 76 of file XmlUtils.h.

Referenced by testRbu::setUp(), and testPlatform::setUp().

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

Definition at line 77 of file XmlUtils.h.

#define DOMBuilder   int
 

Definition at line 34 of file XmlUtils.h.

Referenced by xmlutils::getParser().

#define DOMDocument   xmlDoc
 

Definition at line 33 of file XmlUtils.h.

#define DOMElement   xmlNode
 

Definition at line 31 of file XmlUtils.h.

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

#define DOMNode   xmlNode
 

Definition at line 32 of file XmlUtils.h.

 
#define FiniXML  )     do{}while(0)
 

Definition at line 42 of file XmlUtils.h.

Referenced by testRbu::tearDown(), and testPlatform::tearDown().

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

Definition at line 70 of file XmlUtils.h.

 
#define InitXML  ) 
 

Value:

do {        \
    } while(0)

Definition at line 70 of file XmlUtils.h.

Referenced by testRbu::setUp(), and testPlatform::setUp().

#define SETUP_XML_NAMESPACE
 

Definition at line 35 of file XmlUtils.h.

#define XERCES_CPP_NAMESPACE_QUALIFIER
 

Definition at line 30 of file 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 XmlUtils.h.

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

Definition at line 38 of file XmlUtils.h.

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

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

Definition at line 44 of file XmlUtils.h.

Referenced by testRbu::tearDown(), and testPlatform::tearDown().

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

Definition at line 43 of file XmlUtils.h.

Referenced by testRbu::tearDown(), and testPlatform::tearDown().


Function Documentation

DECLARE_EXCEPTION XmlUtilsException   ) 
 

DECLARE_EXCEPTION_EX Invalid  ,
xmlutils  ,
XmlUtilsException 
 

DECLARE_EXCEPTION_EX NotFound  ,
xmlutils  ,
XmlUtilsException 
 

DEFINE_EXCEPTION_EX InvalidImpl  ,
xmlutils  ,
Invalid 
 

DEFINE_EXCEPTION_EX NotFoundImpl  ,
xmlutils  ,
NotFound 
 


Generated on Tue Feb 26 14:39:02 2008 for SMBIOS Library by  doxygen 1.3.9.1