![]() |
|
PhoenixGenerator
2.0.4
Set of tools to generate code
|
#include "wrapper_utils.h"
Include dependency graph for wrapper_utils.cpp:Go to the source code of this file.
Functions | |
| PString | project_wrapper_attributeDef (const PClassAttribute &attr) |
| Get the C++ definition of an attribute. | |
| PString | project_wrapper_classImplPythonType (const PClassConfig &classConfig, const PString &moduleName, const PString &fromOtherType) |
| Create the Python type of the given class. | |
| PString | wrapper_getBuildValueStr (const PString &type) |
| Get the string description of the Py_BuildValue call for the given type. | |
| PString | wrapper_getClassName (const PClassConfig &classConfig) |
| Get the corresponding wrapper class name. | |
| PString | wrapper_getExpectedType (const PString &type) |
| Get the expected type of a given python type. | |
| PString | wrapper_getObjectParseTuple (const PString &varName) |
| Get the proper code for PyArg_ParseTuple with one object. | |
| PString | wrapper_getObjectToValue (const PString &type) |
| Get the function to convert the given object to a value. | |
| PString | wrapper_getValueToObject (const PString &type) |
| Get the function to convert the given value to a PyObject. | |
| PString project_wrapper_attributeDef | ( | const PClassAttribute & | attr | ) |
Get the C++ definition of an attribute.
| attr | : attribute of a class |
Definition at line 91 of file wrapper_utils.cpp.
References PClassAttribute::getDocumentation(), getIsSimpleType(), PClassAttribute::getName(), and PClassAttribute::getType().
Referenced by wrapper_generator_class_header().
Here is the call graph for this function:
Here is the caller graph for this function:| PString project_wrapper_classImplPythonType | ( | const PClassConfig & | classConfig, |
| const PString & | moduleName, | ||
| const PString & | fromOtherType ) |
Create the Python type of the given class.
| classConfig | : class to be used |
| moduleName | : name of the module where the class should be defined |
| fromOtherType | : name of an other PyTypeObject to inheritate |
Definition at line 109 of file wrapper_utils.cpp.
References PClassConfig::getClassDocumentation(), PClassConfig::getName(), and wrapper_getClassName().
Referenced by wrapper_generator_class_source().
Here is the call graph for this function:
Here is the caller graph for this function:| PString wrapper_getBuildValueStr | ( | const PString & | type | ) |
Get the string description of the Py_BuildValue call for the given type.
| type | : type of the used |
Definition at line 14 of file wrapper_utils.cpp.
| PString wrapper_getClassName | ( | const PClassConfig & | classConfig | ) |
Get the corresponding wrapper class name.
| classConfig | : PClassConfig to be used |
Definition at line 70 of file wrapper_utils.cpp.
References PClassConfig::getName().
Referenced by WrapperTraitDataStream::classMethodDeclaration(), WrapperTraitGetterSetter::classMethodDeclaration(), WrapperTraitTypeStream::classMethodDeclaration(), WrapperTraitDataStream::classMethodImplementation(), WrapperTraitGetterSetter::classMethodImplementation(), WrapperTraitTypeStream::classMethodImplementation(), data_stream_trait_wrapper_classImplCheck(), project_wrapper_classImplPythonType(), WrapperTraitGetterSetter::registerClassGetterSetter(), WrapperTraitGetterSetter::registerClassMember(), WrapperTraitDataStream::registerClassMethod(), WrapperTraitTypeStream::registerClassMethod(), wrapper_generator_class_header(), wrapper_generator_class_source(), and wrapper_generator_enum_header().
Here is the call graph for this function:
Here is the caller graph for this function:| PString wrapper_getExpectedType | ( | const PString & | type | ) |
Get the expected type of a given python type.
| type | : type ot be used |
Definition at line 57 of file wrapper_utils.cpp.
Referenced by data_stream_trait_wrapper_classImplCheck().
Here is the caller graph for this function:| PString wrapper_getObjectParseTuple | ( | const PString & | varName | ) |
Get the proper code for PyArg_ParseTuple with one object.
| varName | : name of the variable to be checked |
Definition at line 78 of file wrapper_utils.cpp.
Referenced by data_stream_trait_wrapper_classPythonFromBytes().
Here is the caller graph for this function:| PString wrapper_getObjectToValue | ( | const PString & | type | ) |
Get the function to convert the given object to a value.
| type | : tpye to be used |
Definition at line 29 of file wrapper_utils.cpp.
Referenced by data_stream_trait_wrapper_classAttributeToMessage().
Here is the caller graph for this function:| PString wrapper_getValueToObject | ( | const PString & | type | ) |
Get the function to convert the given value to a PyObject.
| type | : tpye to be used |
Definition at line 43 of file wrapper_utils.cpp.
Referenced by data_stream_trait_wrapper_classAttributeFromMessage().
Here is the caller graph for this function: