AMLReader Class Reference

AMLReader is used to construct the appropriate UAP tree from an AML file. More...

#include <AMLReader.hpp>

List of all members.

Public Member Functions

 AMLReader ()
 Creates an AML reader.
 ~AMLReader ()
 Destructor.
UAPNodeAMLFileToAMLRep (const std::string &file_name)
 Reads in an AML file (or files if there are include statements) and constructs the appropriate UAP tree.
UAPNodeAMLRepToAMLFile (UAPNode *root_node, const std::string &file_name="", bool one_file=false)
 Creates a AML file (or files if there are include statements) from an AML_representation tree.


Detailed Description

AMLReader is used to construct the appropriate UAP tree from an AML file.

Author:
David Sagan

Definition at line 44 of file AMLReader.hpp.


Member Function Documentation

UAPNode * AMLReader::AMLFileToAMLRep ( const std::string &  file_name  ) 

Reads in an AML 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 child node <AML_representation>. The sub-tree of <AML_representation> contains the information from the input file.

Parameters:
file_name The AML file to read in.
Returns:
The <UAPRoot> node

Definition at line 35 of file AMLReader.cpp.

UAPNode * AMLReader::AMLRepToAMLFile ( UAPNode root_node,
const std::string &  file_name = "",
bool  one_file = false 
)

Creates a AML file (or files if there are include statements) from an AML_representation tree.

Parameters:
root_node May be a <AML_representation> node or a <UAP_root> node.
file_name The root AML file to create. If not present or "" then the original file name will be used.
one_file If true then concatinate everything into one file. Default is false.
Returns:
<AML_representation> node.

Definition at line 112 of file AMLReader.cpp.


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