Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Static Public Member Functions | List of all members
TYXMLTools Class Reference

#include <TYXMLTools.h>

Static Public Member Functions

static void addElementStringValue (DOM_Element &parentElem, DOMString nodeName, DOMString nodeValue)
 
static void addElementUIntValue (DOM_Element &parentElem, DOMString nodeName, unsigned int nodeValue)
 
static void addElementUIntValue (DOM_Element &parentElem, DOMString nodeName, size_t nodeValue)
 
static void addElementUIntValue (DOM_Element &parentElem, DOMString nodeName, unsigned long nodeValue)
 
static void addElementIntValue (DOM_Element &parentElem, DOMString nodeName, int nodeValue)
 
static void addElementBoolValue (DOM_Element &parentElem, DOMString nodeName, bool nodeValue)
 
static void addElementFloatValue (DOM_Element &parentElem, DOMString nodeName, float nodeValue)
 
static void addElementDoubleValue (DOM_Element &parentElem, DOMString nodeName, double nodeValue)
 
static bool getElementStringValue (DOM_Element parentElem, DOMString nodeName, QString &nodeValue)
 
static void getElementStringValue (DOM_Element parentElem, DOMString nodeName, QString &nodeValue, bool &ok)
 
static bool getElementIntValue (DOM_Element parentElem, DOMString nodeName, int &nodeValue)
 
static void getElementIntValue (DOM_Element parentElem, DOMString nodeName, int &nodeValue, bool &ok)
 
static void getElementUIntValue (DOM_Element parentElem, DOMString nodeName, unsigned int &nodeValue, bool &ok)
 
static bool getElementBoolValue (DOM_Element parentElem, DOMString nodeName, bool &nodeValue)
 
static void getElementBoolValue (DOM_Element parentElem, DOMString nodeName, bool &nodeValue, bool &ok)
 
static bool getElementFloatValue (DOM_Element parentElem, DOMString nodeName, float &nodeValue)
 
static void getElementFloatValue (DOM_Element parentElem, DOMString nodeName, float &nodeValue, bool &ok)
 
static bool getElementDoubleValue (DOM_Element parentElem, DOMString nodeName, double &nodeValue)
 
static void getElementDoubleValue (DOM_Element parentElem, DOMString nodeName, double &nodeValue, bool &ok)
 
static QString getElementAttributeToString (DOM_Element parentElem, DOMString attName)
 
static double getElementAttributeToDouble (DOM_Element parentElem, DOMString attName, bool *ok=NULL)
 
static int getElementAttributeToInt (DOM_Element parentElem, DOMString attName, bool *ok=NULL)
 
static unsigned getElementAttributeToUnsigned (DOM_Element parentElem, DOMString attName, bool *ok=NULL)
 

Detailed Description

Methodes outils pour XML.

Definition at line 33 of file TYXMLTools.h.

Member Function Documentation

◆ addElementBoolValue()

void TYXMLTools::addElementBoolValue ( DOM_Element parentElem,
DOMString  nodeName,
bool  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type bool a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 77 of file TYXMLTools.cpp.

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

◆ addElementDoubleValue()

void TYXMLTools::addElementDoubleValue ( DOM_Element parentElem,
DOMString  nodeName,
double  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type double a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 87 of file TYXMLTools.cpp.

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

◆ addElementFloatValue()

void TYXMLTools::addElementFloatValue ( DOM_Element parentElem,
DOMString  nodeName,
float  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type float a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 82 of file TYXMLTools.cpp.

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

◆ addElementIntValue()

void TYXMLTools::addElementIntValue ( DOM_Element parentElem,
DOMString  nodeName,
int  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type int a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 72 of file TYXMLTools.cpp.

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

◆ addElementStringValue()

void TYXMLTools::addElementStringValue ( DOM_Element parentElem,
DOMString  nodeName,
DOMString  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type string a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 24 of file TYXMLTools.cpp.

Here is the caller graph for this function:

◆ addElementUIntValue() [1/3]

void TYXMLTools::addElementUIntValue ( DOM_Element parentElem,
DOMString  nodeName,
size_t  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type size_t a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 48 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ addElementUIntValue() [2/3]

void TYXMLTools::addElementUIntValue ( DOM_Element parentElem,
DOMString  nodeName,
unsigned int  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type unsigned int a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 42 of file TYXMLTools.cpp.

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

◆ addElementUIntValue() [3/3]

void TYXMLTools::addElementUIntValue ( DOM_Element parentElem,
DOMString  nodeName,
unsigned long  nodeValue 
)
static

Ajoute un nouvel element avec une valeur de type unsigned long a un element parent.

Parameters
parentElemL'element XML parent.
nodeNameLe nom du nouvel element XML a ajouter.
nodeValueLa valeur (CDATA) du nouvel element.

Definition at line 53 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ getElementAttributeToDouble()

double TYXMLTools::getElementAttributeToDouble ( DOM_Element  parentElem,
DOMString  attName,
bool *  ok = NULL 
)
static

Retourne l'attribut portant le nom passe du noeud passe sous forme de double.

Parameters
parentElemL'element XML parent.
attNameLe nom de l'element XML a chercher.
okPointeur null par defaut
Returns
La valeur de l'attribut s'il a ete trouve, sinon 0.0.

Definition at line 288 of file TYXMLTools.cpp.

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

◆ getElementAttributeToInt()

int TYXMLTools::getElementAttributeToInt ( DOM_Element  parentElem,
DOMString  attName,
bool *  ok = NULL 
)
static

Retourne l'attribut portant le nom passe du noeud passe sous forme de int.

Parameters
parentElemL'element XML parent.
attNameLe nom de l'element XML a chercher.
okPointeur null par defaut
Returns
La valeur de l'attribut s'il a ete trouve, sinon 0.

Definition at line 293 of file TYXMLTools.cpp.

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

◆ getElementAttributeToString()

QString TYXMLTools::getElementAttributeToString ( DOM_Element  parentElem,
DOMString  attName 
)
static

Retourne l'attribut portant le nom passe du noeud passe sous forme de string.

Parameters
parentElemL'element XML parent.
attNameLe nom de l'element XML a chercher.
Returns
La valeur de l'attribut s'il a ete trouve, sinon une chaine de caractere vide.

Definition at line 276 of file TYXMLTools.cpp.

Here is the caller graph for this function:

◆ getElementAttributeToUnsigned()

unsigned TYXMLTools::getElementAttributeToUnsigned ( DOM_Element  parentElem,
DOMString  attName,
bool *  ok = NULL 
)
static

Definition at line 298 of file TYXMLTools.cpp.

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

◆ getElementBoolValue() [1/2]

bool TYXMLTools::getElementBoolValue ( DOM_Element  parentElem,
DOMString  nodeName,
bool &  nodeValue 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de bool.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
Returns
true si le noeud a ete trouve et la valeur attribuee.

Definition at line 179 of file TYXMLTools.cpp.

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

◆ getElementBoolValue() [2/2]

void TYXMLTools::getElementBoolValue ( DOM_Element  parentElem,
DOMString  nodeName,
bool &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de bool.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 193 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ getElementDoubleValue() [1/2]

bool TYXMLTools::getElementDoubleValue ( DOM_Element  parentElem,
DOMString  nodeName,
double &  nodeValue 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de double.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
Returns
true si le noeud a ete trouve et la valeur attribuee.

Definition at line 243 of file TYXMLTools.cpp.

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

◆ getElementDoubleValue() [2/2]

void TYXMLTools::getElementDoubleValue ( DOM_Element  parentElem,
DOMString  nodeName,
double &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de double.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 258 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ getElementFloatValue() [1/2]

bool TYXMLTools::getElementFloatValue ( DOM_Element  parentElem,
DOMString  nodeName,
float &  nodeValue 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de float.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
Returns
true si le noeud a ete trouve et la valeur attribuee.

Definition at line 211 of file TYXMLTools.cpp.

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

◆ getElementFloatValue() [2/2]

void TYXMLTools::getElementFloatValue ( DOM_Element  parentElem,
DOMString  nodeName,
float &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de float.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 225 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ getElementIntValue() [1/2]

bool TYXMLTools::getElementIntValue ( DOM_Element  parentElem,
DOMString  nodeName,
int &  nodeValue 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de int.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
Returns
true si le noeud a ete trouve et la valeur attribuee.

Definition at line 129 of file TYXMLTools.cpp.

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

◆ getElementIntValue() [2/2]

void TYXMLTools::getElementIntValue ( DOM_Element  parentElem,
DOMString  nodeName,
int &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de int.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 143 of file TYXMLTools.cpp.

Here is the call graph for this function:

◆ getElementStringValue() [1/2]

bool TYXMLTools::getElementStringValue ( DOM_Element  parentElem,
DOMString  nodeName,
QString &  nodeValue 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de string.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
Returns
true si le noeud a ete trouve et la valeur attribuee.

Definition at line 93 of file TYXMLTools.cpp.

Here is the caller graph for this function:

◆ getElementStringValue() [2/2]

void TYXMLTools::getElementStringValue ( DOM_Element  parentElem,
DOMString  nodeName,
QString &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de string.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 110 of file TYXMLTools.cpp.

◆ getElementUIntValue()

void TYXMLTools::getElementUIntValue ( DOM_Element  parentElem,
DOMString  nodeName,
unsigned int &  nodeValue,
bool &  ok 
)
static

Verifie si le noeud passe correspond au nom passe et en extrait la donnee associee sous forme de int.

Parameters
parentElemL'element XML parent.
nodeNameLe nom de l'element XML a chercher.
nodeValueLa valeur a remplir.
okSi ok vaut false le noeud n'est pas parcouru. Sinon, si le noeud a ete trouve, il est mis a true.

Definition at line 161 of file TYXMLTools.cpp.

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

The documentation for this class was generated from the following files: