* Allow to create arrays and lists

This commit is contained in:
Michaël Van Canneyt 2024-07-21 22:36:17 +02:00
parent 90e80fba48
commit e0b8e2f5fe

View File

@ -32,7 +32,8 @@ Type
{ TGenFieldMapOptions }
TFieldMapOption = (fmoPublicFields,fmoRequireFields,fmoLoadObject,fmoCreateParamMap,fmoSaveObject,fmoOverrideTransformString,fmoDefineArray,fmoDefineList);
TListParent = (lpFPList,lpList,lpObjectList,lpFPObjectList,lpGenericList);
TListParent = (lpFPList,lpList,lpObjectList,lpFPObjectList,lpGenericList,lpFGLGenericList);
TFieldMapOptions = Set of TFieldMapOption;
TGenFieldMapOptions = Class(TClassCodeGeneratorOptions)
@ -161,6 +162,7 @@ begin
case FieldMapOpts.ListParent of
lpList,
lpGenericList : Result:='TList';
lpFGLGenericList :Result:='TFPGList';
lpFPList : Result:='TFPList';
lpFPObjectList : Result:='TFPObjectList';
lpObjectList : Result:='TObjectList';
@ -235,6 +237,7 @@ begin
lpFPObjectList,
lpObjectList: Result:='contnrs';
lpGenericList : Result:='Generics.Collections';
lpFGLGenericList : Result:='fgl';
else
Result:='';
end;