PhoenixGenerator  2.0.4
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 getTestDefaultValueTypeInCpp(const PString & type);
18PString makeVarType(const PString & varType, bool isSetter, bool isConst, bool isRef, bool isPtr);
19
20
21
22#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.
bool generator_typeIsList(const PString &type)
Say if a given type is a std::list.
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.