PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
PXmlAttr Class Reference

Attribute from xml. More...

#include <PXml.h>

+ Collaboration diagram for PXmlAttr:

Public Member Functions

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...
 
PXmlAttroperator= (const PXmlAttr &other)
 Equal operator of the class PXmlAttr. More...
 
 PXmlAttr ()
 Constructor of the class PXmlAttr. More...
 
 PXmlAttr (const PXmlAttr &other)
 Copy constructor of the class PXmlAttr. 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...
 
virtual ~PXmlAttr ()
 Destructor of the class PXmlAttr. More...
 

Private Member Functions

void copyPXmlAttr (const PXmlAttr &other)
 Copy function of the class PXmlAttr. More...
 
void initialisationPXmlAttr ()
 Initialisation function of the class PXmlAttr. More...
 

Private Attributes

size_t p_flag
 Flag of the PXmlAttr. More...
 
PString p_name
 Name of the attribute. More...
 
PString p_value
 Value of the attribute. More...
 

Detailed Description

Attribute from xml.

Definition at line 30 of file PXml.h.

Constructor & Destructor Documentation

◆ PXmlAttr() [1/2]

PXmlAttr::PXmlAttr ( )

Constructor of the class PXmlAttr.

Definition at line 25 of file PXml.cpp.

25  {
27 }
void initialisationPXmlAttr()
Initialisation function of the class PXmlAttr.
Definition: PXml.cpp:101

References initialisationPXmlAttr().

+ Here is the call graph for this function:

◆ PXmlAttr() [2/2]

PXmlAttr::PXmlAttr ( const PXmlAttr other)

Copy constructor of the class PXmlAttr.

Parameters
other: other variable

Definition at line 32 of file PXml.cpp.

32  {
34  copyPXmlAttr(other);
35 }
void copyPXmlAttr(const PXmlAttr &other)
Copy function of the class PXmlAttr.
Definition: PXml.cpp:109

References copyPXmlAttr(), and initialisationPXmlAttr().

+ Here is the call graph for this function:

◆ ~PXmlAttr()

PXmlAttr::~PXmlAttr ( )
virtual

Destructor of the class PXmlAttr.

Definition at line 38 of file PXml.cpp.

38  {
39 
40 }

Member Function Documentation

◆ copyPXmlAttr()

void PXmlAttr::copyPXmlAttr ( const PXmlAttr other)
private

Copy function of the class PXmlAttr.

Parameters
other: other variable

Definition at line 109 of file PXml.cpp.

109  {
110  p_name = other.p_name;
111  p_value = other.p_value;
112 
113 }
PString p_value
Value of the attribute.
Definition: PXml.h:50
PString p_name
Name of the attribute.
Definition: PXml.h:48

References p_name, and p_value.

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

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PXmlAttr::getName ( )

Get the variable p_name.

Returns
Name of the attribute

Definition at line 75 of file PXml.cpp.

75  {
76  return p_name;
77 }

References p_name.

◆ getName() [2/2]

const PString & PXmlAttr::getName ( ) const

Get the variable p_name.

Returns
Name of the attribute

Definition at line 68 of file PXml.cpp.

68  {
69  return p_name;
70 }

References p_name.

Referenced by checkXmlAttr(), and pxml_attrStr().

+ Here is the caller graph for this function:

◆ getValue() [1/2]

PString & PXmlAttr::getValue ( )

Get the variable p_value.

Returns
Value of the attribute

Definition at line 89 of file PXml.cpp.

89  {
90  return p_value;
91 }

References p_value.

◆ getValue() [2/2]

const PString & PXmlAttr::getValue ( ) const

Get the variable p_value.

Returns
Value of the attribute

Definition at line 82 of file PXml.cpp.

82  {
83  return p_value;
84 }

References p_value.

Referenced by checkXmlAttr(), getInkscapeLabel(), loadParserSeq(), and pxml_attrStr().

+ Here is the caller graph for this function:

◆ initialisationPXmlAttr()

void PXmlAttr::initialisationPXmlAttr ( )
private

Initialisation function of the class PXmlAttr.

Definition at line 101 of file PXml.cpp.

101  {
102  p_flag = 0lu;
103 
104 }
size_t p_flag
Flag of the PXmlAttr.
Definition: PXml.h:44

References p_flag.

Referenced by PXmlAttr().

+ Here is the caller graph for this function:

◆ operator=()

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

Equal operator of the class PXmlAttr.

Parameters
other: other variable
Returns
copied Attribute from xml

Definition at line 46 of file PXml.cpp.

46  {
47  copyPXmlAttr(other);
48  return *this;
49 }

References copyPXmlAttr().

+ Here is the call graph for this function:

◆ setName()

void PXmlAttr::setName ( const PString name)

Set the variable p_name, of type 'PString'.

Parameters
name: Name of the attribute

Definition at line 54 of file PXml.cpp.

54  {
55  p_name = name;
56 }

References p_name.

Referenced by checkXmlAttr(), and pxml_parserXmlAttribute().

+ Here is the caller graph for this function:

◆ setValue()

void PXmlAttr::setValue ( const PString value)

Set the variable p_value, of type 'PString'.

Parameters
value: Value of the attribute

Definition at line 61 of file PXml.cpp.

61  {
62  p_value = value;
63 }

References p_value.

Referenced by pxml_parserXmlAttribute().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_flag

size_t PXmlAttr::p_flag
private

Flag of the PXmlAttr.

Definition at line 44 of file PXml.h.

Referenced by initialisationPXmlAttr().

◆ p_name

PString PXmlAttr::p_name
private

Name of the attribute.

Definition at line 48 of file PXml.h.

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

◆ p_value

PString PXmlAttr::p_value
private

Value of the attribute.

Definition at line 50 of file PXml.h.

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


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