![]() |
PhoenixGenerator
2.0.0
Set of tools to generate code
|
Class to describe a basic class. More...
#include <PClassConfig.h>
Public Member Functions | |
void | addAttribute (const PClassAttribute &attribute) |
Adds an attribute to the class. More... | |
void | addListAttribute (const std::vector< PClassAttribute > &listAttribute) |
Adds a list of attributes to the class. More... | |
void | addListParentClass (const PVecString &listParentClass) |
Add a parent classes to the PClassConfig. More... | |
void | addListTemplate (const PVecString &listTemplate) |
Add a template to the PClassConfig. More... | |
void | addParentClass (const PString &parentClass) |
Add a parent class to the PClassConfig. More... | |
void | addTemplate (const PString &defTemplate) |
Add a template to the PClassConfig. More... | |
PString & | getClassDocumentation () |
Returns the class documentation. More... | |
const PString & | getClassDocumentation () const |
Returns the class documentation. More... | |
bool | getIsEnum () const |
Say if the current PClassConfig is an enum. More... | |
std::vector< PClassAttribute > & | getListAttribute () |
Returns the list of attributes of the class. More... | |
const std::vector< PClassAttribute > & | getListAttribute () const |
Returns the list of attributes of the class. More... | |
PVecString & | getListParentClass () |
Returns the list of the parents of the class. More... | |
const PVecString & | getListParentClass () const |
Returns the list of the parents of the class. More... | |
PVecString & | getListTemplate () |
Returns the list of the template of the class. More... | |
const PVecString & | getListTemplate () const |
Returns the list of the template of the class. More... | |
PString & | getName () |
Returns the class name. More... | |
const PString & | getName () const |
Returns the class name. More... | |
PClassConfig & | operator= (const PClassConfig &other) |
Definition of equal operator of PClassConfig. More... | |
PClassConfig () | |
Default constructeur of PClassConfig. More... | |
PClassConfig (const PClassConfig &other) | |
Copy constructor of PClassConfig. More... | |
void | setClassDocumentation (const PString &classDocumentation) |
Sets the class documentation. More... | |
void | setIsEnum (bool isEnum) |
Set if the current PClassConfig is an enum. More... | |
void | setListAttribute (const std::vector< PClassAttribute > &listAttribute) |
Sets the list of attributes of the class. More... | |
void | setListTemplate (const PVecString &listTemplate) |
Sets the list of template of the class. More... | |
void | setName (const PString &name) |
Sets the class name. More... | |
virtual | ~PClassConfig () |
Destructeur of PClassConfig. More... | |
Protected Member Functions | |
void | copyPClassConfig (const PClassConfig &other) |
Copy function of PClassConfig. More... | |
Private Member Functions | |
void | initialisationPClassConfig () |
Initialisation function of the class PClassConfig. More... | |
Private Attributes | |
PString | p_classDocumentation |
Class documentation. More... | |
bool | p_isEnum |
True if it is an enum. More... | |
std::vector< PClassAttribute > | p_listAttribute |
List of the attribute of the class. More... | |
PVecString | p_listParentClass |
List of the parent classes of the current class. More... | |
PVecString | p_listTemplate |
List of the template definition of the current class. More... | |
PString | p_name |
Name of the class. More... | |
Class to describe a basic class.
Definition at line 14 of file PClassConfig.h.
PClassConfig::PClassConfig | ( | ) |
Default constructeur of PClassConfig.
Definition at line 11 of file PClassConfig.cpp.
References initialisationPClassConfig().
PClassConfig::PClassConfig | ( | const PClassConfig & | other | ) |
Copy constructor of PClassConfig.
other | : class to copy |
Definition at line 18 of file PClassConfig.cpp.
References copyPClassConfig().
|
virtual |
void PClassConfig::addAttribute | ( | const PClassAttribute & | attribute | ) |
Adds an attribute to the class.
attribute | : attribute to add to the class |
Definition at line 67 of file PClassConfig.cpp.
References p_listAttribute.
Referenced by addListAttribute(), parseClassConfigAttribut(), and parseEnumValue().
void PClassConfig::addListAttribute | ( | const std::vector< PClassAttribute > & | listAttribute | ) |
Adds a list of attributes to the class.
listAttribute | : list of attributes to add to the class |
Definition at line 74 of file PClassConfig.cpp.
References addAttribute().
void PClassConfig::addListParentClass | ( | const PVecString & | listParentClass | ) |
Add a parent classes to the PClassConfig.
listParentClass | : list of parent classes we want to add in the PClassConfig |
Definition at line 90 of file PClassConfig.cpp.
References addParentClass().
void PClassConfig::addListTemplate | ( | const PVecString & | listTemplate | ) |
Add a template to the PClassConfig.
listTemplate | : list of templates we want to add in the PClassConfig |
Definition at line 106 of file PClassConfig.cpp.
References addTemplate().
void PClassConfig::addParentClass | ( | const PString & | parentClass | ) |
Add a parent class to the PClassConfig.
parentClass | : parent class we want to add in the PClassConfig |
Definition at line 83 of file PClassConfig.cpp.
References p_listParentClass.
Referenced by addListParentClass(), and parseParentOfClassConfig().
void PClassConfig::addTemplate | ( | const PString & | defTemplate | ) |
Add a template to the PClassConfig.
defTemplate | : template we want to add in the PClassConfig |
Definition at line 99 of file PClassConfig.cpp.
References p_listTemplate.
Referenced by addListTemplate().
|
protected |
Copy function of PClassConfig.
other | : class to copy |
Definition at line 177 of file PClassConfig.cpp.
References p_classDocumentation, p_isEnum, p_listAttribute, p_listParentClass, p_listTemplate, and p_name.
Referenced by operator=(), and PClassConfig().
PString & PClassConfig::getClassDocumentation | ( | ) |
Returns the class documentation.
Definition at line 137 of file PClassConfig.cpp.
References p_classDocumentation.
const PString & PClassConfig::getClassDocumentation | ( | ) | const |
Returns the class documentation.
Definition at line 132 of file PClassConfig.cpp.
References p_classDocumentation.
Referenced by project_wrapper_classImplPythonType(), project_wrapper_enumImplPythonType(), project_wrapper_moduleGeneratorWrapperHeaderStructDef(), saveClassDecl(), and saveEnumDecl().
bool PClassConfig::getIsEnum | ( | ) | const |
Say if the current PClassConfig is an enum.
Definition at line 172 of file PClassConfig.cpp.
References p_isEnum.
Referenced by project_wrapper_classTest().
std::vector< PClassAttribute > & PClassConfig::getListAttribute | ( | ) |
Returns the list of attributes of the class.
Definition at line 147 of file PClassConfig.cpp.
References p_listAttribute.
const std::vector< PClassAttribute > & PClassConfig::getListAttribute | ( | ) | const |
Returns the list of attributes of the class.
Definition at line 142 of file PClassConfig.cpp.
References p_listAttribute.
Referenced by createCheckClassEquality(), createTestClassCopy(), project_wrapper_classImpl(), project_wrapper_classImplCheck(), project_wrapper_classImplDealloc(), project_wrapper_classImplGetterSetter(), project_wrapper_classImplNewc(), project_wrapper_classPythonFromBytes(), project_wrapper_classPythonGetSizeInBytes(), project_wrapper_classPythonToBytes(), project_wrapper_classTest(), project_wrapper_dataStreamMethod(), project_wrapper_enumImpl(), project_wrapper_enumImplNewc(), project_wrapper_moduleGeneratorWrapperHeaderStructDef(), saveClassCopyFunctionImpl(), saveClassDataStreamMethod(), saveClassDecl(), saveClassGettersImpl(), saveClassInitialisationFunctionImpl(), saveClassSettersImpl(), saveDeclGetters(), saveDeclSetters(), and saveEnumDecl().
PVecString & PClassConfig::getListParentClass | ( | ) |
Returns the list of the parents of the class.
Definition at line 157 of file PClassConfig.cpp.
References p_listParentClass.
const PVecString & PClassConfig::getListParentClass | ( | ) | const |
Returns the list of the parents of the class.
Definition at line 152 of file PClassConfig.cpp.
References p_listParentClass.
Referenced by saveClassConstructorImpl(), and saveClassDecl().
PVecString & PClassConfig::getListTemplate | ( | ) |
Returns the list of the template of the class.
Definition at line 167 of file PClassConfig.cpp.
References p_listTemplate.
const PVecString & PClassConfig::getListTemplate | ( | ) | const |
Returns the list of the template of the class.
Definition at line 162 of file PClassConfig.cpp.
References p_listTemplate.
Referenced by saveClassDecl(), saveClassGetTypeNameImpl(), and saveClassTemplate().
PString & PClassConfig::getName | ( | ) |
Returns the class name.
Definition at line 127 of file PClassConfig.cpp.
References p_name.
const PString & PClassConfig::getName | ( | ) | const |
Returns the class name.
Definition at line 122 of file PClassConfig.cpp.
References p_name.
Referenced by createCheckClassEquality(), createTestClassCopy(), parsePClassConfig(), project_wrapper_classImpl(), project_wrapper_classImplCheck(), project_wrapper_classImplDealloc(), project_wrapper_classImplGetterSetter(), project_wrapper_classImplNewc(), project_wrapper_classImplPythonType(), project_wrapper_classTest(), project_wrapper_enumImpl(), project_wrapper_enumImplNewc(), project_wrapper_enumImplPythonType(), project_wrapper_moduleGeneratorWrapperHeaderEnumDef(), project_wrapper_moduleGeneratorWrapperHeaderStructDef(), saveClassConstructorImpl(), saveClassCopyConstructorImpl(), saveClassCopyFunctionImpl(), saveClassDataStreamGenericFunction(), saveClassDataStreamMethod(), saveClassDecl(), saveClassDestructorImpl(), saveClassEqualOperatorImpl(), saveClassGettersImpl(), saveClassGetTypeNameImpl(), saveClassInitialisationFunctionImpl(), saveClassSettersImpl(), saveClassTest(), saveClassTestCMakeLists(), saveClassTestMain(), and saveEnumDecl().
|
private |
Initialisation function of the class PClassConfig.
Definition at line 187 of file PClassConfig.cpp.
References p_isEnum.
Referenced by PClassConfig().
PClassConfig & PClassConfig::operator= | ( | const PClassConfig & | other | ) |
Definition of equal operator of PClassConfig.
other | : class to copy |
Definition at line 31 of file PClassConfig.cpp.
References copyPClassConfig().
void PClassConfig::setClassDocumentation | ( | const PString & | classDocumentation | ) |
Sets the class documentation.
classDocumentation | : class documentation |
Definition at line 39 of file PClassConfig.cpp.
References p_classDocumentation.
Referenced by parseEnumConfig(), and parsePClassConfig().
void PClassConfig::setIsEnum | ( | bool | isEnum | ) |
Set if the current PClassConfig is an enum.
isEnum | : true if the current PClassConfig is an enum |
Definition at line 115 of file PClassConfig.cpp.
References p_isEnum.
Referenced by parseEnumConfig().
void PClassConfig::setListAttribute | ( | const std::vector< PClassAttribute > & | listAttribute | ) |
Sets the list of attributes of the class.
listAttribute | : list of the attributes of the class |
Definition at line 53 of file PClassConfig.cpp.
References p_listAttribute.
void PClassConfig::setListTemplate | ( | const PVecString & | listTemplate | ) |
Sets the list of template of the class.
listTemplate | : list of the template of the class |
Definition at line 60 of file PClassConfig.cpp.
References p_listTemplate.
Referenced by parsePClassConfig().
void PClassConfig::setName | ( | const PString & | name | ) |
Sets the class name.
name | : name of the class |
Definition at line 46 of file PClassConfig.cpp.
References p_name.
Referenced by parseEnumConfig(), and parsePClassConfig().
|
private |
Class documentation.
Definition at line 53 of file PClassConfig.h.
Referenced by copyPClassConfig(), getClassDocumentation(), and setClassDocumentation().
|
private |
True if it is an enum.
Definition at line 63 of file PClassConfig.h.
Referenced by copyPClassConfig(), getIsEnum(), initialisationPClassConfig(), and setIsEnum().
|
private |
List of the attribute of the class.
Definition at line 57 of file PClassConfig.h.
Referenced by addAttribute(), copyPClassConfig(), getListAttribute(), and setListAttribute().
|
private |
List of the parent classes of the current class.
Definition at line 59 of file PClassConfig.h.
Referenced by addParentClass(), copyPClassConfig(), and getListParentClass().
|
private |
List of the template definition of the current class.
Definition at line 61 of file PClassConfig.h.
Referenced by addTemplate(), copyPClassConfig(), getListTemplate(), and setListTemplate().
|
private |
Name of the class.
Definition at line 55 of file PClassConfig.h.
Referenced by copyPClassConfig(), getName(), and setName().