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)
std::string safeGetAttribute (const xmlNode *node, const std::string &attr)
xmlNodePtr findElement (xmlNodePtr root, const std::string elementName, const std::string &attribute, const std::string &value)
xmlNodePtr findElementWithNumericAttr (xmlNodePtr root, const std::string elementName, const std::string &attribute, long value)
int getNumberFromXmlAttr (xmlNodePtr element, const std::string field, int base)


Function Documentation

xmlutils::DECLARE_EXCEPTION ( XmlUtilsException   ) 

xmlutils::DECLARE_EXCEPTION_EX ( Invalid  ,
xmlutils  ,
XmlUtilsException   
)

xmlutils::DECLARE_EXCEPTION_EX ( NotFound  ,
xmlutils  ,
XmlUtilsException   
)

xmlutils::DEFINE_EXCEPTION_EX ( InvalidImpl  ,
xmlutils  ,
Invalid   
)

xmlutils::DEFINE_EXCEPTION_EX ( NotFoundImpl  ,
xmlutils  ,
NotFound   
)

xmlNodePtr xmlutils::findElement ( xmlNodePtr  root,
const std::string  elementName,
const std::string &  attribute,
const std::string &  value 
)

xmlNodePtr xmlutils::findElement ( xmlNodePtr  root,
const string  elementName,
const string &  attribute,
long  value 
)

Definition at line 115 of file XmlUtils.cpp.

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

xmlNodePtr xmlutils::findElement ( xmlNodePtr  root,
const string  elementName,
const string &  attribute,
const string &  value 
)

xmlNodePtr xmlutils::findElementWithNumericAttr ( xmlNodePtr  root,
const std::string  elementName,
const std::string &  attribute,
long  value 
)

xmlNodePtr xmlutils::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 testPlatform::testVariousAccessors().

int xmlutils::getNumberFromXmlAttr ( xmlNodePtr  element,
const std::string  field,
int  base 
)

int xmlutils::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.

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

std::string xmlutils::safeGetAttribute ( const xmlNode *  node,
const std::string &  attr 
)

string xmlutils::safeGetAttribute ( const xmlNode *  node,
const string &  attr 
)

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

Definition at line 41 of file XmlUtils.cpp.

References UNREFERENCED_PARAMETER.


Generated on Sun Jun 8 20:40:06 2008 for SMBIOS Library by  doxygen 1.5.5