![]() |
|
PhoenixXml
1.0.0
Xml parser for Phoenix
|
Include dependency graph for pxml_utils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef std::vector< PXml > | PVecXml |
| Vector of PXml. | |
| typedef std::vector< PXmlAttr > | PVecXmlAttr |
| Vector of PXml. | |
Functions | |
| PString | pxml_attrStr (const PXmlAttr &xmlAttr, bool isSvg=false) |
| Convert attribute in string. | |
| PString | pxml_baliseStr (const PXml &xml, bool isSvg=false) |
| Convert xml in string. | |
| PXml | pxml_eraseVecChild (const PXml &xml, const PString &childName) |
| Erase the childs of the current xml if it has childName as name. | |
| bool | pxml_getAttrIfExist (PXmlAttr &attr, const PXml &xml, const PString &attrName) |
| Get the attribute with given name if exist. | |
| bool | pxml_getChildIfExist (PXml &match, const PXml &xml, const PString &childName) |
| Get the child with given name if exist. | |
| PXml * | pxml_getChildPtr (PXml &xml, const PString &childName) |
| Get the child with given name if exist. | |
| PString | pxml_getFullContent (const PXml &xml) |
| Get the content of the PXml (children or value) | |
| bool | pxml_getVecChildIfExist (PVecXml &vecMatch, const PXml &xml, const PString &childName) |
| Get the vector of childs with given name if exist. | |
| bool | pxml_parserContent (PXml &xml, const PString &fileContent, bool isSvg=false) |
| Parse a PXml with a file content. | |
| bool | pxml_parserFile (PXml &xml, const PPath &fileName, bool isSvg=false) |
| Parse a PXml with a file. | |
| bool | pxml_parserXmlAttribute (PXml &parent, PFileParser &parser) |
| Parse the attribute of a xml balise. | |
| bool | pxml_parserXmlContent (PXml &parent, PFileParser &parser, bool isMainBalise=false) |
| Parse the content of an xml balise. | |
| bool | pxml_saveFile (const PPath &fileName, const PXml &xml, bool isSvg=false) |
| Save a xml in a file. | |
| void | pxml_setAttr (PXml &xml, const PString &nameAttr, const PString &valueAttr) |
| Set a value to an attribute. | |
| PFileParser | pxml_setXmlParser (const PString &fileContent, bool isSvg=false) |
| Set the PFileParser for xml. | |
| PString | pxml_vecAttrStr (const PVecXmlAttr &vecXmlAttr, bool isSvg) |
| Convert attributes in string. | |
| PString | pxml_vecXmlStr (const PVecXml &vecXml, bool isSvg=false) |
| Convert a vecto of xml in string. | |
Vector of PXml.
Definition at line 14 of file pxml_utils.h.
| typedef std::vector<PXmlAttr> PVecXmlAttr |
Vector of PXml.
Definition at line 16 of file pxml_utils.h.
| PString pxml_attrStr | ( | const PXmlAttr & | xmlAttr, |
| bool | isSvg ) |
Convert attribute in string.
| xmlAttr | : xml attribute to be converted into string |
| isSvg | : say if the output xml has to be SVG like (with no space between chevron and newline between attribute |
Definition at line 368 of file pxml_utils.cpp.
References PXmlAttr::getName(), and PXmlAttr::getValue().
Referenced by pxml_vecAttrStr().
Here is the call graph for this function:
Here is the caller graph for this function:| PString pxml_baliseStr | ( | const PXml & | xml, |
| bool | isSvg ) |
Convert xml in string.
| xml | : xml to be converted into string |
| isSvg | : say if the output xml has to be SVG like (with no space between chevron and newline between attribute |
Definition at line 318 of file pxml_utils.cpp.
References PXml::getIsCompact(), PXml::getIsText(), PXml::getName(), PXml::getValue(), PXml::getVecAttr(), PXml::getVecChild(), pxml_vecAttrStr(), and pxml_vecXmlStr().
Referenced by pxml_saveFile(), and pxml_vecXmlStr().
Here is the call graph for this function:
Here is the caller graph for this function:Erase the childs of the current xml if it has childName as name.
| xml | : current input |
| childName | : name of the childs to be erased |
Definition at line 288 of file pxml_utils.cpp.
References PXml::getName(), PXml::getValue(), PXml::getVecAttr(), PXml::getVecChild(), PXml::setName(), PXml::setValue(), and PXml::setVecAttr().
Here is the call graph for this function:Get the attribute with given name if exist.
| [out] | attr | : vector of matched child |
| xml | : xml input | |
| attrName | : name of the searched child |
Definition at line 251 of file pxml_utils.cpp.
References PXml::getVecAttr().
Referenced by loadParserSeq().
Here is the call graph for this function:
Here is the caller graph for this function:Get the child with given name if exist.
| [out] | match | : matched child |
| xml | : xml input | |
| childName | : name of the searched child |
Definition at line 215 of file pxml_utils.cpp.
References PXml::getVecChild().
Here is the call graph for this function:Get the child with given name if exist.
| xml | : xml input |
| childName | : name of the searched child |
Definition at line 234 of file pxml_utils.cpp.
References PXml::getVecChild().
Here is the call graph for this function:| PString pxml_getFullContent | ( | const PXml & | xml | ) |
Get the content of the PXml (children or value)
| xml | : PXml to be used |
Definition at line 395 of file pxml_utils.cpp.
References PXml::getValue(), PXml::getVecChild(), and pxml_vecXmlStr().
Referenced by loadParserSeq().
Here is the call graph for this function:
Here is the caller graph for this function:Get the vector of childs with given name if exist.
| [out] | vecMatch | : vector of matched childs |
| xml | : xml input | |
| childName | : name of the searched childs |
Definition at line 197 of file pxml_utils.cpp.
References PXml::getVecChild().
Referenced by loadParserSeq().
Here is the call graph for this function:
Here is the caller graph for this function:| bool pxml_parserContent | ( | PXml & | xml, |
| const PString & | fileContent, | ||
| bool | isSvg ) |
Parse a PXml with a file content.
| [out] | xml | : PXml to be initialised |
| fileContent | : file content | |
| isSvg | : true if the parsed file is a svg |
Definition at line 48 of file pxml_utils.cpp.
References pxml_parserXmlContent(), pxml_setXmlParser(), and PXml::setName().
Referenced by pxml_parserFile().
Here is the call graph for this function:
Here is the caller graph for this function:| bool pxml_parserFile | ( | PXml & | xml, |
| const PPath & | fileName, | ||
| bool | isSvg ) |
Parse a PXml with a file.
| [out] | xml | : PXml to be initialised |
| fileName | : name of the intialisation file | |
| isSvg | : true if the parsed file is a svg |
Definition at line 38 of file pxml_utils.cpp.
References pxml_parserContent().
Here is the call graph for this function:| bool pxml_parserXmlAttribute | ( | PXml & | parent, |
| PFileParser & | parser ) |
Parse the attribute of a xml balise.
| [out] | parent | : xml parent in wich to put the attribute |
| [out] | parser | : parser to be used |
Definition at line 79 of file pxml_utils.cpp.
References ALLOWED_ATTRIBUTE_CHAR, PXml::getVecAttr(), pxml_isAttributeEnd(), PXmlAttr::setName(), and PXmlAttr::setValue().
Referenced by pxml_parserXmlContent().
Here is the call graph for this function:
Here is the caller graph for this function:| bool pxml_parserXmlContent | ( | PXml & | parent, |
| PFileParser & | parser, | ||
| bool | isMainBalise ) |
Parse the content of an xml balise.
| [out] | parent | : xml parent in wich to put the content |
| [out] | parser | : parser to be used |
| isMainBalise | : true if the parent balise if the main one, false otherwise |
Definition at line 115 of file pxml_utils.cpp.
References ALLOWED_BALISE_CHAR, PXml::getIsCompact(), PXml::getName(), PXml::getValue(), PXml::getVecChild(), pxml_parserXmlAttribute(), pxml_parserXmlContent(), PXml::setIsText(), PXml::setName(), and PXml::setValue().
Referenced by pxml_parserContent(), and pxml_parserXmlContent().
Here is the call graph for this function:
Here is the caller graph for this function:| bool pxml_saveFile | ( | const PPath & | fileName, |
| const PXml & | xml, | ||
| bool | isSvg ) |
Save a xml in a file.
| fileName | : name of the output file |
| xml | : xml to be saved |
| isSvg | : say if the output xml has to be SVG like (with no space between chevron and newline between attribute |
Definition at line 308 of file pxml_utils.cpp.
References pxml_baliseStr().
Here is the call graph for this function:| void pxml_setAttr | ( | PXml & | xml, |
| const PString & | nameAttr, | ||
| const PString & | valueAttr ) |
Set a value to an attribute.
| [out] | xml | : xml to be modified |
| nameAttr | : name of the attribute | |
| valueAttr | : value of the attribute |
Definition at line 270 of file pxml_utils.cpp.
References PXml::getVecAttr().
Here is the call graph for this function:| PFileParser pxml_setXmlParser | ( | const PString & | fileContent, |
| bool | isSvg ) |
Set the PFileParser for xml.
| fileContent | : content to be parsed |
| isSvg | : true if the parsed file is a svg |
Definition at line 20 of file pxml_utils.cpp.
Referenced by pxml_parserContent().
Here is the caller graph for this function:| PString pxml_vecAttrStr | ( | const PVecXmlAttr & | vecXmlAttr, |
| bool | isSvg ) |
Convert attributes in string.
| vecXmlAttr | : xml attributes to be converted into string |
| isSvg | : say if the output xml has to be SVG like (with no space between chevron and newline between attribute |
Definition at line 382 of file pxml_utils.cpp.
References pxml_attrStr().
Referenced by pxml_baliseStr().
Here is the call graph for this function:
Here is the caller graph for this function:| PString pxml_vecXmlStr | ( | const PVecXml & | vecXml, |
| bool | isSvg ) |
Convert a vecto of xml in string.
| vecXml | : vecor of xml to be converted into string |
| isSvg | : say if the output xml has to be SVG like (with no space between chevron and newline between attribute |
Definition at line 355 of file pxml_utils.cpp.
References pxml_baliseStr().
Referenced by pxml_baliseStr(), and pxml_getFullContent().
Here is the call graph for this function:
Here is the caller graph for this function: