PhoenixGenerator  2.0.0
Set of tools to generate code
PClassAttribute Class Reference

Describes a class attribute. More...

#include <PClassAttribute.h>

+ Collaboration diagram for PClassAttribute:

Public Member Functions

PStringgetDefaultValue ()
 Gets the defaultValue of the PClassAttribute. More...
 
const PStringgetDefaultValue () const
 Gets the defaultValue of the PClassAttribute. More...
 
PStringgetDocumentation ()
 Gets the documentation of the PClassAttribute. More...
 
const PStringgetDocumentation () const
 Gets the documentation of the PClassAttribute. More...
 
bool & getIsEnum ()
 Gets the isEnum of the PClassAttribute. More...
 
bool getIsEnum () const
 Gets the isEnum of the PClassAttribute. More...
 
bool & getIsPointer ()
 Gets the isPointer of the PClassAttribute. More...
 
bool getIsPointer () const
 Gets the isPointer of the PClassAttribute. More...
 
bool & getIsReference ()
 Gets the isReference of the PClassAttribute. More...
 
bool getIsReference () const
 Gets the isReference of the PClassAttribute. More...
 
PStringgetName ()
 Gets the name of the PClassAttribute. More...
 
const PStringgetName () const
 Gets the name of the PClassAttribute. More...
 
PStringgetType ()
 Gets the type of the PClassAttribute. More...
 
const PStringgetType () const
 Gets the type of the PClassAttribute. More...
 
PClassAttributeoperator= (const PClassAttribute &other)
 Operator = of class PClassAttribute. More...
 
 PClassAttribute ()
 Constructor of class PClassAttribute. More...
 
 PClassAttribute (const PClassAttribute &other)
 Copy Constructor of class PClassAttribute. More...
 
void setDefaultValue (const PString &defaultValue)
 Sets the defaultValue of the PClassAttribute. More...
 
void setDocumentation (const PString &documentation)
 Sets the documentation of the PClassAttribute. More...
 
void setIsEnum (bool isEnum)
 Sets the isEnum of the PClassAttribute. More...
 
void setIsPointer (bool isPointer)
 Sets the isPointer of the PClassAttribute. More...
 
void setIsReference (bool isReference)
 Sets the isReference of the PClassAttribute. More...
 
void setName (const PString &name)
 Sets the name of the PClassAttribute. More...
 
void setType (const PString &type)
 Sets the type of the PClassAttribute. More...
 
virtual ~PClassAttribute ()
 Destructor of class PClassAttribute. More...
 

Protected Member Functions

void copyPClassAttribute (const PClassAttribute &other)
 Copy Function of class PClassAttribute. More...
 

Private Member Functions

void initialisationPClassAttribute ()
 Initialisation Function of class PClassAttribute. More...
 

Private Attributes

PString p_defaultValue
 Default value of the attribute. More...
 
PString p_documentation
 Documentation string. More...
 
bool p_isEnum
 True if the PClassAttribute is an enum. More...
 
bool p_isPointer
 true if is a pointer More...
 
bool p_isReference
 True if it is a reference. More...
 
PString p_name
 Name of the attribute. More...
 
PString p_type
 Type of the attribute. More...
 

Detailed Description

Describes a class attribute.

Definition at line 13 of file PClassAttribute.h.

Constructor & Destructor Documentation

◆ PClassAttribute() [1/2]

PClassAttribute::PClassAttribute ( )

Constructor of class PClassAttribute.

Definition at line 11 of file PClassAttribute.cpp.

11  {
13 }
void initialisationPClassAttribute()
Initialisation Function of class PClassAttribute.

References initialisationPClassAttribute().

+ Here is the call graph for this function:

◆ PClassAttribute() [2/2]

PClassAttribute::PClassAttribute ( const PClassAttribute other)

Copy Constructor of class PClassAttribute.

Parameters
other: PClassAttribute we want ot copy

Definition at line 18 of file PClassAttribute.cpp.

18  {
19  copyPClassAttribute(other);
20 }
void copyPClassAttribute(const PClassAttribute &other)
Copy Function of class PClassAttribute.

References copyPClassAttribute().

+ Here is the call graph for this function:

◆ ~PClassAttribute()

PClassAttribute::~PClassAttribute ( )
virtual

Destructor of class PClassAttribute.

Definition at line 23 of file PClassAttribute.cpp.

23  {
24 
25 }

Member Function Documentation

◆ copyPClassAttribute()

void PClassAttribute::copyPClassAttribute ( const PClassAttribute other)
protected

Copy Function of class PClassAttribute.

Parameters
other: PClassAttribute we want ot copy

Definition at line 186 of file PClassAttribute.cpp.

186  {
187  p_type = other.p_type;
188  p_name = other.p_name;
190  p_isPointer = other.p_isPointer;
193  p_isEnum = other.p_isEnum;
194 }
bool p_isPointer
true if is a pointer
PString p_defaultValue
Default value of the attribute.
PString p_documentation
Documentation string.
PString p_name
Name of the attribute.
PString p_type
Type of the attribute.
bool p_isEnum
True if the PClassAttribute is an enum.
bool p_isReference
True if it is a reference.

References p_defaultValue, p_documentation, p_isEnum, p_isPointer, p_isReference, p_name, and p_type.

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

+ Here is the caller graph for this function:

◆ getDefaultValue() [1/2]

PString & PClassAttribute::getDefaultValue ( )

Gets the defaultValue of the PClassAttribute.

Returns
defaultValue of the PClassAttribute

Definition at line 123 of file PClassAttribute.cpp.

123  {
124  return p_defaultValue;
125 }

References p_defaultValue.

◆ getDefaultValue() [2/2]

const PString & PClassAttribute::getDefaultValue ( ) const

Gets the defaultValue of the PClassAttribute.

Returns
defaultValue of the PClassAttribute

Definition at line 116 of file PClassAttribute.cpp.

116  {
117  return p_defaultValue;
118 }

References p_defaultValue.

◆ getDocumentation() [1/2]

PString & PClassAttribute::getDocumentation ( )

Gets the documentation of the PClassAttribute.

Returns
documentation of the PClassAttribute

Definition at line 165 of file PClassAttribute.cpp.

165  {
166  return p_documentation;
167 }

References p_documentation.

◆ getDocumentation() [2/2]

const PString & PClassAttribute::getDocumentation ( ) const

Gets the documentation of the PClassAttribute.

Returns
documentation of the PClassAttribute

Definition at line 158 of file PClassAttribute.cpp.

158  {
159  return p_documentation;
160 }

References p_documentation.

Referenced by project_wrapper_attributeDef().

+ Here is the caller graph for this function:

◆ getIsEnum() [1/2]

bool & PClassAttribute::getIsEnum ( )

Gets the isEnum of the PClassAttribute.

Returns
isEnum of the PClassAttribute

Definition at line 179 of file PClassAttribute.cpp.

179  {
180  return p_isEnum;
181 }

References p_isEnum.

◆ getIsEnum() [2/2]

bool PClassAttribute::getIsEnum ( ) const

Gets the isEnum of the PClassAttribute.

Returns
isEnum of the PClassAttribute

Definition at line 172 of file PClassAttribute.cpp.

172  {
173  return p_isEnum;
174 }

References p_isEnum.

Referenced by project_wrapper_classAttributeFromMessage(), project_wrapper_classAttributeGetSize(), project_wrapper_classAttributeToMessage(), pythonAssertTestValue(), and pythonDefaultTestValue().

+ Here is the caller graph for this function:

◆ getIsPointer() [1/2]

bool & PClassAttribute::getIsPointer ( )

Gets the isPointer of the PClassAttribute.

Returns
isPointer of the PClassAttribute

Definition at line 137 of file PClassAttribute.cpp.

137  {
138  return p_isPointer;
139 }

References p_isPointer.

◆ getIsPointer() [2/2]

bool PClassAttribute::getIsPointer ( ) const

Gets the isPointer of the PClassAttribute.

Returns
isPointer of the PClassAttribute

Definition at line 130 of file PClassAttribute.cpp.

130  {
131  return p_isPointer;
132 }

References p_isPointer.

◆ getIsReference() [1/2]

bool & PClassAttribute::getIsReference ( )

Gets the isReference of the PClassAttribute.

Returns
isReference of the PClassAttribute

Definition at line 151 of file PClassAttribute.cpp.

151  {
152  return p_isReference;
153 }

References p_isReference.

◆ getIsReference() [2/2]

bool PClassAttribute::getIsReference ( ) const

Gets the isReference of the PClassAttribute.

Returns
isReference of the PClassAttribute

Definition at line 144 of file PClassAttribute.cpp.

144  {
145  return p_isReference;
146 }

References p_isReference.

◆ getName() [1/2]

PString & PClassAttribute::getName ( )

Gets the name of the PClassAttribute.

Returns
name of the PClassAttribute

Definition at line 109 of file PClassAttribute.cpp.

109  {
110  return p_name;
111 }

References p_name.

◆ getName() [2/2]

const PString & PClassAttribute::getName ( ) const

◆ getType() [1/2]

PString & PClassAttribute::getType ( )

Gets the type of the PClassAttribute.

Returns
type of the PClassAttribute

Definition at line 95 of file PClassAttribute.cpp.

95  {
96  return p_type;
97 }

References p_type.

◆ getType() [2/2]

const PString & PClassAttribute::getType ( ) const

◆ initialisationPClassAttribute()

void PClassAttribute::initialisationPClassAttribute ( )
private

Initialisation Function of class PClassAttribute.

Definition at line 197 of file PClassAttribute.cpp.

197  {
198  p_type = "";
199  p_name = "";
200  p_defaultValue = "";
201  p_isPointer = false;
202  p_isReference = false;
203  p_documentation = "";
204  p_isEnum = false;
205 }

References p_defaultValue, p_documentation, p_isEnum, p_isPointer, p_isReference, p_name, and p_type.

Referenced by PClassAttribute().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PClassAttribute.

Parameters
other: PClassAttribute we want ot copy
Returns
copied class PClassAttribute

Definition at line 31 of file PClassAttribute.cpp.

31  {
32  copyPClassAttribute(other);
33  return *this;
34 }

References copyPClassAttribute().

+ Here is the call graph for this function:

◆ setDefaultValue()

void PClassAttribute::setDefaultValue ( const PString defaultValue)

Sets the defaultValue of the PClassAttribute.

Parameters
defaultValue: defaultValue of the PClassAttribute

Definition at line 53 of file PClassAttribute.cpp.

53  {
54  p_defaultValue = defaultValue;
55 }

References p_defaultValue.

Referenced by parseEnumValue().

+ Here is the caller graph for this function:

◆ setDocumentation()

void PClassAttribute::setDocumentation ( const PString documentation)

Sets the documentation of the PClassAttribute.

Parameters
documentation: documentation of the PClassAttribute

Definition at line 74 of file PClassAttribute.cpp.

74  {
75  p_documentation = documentation;
76 }

References p_documentation.

Referenced by createClassAttribute().

+ Here is the caller graph for this function:

◆ setIsEnum()

void PClassAttribute::setIsEnum ( bool  isEnum)

Sets the isEnum of the PClassAttribute.

Parameters
isEnum: isEnum of the PClassAttribute

Definition at line 81 of file PClassAttribute.cpp.

81  {
82  p_isEnum = isEnum;
83 }

References p_isEnum.

◆ setIsPointer()

void PClassAttribute::setIsPointer ( bool  isPointer)

Sets the isPointer of the PClassAttribute.

Parameters
isPointer: isPointer of the PClassAttribute

Definition at line 60 of file PClassAttribute.cpp.

60  {
61  p_isPointer = isPointer;
62 }

References p_isPointer.

Referenced by createClassAttribute().

+ Here is the caller graph for this function:

◆ setIsReference()

void PClassAttribute::setIsReference ( bool  isReference)

Sets the isReference of the PClassAttribute.

Parameters
isReference: isReference of the PClassAttribute

Definition at line 67 of file PClassAttribute.cpp.

67  {
68  p_isReference = isReference;
69 }

References p_isReference.

Referenced by createClassAttribute().

+ Here is the caller graph for this function:

◆ setName()

void PClassAttribute::setName ( const PString name)

Sets the name of the PClassAttribute.

Parameters
name: name of the PClassAttribute

Definition at line 46 of file PClassAttribute.cpp.

46  {
47  p_name = name;
48 }

References p_name.

Referenced by createClassAttribute().

+ Here is the caller graph for this function:

◆ setType()

void PClassAttribute::setType ( const PString type)

Sets the type of the PClassAttribute.

Parameters
type: type of the PClassAttribute

Definition at line 39 of file PClassAttribute.cpp.

39  {
40  p_type = type;
41 }

References p_type.

Referenced by createClassAttribute().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_defaultValue

PString PClassAttribute::p_defaultValue
private

Default value of the attribute.

Definition at line 49 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getDefaultValue(), initialisationPClassAttribute(), and setDefaultValue().

◆ p_documentation

PString PClassAttribute::p_documentation
private

Documentation string.

Definition at line 55 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getDocumentation(), initialisationPClassAttribute(), and setDocumentation().

◆ p_isEnum

bool PClassAttribute::p_isEnum
private

True if the PClassAttribute is an enum.

Definition at line 57 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getIsEnum(), initialisationPClassAttribute(), and setIsEnum().

◆ p_isPointer

bool PClassAttribute::p_isPointer
private

true if is a pointer

Definition at line 51 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getIsPointer(), initialisationPClassAttribute(), and setIsPointer().

◆ p_isReference

bool PClassAttribute::p_isReference
private

True if it is a reference.

Definition at line 53 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getIsReference(), initialisationPClassAttribute(), and setIsReference().

◆ p_name

PString PClassAttribute::p_name
private

Name of the attribute.

Definition at line 47 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getName(), initialisationPClassAttribute(), and setName().

◆ p_type

PString PClassAttribute::p_type
private

Type of the attribute.

Definition at line 45 of file PClassAttribute.h.

Referenced by copyPClassAttribute(), getType(), initialisationPClassAttribute(), and setType().


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