PhoenixGenerator  2.0.4
Set of tools to generate code
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
14PString wrapper_getBuildValueStr(const PString & type);
15PString wrapper_getObjectToValue(const PString & type);
16PString wrapper_getValueToObject(const PString & type);
17PString wrapper_getExpectedType(const PString & type);
18PString wrapper_getObjectParseTuple(const PString & varName);
19PString wrapper_getClassName(const PClassConfig & classConfig);
21PString project_wrapper_classImplPythonType(const PClassConfig & classConfig, const PString & moduleName, const PString & fromOtherType);
22
23#endif
Describes a class attribute.
Class to describe a basic class.
PString project_wrapper_classImplPythonType(const PClassConfig &classConfig, const PString &moduleName, const PString &fromOtherType)
Create the Python type of the given class.
PString wrapper_getExpectedType(const PString &type)
Get the expected type of a given python type.
PString wrapper_getObjectToValue(const PString &type)
Get the function to convert the given object to a value.
PString project_wrapper_attributeDef(const PClassAttribute &attr)
Get the C++ definition of an attribute.
PString wrapper_getObjectParseTuple(const PString &varName)
Get the proper code for PyArg_ParseTuple with one object.
PString wrapper_getBuildValueStr(const PString &type)
Get the string description of the Py_BuildValue call for the given type.
PString wrapper_getValueToObject(const PString &type)
Get the function to convert the given value to a PyObject.
PString wrapper_getClassName(const PClassConfig &classConfig)
Get the corresponding wrapper class name.