PhoenixGenerator  2.2.0
Set of tools to generate code
Loading...
Searching...
No Matches
type_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 __TYPE_UTILS_H__
8#define __TYPE_UTILS_H__
9
10#include "PString.h"
11
12bool generator_typeIsList(const PString & type);
13PString generator_getListNestedType(const PString & type);
14
15bool getIsSimpleType(const PString & varType);
16PString getDefaultValueTypeInCpp(const PString & type);
17PString getDefaultValueTypeInPython(const PString & type);
18PString getTestDefaultValueTypeInCpp(const PString & type);
19PString getTestDefaultValueTypeInPython(const PString & type);
20PString makeVarType(const PString & varType, bool isSetter, bool isConst, bool isRef, bool isPtr);
21
22
23
24#endif
PString getTestDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
PString generator_getListNestedType(const PString &type)
Get the nested type inside a std::list.
PString getDefaultValueTypeInPython(const PString &type)
Get default value for a given type in Python.
bool generator_typeIsList(const PString &type)
Say if a given type is a std::list.
PString getTestDefaultValueTypeInPython(const PString &type)
Get default test value for a given type in Python.
PString makeVarType(const PString &varType, bool isSetter, bool isConst, bool isRef, bool isPtr)
Makes the var type by taking account of the type.
PString getDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
bool getIsSimpleType(const PString &varType)
Check if the given type is a simple type.