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 <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/framework/Wrapper4InputSource.hpp>
#include "ExceptionImpl.h"

Go to the source code of this file.

Namespaces

namespace  xmlutils

Defines

#define X(x)   XMLString::transcode(x)
#define xmlDocGetRootElement(doc)   doc->getDocumentElement()
#define SETUP_XML_NAMESPACE   XERCES_CPP_NAMESPACE_USE
#define XML_NAMESPACE   XERCES_CPP_NAMESPACE_QUALIFIER
#define CHECK_VERSION_COMPAT
#define InitXML   XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Initialize
#define FiniXML   XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Terminate
#define xmlFreeParser(parser)   do{parser->resetDocumentPool(); parser->release();parser=0;}while(0)
#define xmlFreeDoc(doc)   do{doc=0;}while(0)
#define compatXmlReadFile(parser, doc, name)   do{try{doc = parser->parseURI(name);}catch( const std::exception & ){}}while(0)
#define compatXmlReadMemory(parser, doc, str, len)


Define Documentation

#define CHECK_VERSION_COMPAT
 

Definition at line 41 of file xml_libxerces/XmlUtils.h.

Referenced by SmbiosTableXml::SmbiosTableXml().

#define compatXmlReadFile parser,
doc,
name   )     do{try{doc = parser->parseURI(name);}catch( const std::exception & ){}}while(0)
 

Definition at line 47 of file xml_libxerces/XmlUtils.h.

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

#define compatXmlReadMemory parser,
doc,
str,
len   ) 
 

Value:

do{ \
        try \
        {   \
            MemBufInputSource* memBufIs = new MemBufInputSource(    \
                reinterpret_cast<const XMLByte*>(stdXml),   \
                len,    \
                "standard_xml", \
                false );   \
            DOMInputSource* Is = new Wrapper4InputSource( memBufIs );   \
            doc = parser->parse( *Is ); \
            delete Is;  \
        }   \
        catch (const std::exception &)\
        {}  \
    }while(0)

Definition at line 52 of file xml_libxerces/XmlUtils.h.

Referenced by smbios::getSmbiosXmlDoc().

#define FiniXML   XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Terminate
 

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

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

#define InitXML   XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::Initialize
 

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

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

#define SETUP_XML_NAMESPACE   XERCES_CPP_NAMESPACE_USE
 

Definition at line 39 of file xml_libxerces/XmlUtils.h.

#define X  )     XMLString::transcode(x)
 

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

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

#define XML_NAMESPACE   XERCES_CPP_NAMESPACE_QUALIFIER
 

Definition at line 40 of file xml_libxerces/XmlUtils.h.

#define xmlDocGetRootElement doc   )     doc->getDocumentElement()
 

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

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

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

Definition at line 45 of file xml_libxerces/XmlUtils.h.

Referenced by SmbiosTableXml::setXmlFilePath(), testRbu::tearDown(), testPlatform::tearDown(), and SmbiosTableXml::~SmbiosTableXml().

#define xmlFreeParser parser   )     do{parser->resetDocumentPool(); parser->release();parser=0;}while(0)
 

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

Referenced by SmbiosTableXml::setXmlFilePath(), testRbu::tearDown(), testPlatform::tearDown(), and SmbiosTableXml::~SmbiosTableXml().


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