class TestStatistics

singleton class used to count the number of test cases that pass / fail

Public Methods

void dump(FILE* file)
Dump the parsed XML tree into a file
void dump()
Dump the parsed XML tree to stdout
static void failed()
called when a test (see below) fails
xmlNodePtr findNode(xmlNodePtr root, const string& name) throw(VBadDataException&)
Finds the very first node from the XML tree that matches the name.
void findNode(xmlNodePtr root, const string& name, list < xmlNodePtr > & retList) throw(VBadDataException&)
Finds the list of nodes that matches the tag in the tree if root=NULL, the top of the tree is taken as root
static int finish(const char* filename)
called by a global object that is constructed in Verify.cxx on finish to output a summary of results
string getAttribute(xmlNodePtr node, const string& attr) throw(VBadDataException&)
Get an attribute for a particular node *
void getContent(const string& tag, const string& subTag, list < string > & retList) throw(VBadDataException&)
Get a tag contents within tree , if tag maches elements in the tree, returns the list if contents e
void getContent(xmlNodePtr root, const string& tag, const string& subTag, list < string > & retList) throw(VBadDataException&)
Get a tag content within a node, if tag maches multiple elements in the DOM tree, return a list e
string getContent(xmlNodePtr root, const string& tag) throw(VBadDataException&)
Get a tag content relative to the node, throws exception if tag is not found
string getContent(const string& tag, const string& subtag) throw(VBadDataException&)
Get a subtag content within a tag, throws exception if tag or subtag is not found
static void passed()
called when a test (see below) passes
VXmlParser(const VFile& fileName) throw(VBadDataException&)
Constructor
VXmlParser(const string& data) throw(VBadDataException&)
Constructor
~VXmlParser()
Destructor

Private Methods

void parseContents(const string& contents) throw(VBadDataException&)
Prase the XML contents and create element tree in memory

Documentation

singleton class used to count the number of test cases that pass / fail
VXmlParser(const VFile& fileName) throw(VBadDataException&)
Constructor

VXmlParser(const string& data) throw(VBadDataException&)
Constructor

~VXmlParser()
Destructor

string getAttribute(xmlNodePtr node, const string& attr) throw(VBadDataException&)
Get an attribute for a particular node *

string getContent(xmlNodePtr root, const string& tag) throw(VBadDataException&)
Get a tag content relative to the node, throws exception if tag is not found

string getContent(const string& tag, const string& subtag) throw(VBadDataException&)
Get a subtag content within a tag, throws exception if tag or subtag is not found

void getContent(const string& tag, const string& subTag, list < string > & retList) throw(VBadDataException&)
Get a tag contents within tree , if tag maches elements in the tree, returns the list if contents e.g.

void getContent(xmlNodePtr root, const string& tag, const string& subTag, list < string > & retList) throw(VBadDataException&)
Get a tag content within a node, if tag maches multiple elements in the DOM tree, return a list e.g.

void dump(FILE* file)
Dump the parsed XML tree into a file

void dump()
Dump the parsed XML tree to stdout

xmlNodePtr findNode(xmlNodePtr root, const string& name) throw(VBadDataException&)
Finds the very first node from the XML tree that matches the name.

void findNode(xmlNodePtr root, const string& name, list < xmlNodePtr > & retList) throw(VBadDataException&)
Finds the list of nodes that matches the tag in the tree if root=NULL, the top of the tree is taken as root

void parseContents(const string& contents) throw(VBadDataException&)
Prase the XML contents and create element tree in memory

static void passed()
called when a test (see below) passes

static void failed()
called when a test (see below) fails

static int finish(const char* filename)
called by a global object that is constructed in Verify.cxx on finish to output a summary of results


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++