PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
wrapper_convertType.cpp
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
9
11
15PString getPythonStrForPythonApiType(const PString & typeStr){
16 if(typeStr == "char") return "T_CHAR";
17 else if(typeStr == "bool") return "T_BOOL";
18 else if(typeStr == "short") return "T_SHORT";
19 else if(typeStr == "unsigned short") return "T_USHORT";
20 else if(typeStr == "int") return "T_INT";
21 else if(typeStr == "unsigned int") return "T_UINT";
22 else if(typeStr == "ssize_t" || typeStr == "long int") return "T_LONG";
23 else if(typeStr == "size_t" || typeStr == "long unsigned int") return "T_ULONG";
24 else if(typeStr == "float") return "T_FLOAT";
25 else if(typeStr == "double") return "T_DOUBLE";
26 else return "";
27}
28
29
30
PString getPythonStrForPythonApiType(const PString &typeStr)
Gets the python API str type of the correcponding numpy C/C++ type.