System.TypInfo.TTypeInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TTypeInfo = record
    Kind: TTypeKind;
    Name: TSymbolName;
    function NameFld: TTypeInfoFieldAccessor; inline;
   {TypeData: TTypeData}
    function TypeData: PTypeData; inline;
  end;

C++

struct DECLSPEC_DRECORD TTypeInfo
{
public:
    System::TTypeKind Kind;
    TSymbolName Name;
    TTypeInfoFieldAccessor __fastcall NameFld();
    PTypeData __fastcall TypeData();
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

Holds information for a data type as returned by TypeInfo.

The TypeInfo function is part of Delphi's Run Time Type Information (RTTI) mechanism. It provides run-time information about a specific data type. TypeInfo returns a PTypeInfo pointer to a TTypeInfo value.

The TTypeInfo holds the following fields:

Field Meaning

Kind

The kind of type in RTTI terms. This value is required to select the appropriate variant section in the TTypeData returned by GetTypeData.
Possible values of this field are defined by the TTypeKind enumerated type.

Name

The name of the data type.

See Also