![]() |
PhoenixInkscape
2.0.0
Generate multiple png files with svg inkscape files
|
Class used to parse xml. More...
#include <PXml.h>
Public Member Functions | |
bool & | getIsCompact () |
Get the variable p_isCompact. More... | |
bool | getIsCompact () const |
Get the variable p_isCompact. More... | |
bool & | getIsText () |
Get the variable p_isText. More... | |
bool | getIsText () const |
Get the variable p_isText. More... | |
PString & | getName () |
Get the variable p_name. More... | |
const PString & | getName () const |
Get the variable p_name. More... | |
PString & | getValue () |
Get the variable p_value. More... | |
const PString & | getValue () const |
Get the variable p_value. More... | |
std ::vector< PXmlAttr > & | getVecAttr () |
Get the variable p_vecAttr. More... | |
const std ::vector< PXmlAttr > & | getVecAttr () const |
Get the variable p_vecAttr. More... | |
std ::vector< PXml > & | getVecChild () |
Get the variable p_vecChild. More... | |
const std ::vector< PXml > & | getVecChild () const |
Get the variable p_vecChild. More... | |
PXml & | operator= (const PXml &other) |
Equal operator of the class PXml. More... | |
PXml () | |
Constructor of the class PXml. More... | |
PXml (const PXml &other) | |
Copy constructor of the class PXml. More... | |
void | setIsCompact (bool isCompact) |
Set the variable p_isCompact, of type 'bool'. More... | |
void | setIsText (bool isText) |
Set the variable p_isText, of type 'bool'. More... | |
void | setName (const PString &name) |
Set the variable p_name, of type 'PString'. More... | |
void | setValue (const PString &value) |
Set the variable p_value, of type 'PString'. More... | |
void | setVecAttr (const std ::vector< PXmlAttr > &vecAttr) |
Set the variable p_vecAttr, of type 'std ::vector<PXmlAttr>'. More... | |
void | setVecChild (const std ::vector< PXml > &vecChild) |
Set the variable p_vecChild, of type 'std ::vector<PXml>'. More... | |
virtual | ~PXml () |
Destructor of the class PXml. More... | |
Private Member Functions | |
void | copyPXml (const PXml &other) |
Copy function of the class PXml. More... | |
void | initialisationPXml () |
Initialisation function of the class PXml. More... | |
Private Attributes | |
size_t | p_flag |
Flag of the PXml. More... | |
bool | p_isCompact |
Say if the balise is compact or not. More... | |
bool | p_isText |
Say if the balise contains text only. More... | |
PString | p_name |
Name of the class. More... | |
PString | p_value |
Value between the chevron More... | |
std ::vector< PXmlAttr > | p_vecAttr |
Vector of attribute. More... | |
std ::vector< PXml > | p_vecChild |
Child of the current PXml. More... | |
PXml::PXml | ( | ) |
Constructor of the class PXml.
Definition at line 123 of file PXml.cpp.
References initialisationPXml().
PXml::PXml | ( | const PXml & | other | ) |
Copy constructor of the class PXml.
other | : other variable |
Definition at line 130 of file PXml.cpp.
References copyPXml(), and initialisationPXml().
|
virtual |
|
private |
Copy function of the class PXml.
other | : other variable |
Definition at line 295 of file PXml.cpp.
References p_isCompact, p_isText, p_name, p_value, p_vecAttr, and p_vecChild.
Referenced by operator=(), and PXml().
bool & PXml::getIsCompact | ( | ) |
Get the variable p_isCompact.
Definition at line 215 of file PXml.cpp.
References p_isCompact.
bool PXml::getIsCompact | ( | ) | const |
Get the variable p_isCompact.
Definition at line 208 of file PXml.cpp.
References p_isCompact.
Referenced by pxml_baliseStr(), and pxml_parserXmlContent().
bool & PXml::getIsText | ( | ) |
bool PXml::getIsText | ( | ) | const |
Get the variable p_isText.
Definition at line 236 of file PXml.cpp.
References p_isText.
Referenced by checkXmlAttr(), and pxml_baliseStr().
PString & PXml::getName | ( | ) |
const PString & PXml::getName | ( | ) | const |
Get the variable p_name.
Definition at line 194 of file PXml.cpp.
References p_name.
Referenced by checkXmlString(), loadParserSeq(), pxml_baliseStr(), pxml_eraseVecChild(), and pxml_parserXmlContent().
PString & PXml::getValue | ( | ) |
const PString & PXml::getValue | ( | ) | const |
Get the variable p_value.
Definition at line 222 of file PXml.cpp.
References p_value.
Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getFullContent(), and pxml_parserXmlContent().
std::vector< PXmlAttr > & PXml::getVecAttr | ( | ) |
const std::vector< PXmlAttr > & PXml::getVecAttr | ( | ) | const |
Get the variable p_vecAttr.
Definition at line 250 of file PXml.cpp.
References p_vecAttr.
Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getAttrIfExist(), pxml_parserXmlAttribute(), and pxml_setAttr().
std::vector< PXml > & PXml::getVecChild | ( | ) |
Get the variable p_vecChild.
Definition at line 271 of file PXml.cpp.
References p_vecChild.
const std::vector< PXml > & PXml::getVecChild | ( | ) | const |
Get the variable p_vecChild.
Definition at line 264 of file PXml.cpp.
References p_vecChild.
Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getChildIfExist(), pxml_getChildPtr(), pxml_getFullContent(), pxml_getVecChildIfExist(), pxml_parserXmlContent(), saveSlides(), and testCreateXml().
|
private |
Equal operator of the class PXml.
other | : other variable |
Definition at line 144 of file PXml.cpp.
References copyPXml().
void PXml::setIsCompact | ( | bool | isCompact | ) |
Set the variable p_isCompact, of type 'bool'.
isCompact | : Say if the balise is compact or not |
Definition at line 159 of file PXml.cpp.
References p_isCompact.
Referenced by pxml_isAttributeEnd().
void PXml::setIsText | ( | bool | isText | ) |
Set the variable p_isText, of type 'bool'.
isText | : Say if the balise contains text only |
Definition at line 173 of file PXml.cpp.
References p_isText.
Referenced by pxml_parserXmlContent().
void PXml::setName | ( | const PString & | name | ) |
Set the variable p_name, of type 'PString'.
name | : Name of the class |
Definition at line 152 of file PXml.cpp.
References p_name.
Referenced by pxml_eraseVecChild(), pxml_parserContent(), pxml_parserXmlContent(), saveSlides(), and testCreateXml().
void PXml::setValue | ( | const PString & | value | ) |
Set the variable p_value, of type 'PString'.
value | : Value between the chevron |
Definition at line 166 of file PXml.cpp.
References p_value.
Referenced by pxml_eraseVecChild(), and pxml_parserXmlContent().
void PXml::setVecAttr | ( | const std ::vector< PXmlAttr > & | vecAttr | ) |
Set the variable p_vecAttr, of type 'std ::vector<PXmlAttr>'.
vecAttr | : Vector of attribute |
Definition at line 180 of file PXml.cpp.
References p_vecAttr.
Referenced by checkXmlAttr(), and pxml_eraseVecChild().
void PXml::setVecChild | ( | const std ::vector< PXml > & | vecChild | ) |
Set the variable p_vecChild, of type 'std ::vector<PXml>'.
vecChild | : Child of the current PXml |
Definition at line 187 of file PXml.cpp.
References p_vecChild.
Referenced by checkXmlAttr().
|
private |
|
private |
Say if the balise is compact or not.
Definition at line 86 of file PXml.h.
Referenced by copyPXml(), getIsCompact(), initialisationPXml(), and setIsCompact().
|
private |
Say if the balise contains text only.
Definition at line 90 of file PXml.h.
Referenced by copyPXml(), getIsText(), initialisationPXml(), and setIsText().
|
private |
Name of the class.
Definition at line 84 of file PXml.h.
Referenced by copyPXml(), getName(), and setName().
|
private |
Value between the chevron
Definition at line 88 of file PXml.h.
Referenced by copyPXml(), getValue(), and setValue().
|
private |
Vector of attribute.
Definition at line 92 of file PXml.h.
Referenced by copyPXml(), getVecAttr(), and setVecAttr().
|
private |
Child of the current PXml.
Definition at line 94 of file PXml.h.
Referenced by copyPXml(), getVecChild(), and setVecChild().