PhoenixXml  0.1.0
Xml parser for Phoenix
Loading...
Searching...
No Matches
PXmlAttr Class Reference

Attribute from xml. More...

#include <PXml.h>

Public Member Functions

PString & getName ()
 Get the variable p_name.
 
const PString & getName () const
 Get the variable p_name.
 
PString & getValue ()
 Get the variable p_value.
 
const PString & getValue () const
 Get the variable p_value.
 
PXmlAttroperator= (const PXmlAttr &other)
 Equal operator of the class PXmlAttr.
 
 PXmlAttr ()
 Constructor of the class PXmlAttr.
 
 PXmlAttr (const PXmlAttr &other)
 Copy constructor of the class PXmlAttr.
 
void setName (const PString &name)
 Set the variable p_name, of type 'PString'.
 
void setValue (const PString &value)
 Set the variable p_value, of type 'PString'.
 
virtual ~PXmlAttr ()
 Destructor of the class PXmlAttr.
 

Private Member Functions

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

Private Attributes

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

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().

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

+ Here is the call graph for this function:
+ Here is the caller 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(), initialisationPXmlAttr(), and PXmlAttr().

+ 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, p_value, and PXmlAttr().

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

+ Here is the call graph for this function:
+ 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 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 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(), and 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(), and PXmlAttr().

+ 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 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(), 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(), getValue(), and setValue().


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