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

xmlutils Namespace Reference


Functions

DOMBuilder * getParser ()
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)
 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)


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 
 

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

Definition at line 115 of file XmlUtils.cpp.

References DCERR, and safeGetAttribute().

Referenced by findElement(), and findElementWithNumericAttr().

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

Definition at line 62 of file XmlUtils.cpp.

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

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

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

Definition at line 164 of file XmlUtils.cpp.

References findElement().

std::string getNodeText xmlNodePtr  elem  ) 
 

Definition at line 169 of file XmlUtils.cpp.

Referenced by testRbu::getTestInputString(), testPlatform::getTestInputString(), and testPlatform::testVariousAccessors().

int getNumberFromXmlAttr xmlNodePtr  element,
const string  field,
int  base
 

Definition at line 180 of file XmlUtils.cpp.

References safeGetAttribute().

DOMBuilder * getParser  ) 
 

Definition at line 38 of file XmlUtils.cpp.

References DOMBuilder.

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

string safeGetAttribute const xmlNode *  node,
const string &  attr
 

Definition at line 48 of file XmlUtils.cpp.

Referenced by findElement(), and getNumberFromXmlAttr().

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

Definition at line 41 of file XmlUtils.cpp.

References UNREFERENCED_PARAMETER.


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