PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
PXml Class Reference

Class used to parse xml. More...

#include <PXml.h>

+ Collaboration diagram for PXml:

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...
 
PStringgetName ()
 Get the variable p_name. More...
 
const PStringgetName () const
 Get the variable p_name. More...
 
PStringgetValue ()
 Get the variable p_value. More...
 
const PStringgetValue () 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...
 
PXmloperator= (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< PXmlAttrp_vecAttr
 Vector of attribute. More...
 
std ::vector< PXmlp_vecChild
 Child of the current PXml. More...
 

Detailed Description

Class used to parse xml.

Definition at line 54 of file PXml.h.

Constructor & Destructor Documentation

◆ PXml() [1/2]

PXml::PXml ( )

Constructor of the class PXml.

Definition at line 123 of file PXml.cpp.

123  {
125 }
void initialisationPXml()
Initialisation function of the class PXml.
Definition: PXml.cpp:283

References initialisationPXml().

+ Here is the call graph for this function:

◆ PXml() [2/2]

PXml::PXml ( const PXml other)

Copy constructor of the class PXml.

Parameters
other: other variable

Definition at line 130 of file PXml.cpp.

130  {
132  copyPXml(other);
133 }
void copyPXml(const PXml &other)
Copy function of the class PXml.
Definition: PXml.cpp:295

References copyPXml(), and initialisationPXml().

+ Here is the call graph for this function:

◆ ~PXml()

PXml::~PXml ( )
virtual

Destructor of the class PXml.

Definition at line 136 of file PXml.cpp.

136  {
137 
138 }

Member Function Documentation

◆ copyPXml()

void PXml::copyPXml ( const PXml other)
private

Copy function of the class PXml.

Parameters
other: other variable

Definition at line 295 of file PXml.cpp.

295  {
296  p_name = other.p_name;
297  p_isCompact = other.p_isCompact;
298  p_value = other.p_value;
299  p_isText = other.p_isText;
300  p_vecAttr = other.p_vecAttr;
301  p_vecChild = other.p_vecChild;
302 
303 }
bool p_isText
Say if the balise contains text only.
Definition: PXml.h:90
PString p_name
Name of the class.
Definition: PXml.h:84
bool p_isCompact
Say if the balise is compact or not.
Definition: PXml.h:86
std ::vector< PXmlAttr > p_vecAttr
Vector of attribute.
Definition: PXml.h:92
std ::vector< PXml > p_vecChild
Child of the current PXml.
Definition: PXml.h:94
PString p_value
Value between the chevron
Definition: PXml.h:88

References p_isCompact, p_isText, p_name, p_value, p_vecAttr, and p_vecChild.

Referenced by operator=(), and PXml().

+ Here is the caller graph for this function:

◆ getIsCompact() [1/2]

bool & PXml::getIsCompact ( )

Get the variable p_isCompact.

Returns
Say if the balise is compact or not

Definition at line 215 of file PXml.cpp.

215  {
216  return p_isCompact;
217 }

References p_isCompact.

◆ getIsCompact() [2/2]

bool PXml::getIsCompact ( ) const

Get the variable p_isCompact.

Returns
Say if the balise is compact or not

Definition at line 208 of file PXml.cpp.

208  {
209  return p_isCompact;
210 }

References p_isCompact.

Referenced by pxml_baliseStr(), and pxml_parserXmlContent().

+ Here is the caller graph for this function:

◆ getIsText() [1/2]

bool & PXml::getIsText ( )

Get the variable p_isText.

Returns
Say if the balise contains text only

Definition at line 243 of file PXml.cpp.

243  {
244  return p_isText;
245 }

References p_isText.

◆ getIsText() [2/2]

bool PXml::getIsText ( ) const

Get the variable p_isText.

Returns
Say if the balise contains text only

Definition at line 236 of file PXml.cpp.

236  {
237  return p_isText;
238 }

References p_isText.

Referenced by checkXmlAttr(), and pxml_baliseStr().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PXml::getName ( )

Get the variable p_name.

Returns
Name of the class

Definition at line 201 of file PXml.cpp.

201  {
202  return p_name;
203 }

References p_name.

◆ getName() [2/2]

const PString & PXml::getName ( ) const

Get the variable p_name.

Returns
Name of the class

Definition at line 194 of file PXml.cpp.

194  {
195  return p_name;
196 }

References p_name.

Referenced by checkXmlString(), loadParserSeq(), pxml_baliseStr(), pxml_eraseVecChild(), and pxml_parserXmlContent().

+ Here is the caller graph for this function:

◆ getValue() [1/2]

PString & PXml::getValue ( )

Get the variable p_value.

Returns
Value between the chevron

Definition at line 229 of file PXml.cpp.

229  {
230  return p_value;
231 }

References p_value.

◆ getValue() [2/2]

const PString & PXml::getValue ( ) const

Get the variable p_value.

Returns
Value between the chevron

Definition at line 222 of file PXml.cpp.

222  {
223  return p_value;
224 }

References p_value.

Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getFullContent(), and pxml_parserXmlContent().

+ Here is the caller graph for this function:

◆ getVecAttr() [1/2]

std::vector< PXmlAttr > & PXml::getVecAttr ( )

Get the variable p_vecAttr.

Returns
Vector of attribute

Definition at line 257 of file PXml.cpp.

257  {
258  return p_vecAttr;
259 }

References p_vecAttr.

◆ getVecAttr() [2/2]

const std::vector< PXmlAttr > & PXml::getVecAttr ( ) const

Get the variable p_vecAttr.

Returns
Vector of attribute

Definition at line 250 of file PXml.cpp.

250  {
251  return p_vecAttr;
252 }

References p_vecAttr.

Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getAttrIfExist(), pxml_parserXmlAttribute(), and pxml_setAttr().

+ Here is the caller graph for this function:

◆ getVecChild() [1/2]

std::vector< PXml > & PXml::getVecChild ( )

Get the variable p_vecChild.

Returns
Child of the current PXml

Definition at line 271 of file PXml.cpp.

271  {
272  return p_vecChild;
273 }

References p_vecChild.

◆ getVecChild() [2/2]

const std::vector< PXml > & PXml::getVecChild ( ) const

Get the variable p_vecChild.

Returns
Child of the current PXml

Definition at line 264 of file PXml.cpp.

264  {
265  return p_vecChild;
266 }

References p_vecChild.

Referenced by pxml_baliseStr(), pxml_eraseVecChild(), pxml_getChildIfExist(), pxml_getChildPtr(), pxml_getFullContent(), pxml_getVecChildIfExist(), pxml_parserXmlContent(), saveSlides(), and testCreateXml().

+ Here is the caller graph for this function:

◆ initialisationPXml()

void PXml::initialisationPXml ( )
private

Initialisation function of the class PXml.

Say if the balise is compact or not

Say if the balise contains text only

Definition at line 283 of file PXml.cpp.

283  {
284  p_flag = 0lu;
286  p_isCompact = 0;
288  p_isText = 0;
289 
290 }
size_t p_flag
Flag of the PXml.
Definition: PXml.h:80

References p_flag, p_isCompact, and p_isText.

Referenced by PXml().

+ Here is the caller graph for this function:

◆ operator=()

PXml & PXml::operator= ( const PXml other)

Equal operator of the class PXml.

Parameters
other: other variable
Returns
copied Class used to parse xml

Definition at line 144 of file PXml.cpp.

144  {
145  copyPXml(other);
146  return *this;
147 }

References copyPXml().

+ Here is the call graph for this function:

◆ setIsCompact()

void PXml::setIsCompact ( bool  isCompact)

Set the variable p_isCompact, of type 'bool'.

Parameters
isCompact: Say if the balise is compact or not

Definition at line 159 of file PXml.cpp.

159  {
160  p_isCompact = isCompact;
161 }

References p_isCompact.

Referenced by pxml_isAttributeEnd().

+ Here is the caller graph for this function:

◆ setIsText()

void PXml::setIsText ( bool  isText)

Set the variable p_isText, of type 'bool'.

Parameters
isText: Say if the balise contains text only

Definition at line 173 of file PXml.cpp.

173  {
174  p_isText = isText;
175 }

References p_isText.

Referenced by pxml_parserXmlContent().

+ Here is the caller graph for this function:

◆ setName()

void PXml::setName ( const PString name)

Set the variable p_name, of type 'PString'.

Parameters
name: Name of the class

Definition at line 152 of file PXml.cpp.

152  {
153  p_name = name;
154 }

References p_name.

Referenced by pxml_eraseVecChild(), pxml_parserContent(), pxml_parserXmlContent(), saveSlides(), and testCreateXml().

+ Here is the caller graph for this function:

◆ setValue()

void PXml::setValue ( const PString value)

Set the variable p_value, of type 'PString'.

Parameters
value: Value between the chevron

Definition at line 166 of file PXml.cpp.

166  {
167  p_value = value;
168 }

References p_value.

Referenced by pxml_eraseVecChild(), and pxml_parserXmlContent().

+ Here is the caller graph for this function:

◆ setVecAttr()

void PXml::setVecAttr ( const std ::vector< PXmlAttr > &  vecAttr)

Set the variable p_vecAttr, of type 'std ::vector<PXmlAttr>'.

Parameters
vecAttr: Vector of attribute

Definition at line 180 of file PXml.cpp.

180  {
181  p_vecAttr = vecAttr;
182 }

References p_vecAttr.

Referenced by checkXmlAttr(), and pxml_eraseVecChild().

+ Here is the caller graph for this function:

◆ setVecChild()

void PXml::setVecChild ( const std ::vector< PXml > &  vecChild)

Set the variable p_vecChild, of type 'std ::vector<PXml>'.

Parameters
vecChild: Child of the current PXml

Definition at line 187 of file PXml.cpp.

187  {
188  p_vecChild = vecChild;
189 }

References p_vecChild.

Referenced by checkXmlAttr().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_flag

size_t PXml::p_flag
private

Flag of the PXml.

Definition at line 80 of file PXml.h.

Referenced by initialisationPXml().

◆ p_isCompact

bool PXml::p_isCompact
private

Say if the balise is compact or not.

Definition at line 86 of file PXml.h.

Referenced by copyPXml(), getIsCompact(), initialisationPXml(), and setIsCompact().

◆ p_isText

bool PXml::p_isText
private

Say if the balise contains text only.

Definition at line 90 of file PXml.h.

Referenced by copyPXml(), getIsText(), initialisationPXml(), and setIsText().

◆ p_name

PString PXml::p_name
private

Name of the class.

Definition at line 84 of file PXml.h.

Referenced by copyPXml(), getName(), and setName().

◆ p_value

PString PXml::p_value
private

Value between the chevron

Definition at line 88 of file PXml.h.

Referenced by copyPXml(), getValue(), and setValue().

◆ p_vecAttr

std ::vector<PXmlAttr> PXml::p_vecAttr
private

Vector of attribute.

Definition at line 92 of file PXml.h.

Referenced by copyPXml(), getVecAttr(), and setVecAttr().

◆ p_vecChild

std ::vector<PXml> PXml::p_vecChild
private

Child of the current PXml.

Definition at line 94 of file PXml.h.

Referenced by copyPXml(), getVecChild(), and setVecChild().


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