![]() |
|
PhoenixGenerator
2.0.4
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. | |
| void | addListAttribute (const std::vector< PClassAttribute > &listAttribute) |
| Adds a list of attributes to the class. | |
| void | addListParentClass (const PVecString &listParentClass) |
| Add a parent classes to the PClassConfig. | |
| void | addListTemplate (const PVecString &listTemplate) |
| Add a template to the PClassConfig. | |
| void | addParentClass (const PString &parentClass) |
| Add a parent class to the PClassConfig. | |
| void | addTemplate (const PString &defTemplate) |
| Add a template to the PClassConfig. | |
| PString & | getClassDocumentation () |
| Returns the class documentation. | |
| const PString & | getClassDocumentation () const |
| Returns the class documentation. | |
| bool | getIsEnum () const |
| Say if the current PClassConfig is an enum. | |
| std::vector< PClassAttribute > & | getListAttribute () |
| Returns the list of attributes of the class. | |
| const std::vector< PClassAttribute > & | getListAttribute () const |
| Returns the list of attributes of the class. | |
| PVecString & | getListParentClass () |
| Returns the list of the parents of the class. | |
| const PVecString & | getListParentClass () const |
| Returns the list of the parents of the class. | |
| PVecString & | getListTemplate () |
| Returns the list of the template of the class. | |
| const PVecString & | getListTemplate () const |
| Returns the list of the template of the class. | |
| PString & | getName () |
| Returns the class name. | |
| const PString & | getName () const |
| Returns the class name. | |
| PClassConfig & | operator= (const PClassConfig &other) |
| Definition of equal operator of PClassConfig. | |
| PClassConfig () | |
| Default constructeur of PClassConfig. | |
| PClassConfig (const PClassConfig &other) | |
| Copy constructor of PClassConfig. | |
| void | setClassDocumentation (const PString &classDocumentation) |
| Sets the class documentation. | |
| void | setIsEnum (bool isEnum) |
| Set if the current PClassConfig is an enum. | |
| void | setListAttribute (const std::vector< PClassAttribute > &listAttribute) |
| Sets the list of attributes of the class. | |
| void | setListTemplate (const PVecString &listTemplate) |
| Sets the list of template of the class. | |
| void | setName (const PString &name) |
| Sets the class name. | |
| virtual | ~PClassConfig () |
| Destructeur of PClassConfig. | |
Protected Member Functions | |
| void | copyPClassConfig (const PClassConfig &other) |
| Copy function of PClassConfig. | |
Private Member Functions | |
| void | initialisationPClassConfig () |
| Initialisation function of the class PClassConfig. | |
Private Attributes | |
| PString | p_classDocumentation |
| Class documentation. | |
| bool | p_isEnum |
| True if it is an enum. | |
| std::vector< PClassAttribute > | p_listAttribute |
| List of the attribute of the class. | |
| PVecString | p_listParentClass |
| List of the parent classes of the current class. | |
| PVecString | p_listTemplate |
| List of the template definition of the current class. | |
| PString | p_name |
| Name of the class. | |
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().
Referenced by copyPClassConfig(), operator=(), and PClassConfig().
Here is the call graph for this function:
Here is the caller graph for this function:| PClassConfig::PClassConfig | ( | const PClassConfig & | other | ) |
Copy constructor of PClassConfig.
| other | : class to copy |
Definition at line 18 of file PClassConfig.cpp.
References copyPClassConfig(), and PClassConfig().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
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, p_name, and PClassConfig().
Referenced by operator=(), and PClassConfig().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 generator_class_cpp_header(), generator_enum_cpp_header(), project_wrapper_classImplPythonType(), and wrapper_generator_class_header().
Here is the caller graph for this function:| 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 CppTraitCheckStream::classExtraFunctionDeclaration(), CppTraitDataStream::classExtraFunctionDeclaration(), CppTraitFromString::classExtraFunctionDeclaration(), CppTraitTypeStream::classExtraFunctionDeclaration(), CppTraitCheckStream::classExtraFunctionImplementation(), CppTraitConfigStream::classExtraFunctionImplementation(), CppTraitFromString::classExtraFunctionImplementation(), CppTraitTypeStream::classExtraFunctionImplementation(), WrapperTraitDataStream::classMethodDeclaration(), WrapperTraitGetterSetter::classMethodDeclaration(), WrapperTraitDataStream::classMethodImplementation(), WrapperTraitGetterSetter::classMethodImplementation(), data_stream_trait_wrapper_classImplCheck(), data_stream_trait_wrapper_classPythonFromBytes(), data_stream_trait_wrapper_classPythonGetSizeInBytes(), data_stream_trait_wrapper_classPythonToBytes(), generator_class_cpp_source(), project_wrapper_classTest(), CppTraitCopy::protectedMethodDeclaration(), CppTraitCopy::protectedMethodImplementation(), CppTraitCopy::publicMethodDeclaration(), CppTraitDataStream::publicMethodDeclaration(), CppTraitGetter::publicMethodDeclaration(), CppTraitSetter::publicMethodDeclaration(), CppTraitCopy::publicMethodImplementation(), CppTraitGetter::publicMethodImplementation(), CppTraitSetter::publicMethodImplementation(), CppTraitCopy::testCallFunction(), CppTraitFromString::testCallFunction(), CppTraitCopy::testFunction(), CppTraitFromString::testFunction(), CppTraitTypeStream::testFunction(), and WrapperTraitDataStream::testFunction().
Here is the caller graph for this function:| 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 class_createCheckClassEquality(), class_createTestClassCopy(), class_saveClassInitialisationFunctionImpl(), CppTraitCheckStream::classExtraFunctionDeclaration(), CppTraitCheckStream::classExtraFunctionImplementation(), CppTraitConfigStream::classExtraFunctionImplementation(), CppTraitFromString::classExtraFunctionImplementation(), WrapperTraitDataStream::classMethodDeclaration(), WrapperTraitGetterSetter::classMethodDeclaration(), WrapperTraitDataStream::classMethodImplementation(), WrapperTraitGetterSetter::classMethodImplementation(), data_stream_trait_wrapper_classImplCheck(), data_stream_trait_wrapper_classPythonFromBytes(), data_stream_trait_wrapper_classPythonGetSizeInBytes(), data_stream_trait_wrapper_classPythonToBytes(), generator_class_cpp_header(), generator_enum_cpp_header(), project_wrapper_enumImplNewc(), CppTraitCopy::protectedMethodImplementation(), CppTraitDataStream::publicMethodDeclaration(), CppTraitGetter::publicMethodDeclaration(), CppTraitSetter::publicMethodDeclaration(), CppTraitGetter::publicMethodImplementation(), CppTraitSetter::publicMethodImplementation(), WrapperTraitGetterSetter::registerClassGetterSetter(), WrapperTraitGetterSetter::registerClassMember(), CppTraitFromString::testFunction(), WrapperTraitDataStream::testFunction(), wrapper_generator_class_header(), wrapper_generator_class_implDealloc(), and wrapper_generator_class_implNewc().
Here is the caller graph for this function:| 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 class_saveClassConstructorImpl(), and generator_class_cpp_header().
Here is the caller graph for this function:| 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 CppTraitCheckStream::classExtraFunctionDeclaration(), CppTraitTypeStream::classExtraFunctionDeclaration(), CppTraitCheckStream::classExtraFunctionImplementation(), CppTraitConfigStream::classExtraFunctionImplementation(), CppTraitTypeStream::classExtraFunctionImplementation(), generator_class_cpp_header(), and generator_class_cpp_source().
Here is the caller graph for this function:| 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 class_createCheckClassEquality(), class_createTestClassCopy(), class_saveClassConstructorImpl(), class_saveClassDestructorImpl(), class_saveClassInitialisationFunctionImpl(), CppTraitCheckStream::classExtraFunctionDeclaration(), CppTraitConfigStream::classExtraFunctionDeclaration(), CppTraitDataStream::classExtraFunctionDeclaration(), CppTraitFromString::classExtraFunctionDeclaration(), CppTraitTypeStream::classExtraFunctionDeclaration(), CppTraitCheckStream::classExtraFunctionImplementation(), CppTraitConfigStream::classExtraFunctionImplementation(), CppTraitFromString::classExtraFunctionImplementation(), CppTraitTypeStream::classExtraFunctionImplementation(), WrapperTraitTypeStream::classMethodImplementation(), generator_class_cpp_header(), generator_class_test(), generator_class_testCMakeLists(), generator_enum_cpp_header(), parsePClassConfig(), project_wrapper_classImplPythonType(), project_wrapper_classTest(), project_wrapper_enumImplNewc(), CppTraitCopy::protectedMethodDeclaration(), CppTraitCopy::protectedMethodImplementation(), CppTraitCopy::publicMethodDeclaration(), CppTraitDataStream::publicMethodDeclaration(), CppTraitCopy::publicMethodImplementation(), CppTraitGetter::publicMethodImplementation(), CppTraitSetter::publicMethodImplementation(), CppTraitCopy::testCallFunction(), CppTraitFromString::testCallFunction(), CppTraitTypeStream::testCallFunction(), WrapperTraitTypeStream::testCallFunction(), CppTraitFromString::testFunction(), CppTraitTypeStream::testFunction(), WrapperTraitDataStream::testFunction(), WrapperTraitTypeStream::testFunction(), wrapper_generator_class_implDealloc(), wrapper_generator_class_implNewc(), and wrapper_getClassName().
Here is the caller graph for this function:
|
private |
Initialisation function of the class PClassConfig.
Definition at line 187 of file PClassConfig.cpp.
References p_isEnum.
Referenced by PClassConfig().
Here is the caller graph for this function:| 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(), and PClassConfig().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
private |
Class documentation.
Definition at line 53 of file PClassConfig.h.
Referenced by copyPClassConfig(), getClassDocumentation(), 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(), 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(), getListParentClass(), 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(), getListTemplate(), and setListTemplate().
|
private |
Name of the class.
Definition at line 55 of file PClassConfig.h.
Referenced by copyPClassConfig(), getName(), getName(), and setName().