API:System.Rtti.TRttiContext

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

  TRttiContext = record
  private
    FContextToken: IInterface;
  private class var
    FGlobalContextCounter: Integer;
    FGlobalContextToken: IInterface;
  public
    class function Create: TRttiContext; static;
    procedure Free;
    class procedure KeepContext; static;
    class procedure DropContext; static;
    function GetType(ATypeInfo: Pointer): TRttiType; overload;
    function GetType(AClass: TClass): TRttiType; overload;
    function GetTypes: TArray<TRttiType>;
    function FindType(const AQualifiedName: string): TRttiType;
    function GetPackages: TArray<TRttiPackage>;
  end;

C++

struct DECLSPEC_DRECORD TRttiContext
{
private:
    System::_di_IInterface FContextToken;
    static int FGlobalContextCounter;
    static System::_di_IInterface FGlobalContextToken;
public:
    static TRttiContext __fastcall Create();
    void __fastcall Free(void);
    static void __fastcall KeepContext();
    static void __fastcall DropContext();
    TRttiType* __fastcall GetType(void * ATypeInfo)/* overload */;
    TRttiType* __fastcall GetType(System::TClass AClass)/* overload */;
#ifndef _WIN64
    System::DynamicArray<TRttiType*> __fastcall GetTypes(void);
#else /* _WIN64 */
    System::TArray__1<TRttiType*> __fastcall GetTypes(void);
#endif /* _WIN64 */
    TRttiType* __fastcall FindType(const System::UnicodeString AQualifiedName);
#ifndef _WIN64
    System::DynamicArray<TRttiPackage*> __fastcall GetPackages(void);
#else /* _WIN64 */
    System::TArray__1<TRttiPackage*> __fastcall GetPackages(void);
#endif /* _WIN64 */
private:
};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
record
struct
public
System.Rtti.pas
System.Rtti.hpp
System.Rtti System.Rtti

Beschreibung

Embarcadero Technologies verfügt zurzeit über keine zusätzlichen Informationen. Bitte unterstützen Sie uns bei der Dokumentation dieses Themas, indem Sie Ihre Kommentare auf der Diskussionsseite eingeben.