PhoenixGenerator
2.8.0
Set of tools to generate code
Toggle main menu visibility
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
12
bool
generator_typeIsList
(
const
PString & type);
13
PString
generator_getListNestedType
(
const
PString & type);
14
15
bool
getIsSimpleType
(
const
PString & varType);
16
PString
getDefaultValueTypeInCpp
(
const
PString & type);
17
PString
getDefaultValueTypeInPython
(
const
PString & type);
18
PString
getTestDefaultValueTypeInCpp
(
const
PString & type);
19
PString
getTestDefaultValueTypeInPython
(
const
PString & type);
20
PString
makeVarType
(
const
PString & varType,
bool
isSetter,
bool
isConst,
bool
isRef,
bool
isPtr);
21
22
23
24
#endif
getTestDefaultValueTypeInCpp
PString getTestDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
Definition
type_utils.cpp:95
generator_getListNestedType
PString generator_getListNestedType(const PString &type)
Get the nested type inside a std::list.
Definition
type_utils.cpp:22
getDefaultValueTypeInPython
PString getDefaultValueTypeInPython(const PString &type)
Get default value for a given type in Python.
Definition
type_utils.cpp:73
generator_typeIsList
bool generator_typeIsList(const PString &type)
Say if a given type is a std::list.
Definition
type_utils.cpp:14
getTestDefaultValueTypeInPython
PString getTestDefaultValueTypeInPython(const PString &type)
Get default test value for a given type in Python.
Definition
type_utils.cpp:127
makeVarType
PString makeVarType(const PString &varType, bool isSetter, bool isConst, bool isRef, bool isPtr)
Makes the var type by taking account of the type.
Definition
type_utils.cpp:153
getDefaultValueTypeInCpp
PString getDefaultValueTypeInCpp(const PString &type)
Get the default value of a type in C++.
Definition
type_utils.cpp:41
getIsSimpleType
bool getIsSimpleType(const PString &varType)
Check if the given type is a simple type.
Definition
type_utils.cpp:32
src
Representation
type_utils.h
Generated by
1.17.0