PhoenixGenerator
2.8.0
Set of tools to generate code
Toggle main menu visibility
Loading...
Searching...
No Matches
wrapper_utils.h
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
#ifndef __WRAPPER_UTILS_H__
8
#define __WRAPPER_UTILS_H__
9
10
#include "
PClassConfig.h
"
11
#include "
type_utils.h
"
12
#include "
wrapper_convertType.h
"
13
14
PString
wrapper_getBuildValueStr
(
const
PString & type);
15
PString
wrapper_getObjectToValue
(
const
PString & type);
16
PString
wrapper_getValueToObject
(
const
PString & type);
17
PString
wrapper_getExpectedType
(
const
PString & type);
18
PString
wrapper_getObjectParseTuple
(
const
PString & varName);
19
PString
wrapper_getClassName
(
const
PClassConfig
& classConfig);
20
PString
project_wrapper_attributeDef
(
const
PClassAttribute
& attr);
21
PString
project_wrapper_classImplPythonType
(
const
PClassConfig
& classConfig,
const
PString & moduleName,
const
PString & fromOtherType);
22
23
#endif
PClassConfig.h
PClassAttribute
Describes a class attribute.
Definition
PClassAttribute.h:13
PClassConfig
Class to describe a basic class.
Definition
PClassConfig.h:14
type_utils.h
wrapper_convertType.h
project_wrapper_classImplPythonType
PString project_wrapper_classImplPythonType(const PClassConfig &classConfig, const PString &moduleName, const PString &fromOtherType)
Create the Python type of the given class.
Definition
wrapper_utils.cpp:109
wrapper_getExpectedType
PString wrapper_getExpectedType(const PString &type)
Get the expected type of a given python type.
Definition
wrapper_utils.cpp:57
wrapper_getObjectToValue
PString wrapper_getObjectToValue(const PString &type)
Get the function to convert the given object to a value.
Definition
wrapper_utils.cpp:29
project_wrapper_attributeDef
PString project_wrapper_attributeDef(const PClassAttribute &attr)
Get the C++ definition of an attribute.
Definition
wrapper_utils.cpp:91
wrapper_getObjectParseTuple
PString wrapper_getObjectParseTuple(const PString &varName)
Get the proper code for PyArg_ParseTuple with one object.
Definition
wrapper_utils.cpp:78
wrapper_getBuildValueStr
PString wrapper_getBuildValueStr(const PString &type)
Get the string description of the Py_BuildValue call for the given type.
Definition
wrapper_utils.cpp:14
wrapper_getValueToObject
PString wrapper_getValueToObject(const PString &type)
Get the function to convert the given value to a PyObject.
Definition
wrapper_utils.cpp:43
wrapper_getClassName
PString wrapper_getClassName(const PClassConfig &classConfig)
Get the corresponding wrapper class name.
Definition
wrapper_utils.cpp:70
src
Representation
wrapper_utils.h
Generated by
1.17.0