SAX2Wrapper Class Reference

SAX2Wrapper is used to construct the appropriate UAP tree from an SAX file. More...

#include <SAX2Wrapper.hpp>

Collaboration diagram for SAX2Wrapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SAX2Wrapper ()
 Creates an SAX reader.
 ~SAX2Wrapper ()
 Destructor.
bool XMLFileToUAPRep (const std::string &file_name, UAPNode *root, bool convert=true)
 Reads in an XML file (or files if there are include statements) and constructs the appropriate UAP tree.


Detailed Description

SAX2Wrapper is used to construct the appropriate UAP tree from an SAX file.

Author:
David Sagan

Definition at line 45 of file SAX2Wrapper.hpp.


Member Function Documentation

bool SAX2Wrapper::XMLFileToUAPRep ( const std::string &  file_name,
UAPNode root,
bool  convert = true 
)

Reads in an XML file (or files if there are include statements) and constructs the appropriate UAP tree.

The constructed UAP tree has the root <UAPRoot> which in turn has the node <input>. Each child of the <input> is named <file> and contains the information from one SAX input file. Note: The name component of a UAPNode node will be the XML localname. Not the XML qname.

Parameters:
file_name The XML file to use.
root The root node for building the UAP tree. If Null then a root node will be created.
convert Converts entities like "&amp;" to "&". return True if there are no errors in parsing. False otherwise

Definition at line 23 of file SAX2Wrapper.cpp.


Generated on Fri Feb 12 15:47:57 2010 for Universal Accelerator Parser by  doxygen 1.5.7