Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Functions
TYXMLManager.cpp File Reference
#include <qfile.h>
#include <iostream>
#include "Tympan/core/logging.h"
#include "Tympan/core/exceptions.h"
#include "Tympan/models/business/DOMSave.h"
#include "TYXMLManager.h"
Include dependency graph for TYXMLManager.cpp:

Go to the source code of this file.

Functions

void handle_xml_parsing_error (std::string cause, std::string msg, int err_line, int err_col)
 
QDomDocument parse_xml_file (const QString &filepath)
 
QDomDocument parse_xml_content (const QString &xml_content)
 

Function Documentation

◆ handle_xml_parsing_error()

void handle_xml_parsing_error ( std::string  cause,
std::string  msg,
int  err_line,
int  err_col 
)

Write XML parsing error on std::err and throw a tympan::invalid_data exception

Definition at line 34 of file TYXMLManager.cpp.

Here is the caller graph for this function:

◆ parse_xml_content()

QDomDocument parse_xml_content ( const QString &  xml_content)

Parse XML content from xml_content and return the corresponding QDomDocument.

Definition at line 70 of file TYXMLManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_xml_file()

QDomDocument parse_xml_file ( const QString &  filepath)

Parse XML from file filepath and return the corresponding QDomDocument.

Definition at line 46 of file TYXMLManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: