![]() |
PhoenixGenerator
2.0.0
Set of tools to generate code
|
Describes a class attribute. More...
#include <PClassAttribute.h>
Public Member Functions | |
PString & | getDefaultValue () |
Gets the defaultValue of the PClassAttribute. More... | |
const PString & | getDefaultValue () const |
Gets the defaultValue of the PClassAttribute. More... | |
PString & | getDocumentation () |
Gets the documentation of the PClassAttribute. More... | |
const PString & | getDocumentation () 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... | |
PString & | getName () |
Gets the name of the PClassAttribute. More... | |
const PString & | getName () const |
Gets the name of the PClassAttribute. More... | |
PString & | getType () |
Gets the type of the PClassAttribute. More... | |
const PString & | getType () const |
Gets the type of the PClassAttribute. More... | |
PClassAttribute & | operator= (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... | |
Describes a class attribute.
Definition at line 13 of file PClassAttribute.h.
PClassAttribute::PClassAttribute | ( | ) |
Constructor of class PClassAttribute.
Definition at line 11 of file PClassAttribute.cpp.
References initialisationPClassAttribute().
PClassAttribute::PClassAttribute | ( | const PClassAttribute & | other | ) |
Copy Constructor of class PClassAttribute.
other | : PClassAttribute we want ot copy |
Definition at line 18 of file PClassAttribute.cpp.
References copyPClassAttribute().
|
virtual |
Destructor of class PClassAttribute.
Definition at line 23 of file PClassAttribute.cpp.
|
protected |
Copy Function of class PClassAttribute.
other | : PClassAttribute we want ot copy |
Definition at line 186 of file PClassAttribute.cpp.
References p_defaultValue, p_documentation, p_isEnum, p_isPointer, p_isReference, p_name, and p_type.
Referenced by operator=(), and PClassAttribute().
PString & PClassAttribute::getDefaultValue | ( | ) |
Gets the defaultValue of the PClassAttribute.
Definition at line 123 of file PClassAttribute.cpp.
References p_defaultValue.
const PString & PClassAttribute::getDefaultValue | ( | ) | const |
Gets the defaultValue of the PClassAttribute.
Definition at line 116 of file PClassAttribute.cpp.
References p_defaultValue.
PString & PClassAttribute::getDocumentation | ( | ) |
Gets the documentation of the PClassAttribute.
Definition at line 165 of file PClassAttribute.cpp.
References p_documentation.
const PString & PClassAttribute::getDocumentation | ( | ) | const |
Gets the documentation of the PClassAttribute.
Definition at line 158 of file PClassAttribute.cpp.
References p_documentation.
Referenced by project_wrapper_attributeDef().
bool & PClassAttribute::getIsEnum | ( | ) |
Gets the isEnum of the PClassAttribute.
Definition at line 179 of file PClassAttribute.cpp.
References p_isEnum.
bool PClassAttribute::getIsEnum | ( | ) | const |
Gets the isEnum of the PClassAttribute.
Definition at line 172 of file PClassAttribute.cpp.
References p_isEnum.
Referenced by project_wrapper_classAttributeFromMessage(), project_wrapper_classAttributeGetSize(), project_wrapper_classAttributeToMessage(), pythonAssertTestValue(), and pythonDefaultTestValue().
bool & PClassAttribute::getIsPointer | ( | ) |
Gets the isPointer of the PClassAttribute.
Definition at line 137 of file PClassAttribute.cpp.
References p_isPointer.
bool PClassAttribute::getIsPointer | ( | ) | const |
Gets the isPointer of the PClassAttribute.
Definition at line 130 of file PClassAttribute.cpp.
References p_isPointer.
bool & PClassAttribute::getIsReference | ( | ) |
Gets the isReference of the PClassAttribute.
Definition at line 151 of file PClassAttribute.cpp.
References p_isReference.
bool PClassAttribute::getIsReference | ( | ) | const |
Gets the isReference of the PClassAttribute.
Definition at line 144 of file PClassAttribute.cpp.
References p_isReference.
PString & PClassAttribute::getName | ( | ) |
Gets the name of the PClassAttribute.
Definition at line 109 of file PClassAttribute.cpp.
References p_name.
const PString & PClassAttribute::getName | ( | ) | const |
Gets the name of the PClassAttribute.
Definition at line 102 of file PClassAttribute.cpp.
References p_name.
Referenced by project_wrapper_attributeDef(), project_wrapper_callAttributeCheck(), project_wrapper_classAttributeFromMessage(), project_wrapper_classAttributeGetSize(), project_wrapper_classAttributeToMessage(), project_wrapper_classGetterSetterDef(), pythonAssertTestValue(), and pythonDefaultTestValue().
PString & PClassAttribute::getType | ( | ) |
Gets the type of the PClassAttribute.
Definition at line 95 of file PClassAttribute.cpp.
References p_type.
const PString & PClassAttribute::getType | ( | ) | const |
Gets the type of the PClassAttribute.
Definition at line 88 of file PClassAttribute.cpp.
References p_type.
Referenced by project_wrapper_attributeDef(), project_wrapper_callAttributeCheck(), project_wrapper_classAttributeFromMessage(), project_wrapper_classAttributeGetSize(), project_wrapper_classAttributeToMessage(), project_wrapper_classGetterSetterDef(), pythonAssertTestValue(), and pythonDefaultTestValue().
|
private |
Initialisation Function of class PClassAttribute.
Definition at line 197 of file PClassAttribute.cpp.
References p_defaultValue, p_documentation, p_isEnum, p_isPointer, p_isReference, p_name, and p_type.
Referenced by PClassAttribute().
PClassAttribute & PClassAttribute::operator= | ( | const PClassAttribute & | other | ) |
Operator = of class PClassAttribute.
other | : PClassAttribute we want ot copy |
Definition at line 31 of file PClassAttribute.cpp.
References copyPClassAttribute().
void PClassAttribute::setDefaultValue | ( | const PString & | defaultValue | ) |
Sets the defaultValue of the PClassAttribute.
defaultValue | : defaultValue of the PClassAttribute |
Definition at line 53 of file PClassAttribute.cpp.
References p_defaultValue.
Referenced by parseEnumValue().
void PClassAttribute::setDocumentation | ( | const PString & | documentation | ) |
Sets the documentation of the PClassAttribute.
documentation | : documentation of the PClassAttribute |
Definition at line 74 of file PClassAttribute.cpp.
References p_documentation.
Referenced by createClassAttribute().
void PClassAttribute::setIsEnum | ( | bool | isEnum | ) |
Sets the isEnum of the PClassAttribute.
isEnum | : isEnum of the PClassAttribute |
Definition at line 81 of file PClassAttribute.cpp.
References p_isEnum.
void PClassAttribute::setIsPointer | ( | bool | isPointer | ) |
Sets the isPointer of the PClassAttribute.
isPointer | : isPointer of the PClassAttribute |
Definition at line 60 of file PClassAttribute.cpp.
References p_isPointer.
Referenced by createClassAttribute().
void PClassAttribute::setIsReference | ( | bool | isReference | ) |
Sets the isReference of the PClassAttribute.
isReference | : isReference of the PClassAttribute |
Definition at line 67 of file PClassAttribute.cpp.
References p_isReference.
Referenced by createClassAttribute().
void PClassAttribute::setName | ( | const PString & | name | ) |
Sets the name of the PClassAttribute.
name | : name of the PClassAttribute |
Definition at line 46 of file PClassAttribute.cpp.
References p_name.
Referenced by createClassAttribute().
void PClassAttribute::setType | ( | const PString & | type | ) |
Sets the type of the PClassAttribute.
type | : type of the PClassAttribute |
Definition at line 39 of file PClassAttribute.cpp.
References p_type.
Referenced by createClassAttribute().
|
private |
Default value of the attribute.
Definition at line 49 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getDefaultValue(), initialisationPClassAttribute(), and setDefaultValue().
|
private |
Documentation string.
Definition at line 55 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getDocumentation(), initialisationPClassAttribute(), and setDocumentation().
|
private |
True if the PClassAttribute is an enum.
Definition at line 57 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getIsEnum(), initialisationPClassAttribute(), and setIsEnum().
|
private |
true if is a pointer
Definition at line 51 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getIsPointer(), initialisationPClassAttribute(), and setIsPointer().
|
private |
True if it is a reference.
Definition at line 53 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getIsReference(), initialisationPClassAttribute(), and setIsReference().
|
private |
Name of the attribute.
Definition at line 47 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getName(), initialisationPClassAttribute(), and setName().
|
private |
Type of the attribute.
Definition at line 45 of file PClassAttribute.h.
Referenced by copyPClassAttribute(), getType(), initialisationPClassAttribute(), and setType().