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

XmlUtils.cpp File Reference

#include "XmlUtils.h"

Go to the source code of this file.

Namespaces

namespace  xmlutils

Defines

#define LIBSMBIOS_SOURCE
#define DCOUT(line)   do {} while(0)
#define DCERR(line)   do {} while(0)

Functions

void suppressLibxmlWarnings (void *ctx, const char *msg,...)
string safeGetAttribute (const xmlNode *node, const string &attr)
xmlNodePtr findElement (xmlNodePtr root, const string elementName, const string &attribute, const string &value)
xmlNodePtr findElement (xmlNodePtr root, const string elementName, const string &attribute, long value)
xmlNodePtr findElementWithNumericAttr (xmlNodePtr root, const string elementName, const string &attribute, long value)
string getNodeText (xmlNodePtr elem)
int getNumberFromXmlAttr (xmlNodePtr element, const string field, int base)


Define Documentation

#define DCERR line   )     do {} while(0)
 

Definition at line 30 of file XmlUtils.cpp.

#define DCOUT line   )     do {} while(0)
 

Definition at line 29 of file XmlUtils.cpp.

#define LIBSMBIOS_SOURCE
 

Definition at line 19 of file XmlUtils.cpp.


Function Documentation

xmlNodePtr findElement xmlNodePtr  root,
const string  elementName,
const string &  attribute,
long  value
 

Definition at line 115 of file XmlUtils.cpp.

References DCERR, and xmlutils::safeGetAttribute().

Referenced by xmlutils::findElement(), xmlutils::findElementWithNumericAttr(), smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getString_FromItem(), smbios::getStringForType(), and smbios::getTypeForString().

xmlNodePtr findElement xmlNodePtr  root,
const string  elementName,
const string &  attribute,
const string &  value
 

Definition at line 62 of file XmlUtils.cpp.

References DCERR, xmlutils::findElement(), and xmlutils::safeGetAttribute().

xmlNodePtr findElementWithNumericAttr xmlNodePtr  root,
const string  elementName,
const string &  attribute,
long  value
 

Definition at line 164 of file XmlUtils.cpp.

References xmlutils::findElement().

Referenced by smbios::getBits_FromItem(), smbios::getData_UsingXml(), smbios::getString_FromItem(), and smbios::getStringForType().

std::string getNodeText xmlNodePtr  elem  ) 
 

Definition at line 169 of file XmlUtils.cpp.

int getNumberFromXmlAttr xmlNodePtr  element,
const string  field,
int  base
 

Definition at line 180 of file XmlUtils.cpp.

References xmlutils::safeGetAttribute().

Referenced by smbios::getBits_FromItem(), smbios::getData_UsingXml(), and smbios::getString_FromItem().

string safeGetAttribute const xmlNode *  node,
const string &  attr
 

Definition at line 48 of file XmlUtils.cpp.

Referenced by xmlutils::findElement(), xmlutils::getNumberFromXmlAttr(), smbios::getStringForType(), smbios::getTypeForString(), smbios::printStructureField(), and smbios::verifyElementAttr().

void suppressLibxmlWarnings void *  ctx,
const char *  msg,
  ...
 

Definition at line 41 of file XmlUtils.cpp.

References UNREFERENCED_PARAMETER.


Generated on Thu Jun 21 02:49:21 2007 for SMBIOS Library by  doxygen 1.3.9.1