Data.DBXJSONReflect.TJSONUnMarshal.RegisterReverter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterReverter(clazz: TClass; const Field: string;  Reverter: TReverterEvent); overload;
procedure RegisterReverter(clazz: TClass; const Field: string;  const func: TObjectsReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string;  const func: TObjectReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string;  const func: TStringsReverter); overload;
procedure RegisterReverter(clazz: TClass; const Field: string;  const func: TStringReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeObjectsReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeObjectReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeStringsReverter); overload;
procedure RegisterReverter(clazz: TClass; const func: TTypeStringReverter); overload;

C++

void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, TReverterEvent* Reverter)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TObjectsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TObjectReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TStringsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const System::UnicodeString Field, const _di_TStringReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeObjectsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeObjectReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeStringsReverter func)/* overload */;
void __fastcall RegisterReverter(System::TClass clazz, const _di_TTypeStringReverter func)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect TJSONUnMarshal

Description

Registers a user reverter event.

The RegisterReverter method registers a user reverter event. The reverter event object will be released by the destructor.

The most general implementation of this function has three parameters: clazz (the object metaclass), field (the field name), and reverter (the reverter event implementation).

For writing efficient code, you can use one of the overloads of the RegisterReverter method. The following table lists the parameters types and the use of each method overload.



Parameter type Method description

TClass; string; TObjectsReverter

Convenience method for user reverter registration for a list of objects.

TClass; string; TObjectReverter

Convenience method for user reverter registration for an object.

TClass; string; TStringsReverter

Convenience method for user reverter registration for an array of strings.

TClass; string; TStringConverter

Convenience method for user reverter registration for a string.

TClass; TTypeObjectsConverter

Convenience method for user type reverter registration for a list of objects.

TClass; TTypeObjectConverter

Convenience method for user type reverter registration for an object.

TClass; TTypeStringsConverter

Convenience method for user type reverter registration for an array of strings.

TClass; TTypeStringConverter

Convenience method for user type reverter registration for a string.



See Also