PandA-2024.02
|
XML DOM parser. More...
#include <xml_dom_parser.hpp>
Public Member Functions | |
XMLDomParser (const std::string &name, const std::string &string_to_be_parsed) | |
Constructor from string. More... | |
XMLDomParser (const std::string &filename) | |
Constructor from file. More... | |
void | Exec () |
Parse an XML document from a file. More... | |
operator bool () const | |
Test whether a document has been parsed. More... | |
xml_documentRef | get_document () |
Obtain the parsed document. More... | |
const xml_documentRef | get_document () const |
Obtain the parsed document. More... | |
Protected Attributes | |
const std::string | name |
The name of the parsed file or of the string. More... | |
const std::string | to_be_parsed |
The string to be parsed or the name for the file to be parsed. More... | |
xml_documentRef | doc |
The data structure extracted from the file. More... | |
XML DOM parser.
Definition at line 61 of file xml_dom_parser.hpp.
XMLDomParser::XMLDomParser | ( | const std::string & | _name, |
const std::string & | string_to_be_parsed | ||
) |
Constructor from string.
Header include.
name | is the name of the string |
string_to_be_parsed | is the string to be parsed |
Utility include
Definition at line 50 of file xml_dom_parser.cpp.
|
explicit |
Constructor from file.
filename | is the file to be parsed |
Definition at line 56 of file xml_dom_parser.cpp.
void XMLDomParser::Exec | ( | ) |
Parse an XML document from a file.
filename | The path to the file. |
Referenced by HLS_constraints::add_builtin_constraints(), LoadDeviceTechnology::Exec(), LoadDefaultTechnology::Exec(), Translator::get_normalization(), HLS_constraints::HLS_constraints(), mem_dominator_allocation::Initialize(), Parameter::load_xml_configuration_file(), DataXmlParser::Parse(), HLS_constraints::read_HLS_constraints_File(), read_structural_File(), read_technology_File(), CompilerWrapper::readExternalSymbols(), CompilerWrapper::ReadXml(), XilinxBackendFlow::vivado_xparse_utilization(), Translator::write_to_latex(), XilinxBackendFlow::xparse_timing(), AlteraBackendFlow::xparse_utilization(), LatticeBackendFlow::xparse_utilization(), BashBackendFlow::xparse_utilization(), NanoXploreBackendFlow::xparse_utilization(), and XilinxBackendFlow::xparse_xst_utilization().
xml_documentRef XMLDomParser::get_document | ( | ) |
Obtain the parsed document.
Definition at line 65 of file xml_dom_parser.cpp.
References doc.
Referenced by HLS_constraints::add_builtin_constraints(), LoadDeviceTechnology::Exec(), LoadDefaultTechnology::Exec(), Translator::get_normalization(), HLS_constraints::HLS_constraints(), mem_dominator_allocation::Initialize(), Parameter::load_xml_configuration_file(), DataXmlParser::Parse(), HLS_constraints::read_HLS_constraints_File(), read_structural_File(), read_technology_File(), CompilerWrapper::readExternalSymbols(), CompilerWrapper::ReadXml(), XilinxBackendFlow::vivado_xparse_utilization(), Translator::write_to_latex(), XilinxBackendFlow::xparse_timing(), AlteraBackendFlow::xparse_utilization(), LatticeBackendFlow::xparse_utilization(), BashBackendFlow::xparse_utilization(), NanoXploreBackendFlow::xparse_utilization(), and XilinxBackendFlow::xparse_xst_utilization().
const xml_documentRef XMLDomParser::get_document | ( | ) | const |
Obtain the parsed document.
Const version.
Definition at line 70 of file xml_dom_parser.cpp.
References doc.
XMLDomParser::operator bool | ( | ) | const |
Test whether a document has been parsed.
Definition at line 60 of file xml_dom_parser.cpp.
References doc.
|
protected |
The data structure extracted from the file.
Definition at line 71 of file xml_dom_parser.hpp.
Referenced by get_document(), and operator bool().
|
protected |
The name of the parsed file or of the string.
Definition at line 65 of file xml_dom_parser.hpp.
|
protected |
The string to be parsed or the name for the file to be parsed.
Definition at line 68 of file xml_dom_parser.hpp.