Data Types

This commit is contained in:
Michael Schimmel
2025-08-25 18:00:15 +02:00
parent 42110e8471
commit 947060566d
11 changed files with 642 additions and 28 deletions
+9
View File
@@ -27,6 +27,9 @@ type
implementation
uses
System.Rtti;
type
TDataEnumValue = class(TInterfacedObject, IDataEnumValue)
private
@@ -35,6 +38,7 @@ type
function GetDataType: IDataType;
function GetAsString: string;
function GetValue: Integer;
function AsTValue: TValue;
public
constructor Create(const ADataType: IDataEnumType; const AValue: Integer);
end;
@@ -130,4 +134,9 @@ begin
Result := FValue;
end;
function TDataEnumValue.AsTValue: TValue;
begin
Result := TValue.From<Integer>(FValue);
end;
end.