{"id":5435,"date":"2022-02-25T12:54:42","date_gmt":"2022-02-25T04:54:42","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=5435"},"modified":"2022-07-03T22:24:50","modified_gmt":"2022-07-03T14:24:50","slug":"%e6%95%99%e7%a8%8bdelphi-%e4%b8%ad%e7%9a%84%e5%8c%bf%e5%90%8d%e5%87%bd%e6%95%b0%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5435","title":{"rendered":"[\u6559\u7a0b]Delphi \u4e2d\u7684\u533f\u540d\u51fd\u6570\u8be6\u89e3"},"content":{"rendered":"\n<p>Delphi \u652f\u6301\u533f\u540d\u51fd\u6570\u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u5728<a href=\"https:\/\/blog.qdac.cc\/?p=4595\">\u4ee5\u524d\u7684\u6587\u7ae0<\/a>\u4e2d\uff0c\u6211\u8bf4\u8fc7\uff0cDelphi \u7684\u533f\u540d\u51fd\u6570\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u63a5\u53e3\uff0c\u5f53\u7136\u8fd9\u4e2a\u63a5\u53e3\u662f\u6ca1\u6709\u63a5\u53e3\u7684GUID\u7684\u3002\u90a3\u4e48 Delphi \u662f\u5982\u4f55\u52a8\u6001\u751f\u6210\u8fd9\u4e2a\u63a5\u53e3\u7c7b\u578b\u7684\u5462\uff1f\u6211\u4eec\u4ee5\u4e00\u4e2a\u5b9e\u9645\u7684\u4f8b\u5b50\u548c\u63a5\u53e3\u5728\u5185\u5b58\u4e2d\u7684\u5e03\u5c40\u6765\u8be6\u7ec6\u8bf4\u660e\u4e0b\uff1a<\/p>\n\n\n\n<p>1\u3001\u9996\u5148\uff0c\u63a5\u53e3\u4e09\u5927\u91d1\u521a\uff08AddRef\/Release\/QueryInterface\uff09\u54b1\u4eec\u5ffd\u7565\u6389\u4e0d\u8c08\uff0c\u65e2\u7136\u662f\u63a5\u53e3\uff0c\u5b83\u4eec\u80af\u5b9a\u5b58\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u7565\u8fc7\u53bb\u3002\u6211\u4eec\u5148\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u6765\u786e\u8ba4\u4e00\u4e0b\u8fd9\u4e00\u4e8b\u5b9e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>procedure TForm2.Button1Click(Sender: TObject);\nvar\n  ACallback: TThreadProcedure;\n  AObj: TObject;\nconst\n  ObjCastGUID: TGUID = '{CEDF24DE-80A4-447D-8C75-EB871DC121FD}';\nbegin\n  ACallback := procedure\n    begin\n      Caption:='Hello,world';\n    end;\n  if Supports(IInterface(PPointer(@ACallback)^), ObjCastGUID, AObj) then\n    ShowMessage(AObj.ClassName);\n  TThread.Queue(nil, ACallback);\nend;<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u77e5\u9053\uff0cDelphi \u4e2d TObject \u662f\u6240\u6709\u7c7b\u7684\u57fa\u7c7b\uff0c\u6240\u4ee5\u6211\u4eec\u5c1d\u8bd5\u5c06\u5b9a\u4e49\u7684\u533f\u540d\u51fd\u6570\u5b9e\u4f8b\uff0c\u8f6c\u6362\u4e3a TObject\uff0c\u7136\u540e\u901a\u8fc7 ClassName \u6765\u53d6\u51fa\u7c7b\u578b\u540d\u79f0\u3002\u6267\u884c\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u51fa\u73b0\u4e0b\u9762\u7684\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2022\/02\/D11A1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"117\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2022\/02\/D11A1.png\" alt=\"\" class=\"wp-image-5436\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2022\/02\/D11A1.png 355w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2022\/02\/D11A1-300x99.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><figcaption>Delphi\u4e2d\u533f\u540d\u51fd\u6570\u7c7b\u578b<\/figcaption><\/figure>\n\n\n\n<p>\u51fa\u73b0\u4e86\u5b83\u7684\u771f\u6b63\u7c7b\u578b\uff0c\u53ebTForm2.Button1Click$ActRec\uff0c\u597d\u7684\uff0c\u5b8c\u7f8e\u8bc1\u660e\u4e86\u6211\u4eec\u7684\u7ed3\u8bba\uff08\u4e0a\u9762\u7684ObjCastGUID \u53d6\u81ea System.pas\uff09\u3002<\/p>\n\n\n\n<p>2\u3001\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u770b\u770b\u5176 RTTI \u4fe1\u606f\u6709\u6ca1\u6709\uff0c\u5982\u679c\u6709\uff0c\u5c06\u5176RTTI\u4fe1\u606f\u8f93\u51fa\uff0c\u8fd9\u91cc\u5206\u89e3\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<p>2.1\u3001\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u6765\u8f93\u51fa\u7c7b\u7684\u7ee7\u627f\u5173\u7cfb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function DumpClassInherits(AClassType: TClass): String;\n  var\n    AParentClass: TClass;\n  begin\n    AParentClass := AClassType.ClassParent;\n    if Assigned(AParentClass) then\n      Result := DumpClassInherits(AClassType.ClassParent) + '-&gt;' + AClassType.ClassName\n    else\n      Result := AClassType.ClassName;\n  end;<\/code><\/pre>\n\n\n\n<p>\u5c06\u7b2c\u4e00\u6b65\u4e2d\uff0cAObj.ClassType \u4f5c\u4e3a\u53c2\u6570\u4f20\u8fdb\u53bb\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u4e0b\u9762\u7684\u7ed3\u679c\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u533f\u540d\u51fd\u6570\u63a5\u53e3\u7684\u7ee7\u627f\u5173\u7cfb<\/p><cite>TObject-&gt;TInterfacedObject-&gt;TForm2.Button1Click$ActRec<\/cite><\/blockquote>\n\n\n\n<p>\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u4e86\u6211\u4eec\u4ee5\u524d\u7684\u7ed3\u8bba\uff0c\u522b\u770b\u4e8c\u9b3c\u5b50\u7a7f\u8eab\u76ae\uff0c\u6252\u4e0b\u6765\u4f1a\u53d1\u73b0\u5b83\u771f\u7684\u5c31\u662f\u4e00\u4e2a\u63a5\u53e3\u3002<\/p>\n\n\n\n<p>2.2\u3001\u518d\u5199\u4e00\u4e2a\u51fd\u6570\u6253\u5370\u4e00\u4e0b\u5176\u51fd\u6570\u6210\u5458\u548c\u6570\u636e\u6210\u5458\u7684\u4fe1\u606f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>procedure TForm2.DumpRtti(AObj: TObject);\nvar\n  AContext: TRttiContext;\n  AType: TRttiType;\n  AFields: TArray&lt;TRttiField&gt;;\n  AMethods: TArray&lt;TRttiMethod&gt;;\n  AProps: TArray&lt;TRttiProperty&gt;;\n  I: Integer;\nbegin\n  AContext := TRttiContext.Create;\n  AType := AContext.GetType(AObj.ClassType.ClassInfo);\n  if Assigned(AType) then\n  begin\n    AMethods := AType.GetMethods;\n    Memo1.Lines.Add('Methods:');\n    for I := 0 to High(AMethods) do\n      Memo1.Lines.Add(' '+IntToStr(I + 1) + '.' + AMethods&#91;I].Name);\n    AFields := AType.GetFields;\n    Memo1.Lines.Add('Fields:');\n    for I := 0 to High(AFields) do\n      Memo1.Lines.Add(' '+IntToStr(I + 1) + '.' + AFields&#91;I].Name);\n    AProps := AType.GetProperties;\n    Memo1.Lines.Add('Properties:');\n    for I := 0 to High(AProps) do\n      Memo1.Lines.Add(' '+IntToStr(I + 1) + '.' + AProps&#91;I].Name);\n  end;\nend;<\/code><\/pre>\n\n\n\n<p>\u5b9e\u6d4b\u8f93\u51fa\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u533f\u540d\u51fd\u6570 RTTI \u8f93\u51fa\u4fe1\u606f<\/p><cite>Methods:<br>1.AfterConstruction<br>2.BeforeDestruction<br>3.NewInstance<br>4.Create<br>5.Free<br>6.DisposeOf<br>7.InitInstance<br>8.CleanupInstance<br>9.ClassType<br>10.ClassName<br>11.ClassNameIs<br>12.ClassParent<br>13.ClassInfo<br>14.InstanceSize<br>15.InheritsFrom<br>16.MethodAddress<br>17.MethodAddress<br>18.MethodName<br>19.QualifiedClassName<br>20.FieldAddress<br>21.FieldAddress<br>22.GetInterface<br>23.GetInterfaceEntry<br>24.GetInterfaceTable<br>25.UnitName<br>26.UnitScope<br>27.Equals<br>28.GetHashCode<br>29.ToString<br>30.SafeCallException<br>31.AfterConstruction<br>32.BeforeDestruction<br>33.Dispatch<br>34.DefaultHandler<br>35.NewInstance<br>36.FreeInstance<br>37.Destroy<br>Fields:<br>1.Self<br>2.FRefCount<br>Properties:<br>1.RefCount<\/cite><\/blockquote>\n\n\n\n<p>\u597d\u7684\uff0c\u6211\u4eec\u770b\u5230\u4e86\u4ec0\u4e48\uff1f<strong>Self!!!!<\/strong><\/p>\n\n\n\n<p>\u6240\u4ee5\u63a5\u4e0b\u6765\u7684\u4e8b\u60c5\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u73a9\u4e86\u3002<\/p>\n\n\n\n<p>3\u3001\u5728\u4e0a\u4e00\u6b65\u7684\u5b9e\u6d4b\u4e2d\uff0c\u6211\u4eec\u53d1\u73b0\u4e86\u4e00\u4e2a\u91cd\u8981\u7684\u4e1c\u897f\uff0cSelf\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ef\u4ee5\u9664\u4e86\u533f\u540d\u51fd\u6570\u4f53\u5185\uff0c\u5f97\u5230\u8fd9\u4e2a\u533f\u540d\u51fd\u6570\u6240\u5173\u8054\u7684\u5bf9\u8c61\u7684\u5b9e\u4f8b\uff01\u6240\u4ee5\u6211\u4eec\u6765\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\uff0c\u6765\u505a\u8fdb\u4e00\u6b65\u7684\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n<p>3.1\u3001\u9996\u5148\uff0c\u5982\u679c\u533f\u540d\u51fd\u6570\u4e2d\uff0c\u6ca1\u6709\u5f15\u7528\u5bf9\u8c61\u5b9e\u4f8b\u7684\u4ee3\u7801\uff0c\u4f1a\u4e0d\u4f1a\u8fd8\u6709 Self \u6307\u9488\uff1f\u5f88\u7b80\u5355\uff0c\u6211\u4eec\u5c06\u524d\u9762\u7684\u4ee3\u7801\u4e2d <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Caption:='Hello,world';<\/pre>\n\n\n\n<p>\u6539\u6210\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">OutputDebugString('Hello,world');<\/pre>\n\n\n\n<p>\u7136\u540e\u770b\u4e00\u4e0b\u8f93\u51fa RTTI \u4fe1\u606f\uff0c\u4e3a\u8282\u7701\u7bc7\u5e45\uff0c\u54b1\u4eec\u53ea\u770b Fields \u90e8\u5206\uff08\u4e0b\u540c\uff09\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u89e3\u9664\u5f15\u7528\u540e\u533f\u540d\u51fd\u6570\u63a5\u53e3\u6210\u5458<\/p><cite><code>\u2026\u2026<br>Fields:<br>1.FRefCount<br>Properties:<br>\u2026\u2026<\/code><\/cite><\/blockquote>\n\n\n\n<p>\u53ea\u6709\u4e00\u4e2a\u5f15\u7528\u8ba1\u6570\u6210\u5458\u4e86\u3002\u7531\u6b64\u63a8\u8bba\uff1a<\/p>\n\n\n\n<p><strong>\u53ea\u6709\u533f\u540d\u51fd\u6570\u4e2d\u5f15\u7528\u7684\u5185\u5bb9\uff0c\u624d\u4f1a\u88ab\u52a0\u5165\u5230\u81ea\u52a8\u751f\u6210\u7684\u63a5\u53e3\u4e2d\u3002<\/strong><\/p>\n\n\n\n<p>3.2\u3001\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff1a\u533f\u540d\u51fd\u6570\u4e2d\u7684\u6210\u5458\u52a0\u5165\u7684\u987a\u5e8f\u662f\u4ec0\u4e48\u6837\u5b50\uff1f\u4e3a\u6b64\uff0c\u6211\u4eec\u5c06\u4e0a\u9762\u7684\u4ee3\u7801\u8fdb\u4e00\u6b65\u6539\u52a8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>procedure TForm2.Button1Click(Sender: TObject);\nvar\n  ACallback: TThreadProcedure;\n  AObj: TObject;\n  B: Byte;\n  I: Integer;\nconst\n  ObjCastGUID: TGUID = '{CEDF24DE-80A4-447D-8C75-EB871DC121FD}';\nbegin\n  ACallback := procedure\n    var\n      R:Integer;\n    begin\n      R:=I+B;\n      Caption :=R.ToString;\n    end;\n  if Supports(IInterface(PPointer(@ACallback)^), ObjCastGUID, AObj) then\n    DumpRtti(AObj);\n  TThread.Queue(nil, ACallback);\nend;<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u4ecd\u6765\u770b\u4e00\u4e0b RTTI \u4fe1\u606f\u7684\u8f93\u51fa\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u533f\u540d\u51fd\u6570\u6210\u5458\u6392\u5217\u987a\u5e8f\u6d4b\u8bd5\u7ed3\u679c<\/p><cite>Fields:<br>1.Self<br>2.B<br>3.I<\/cite><\/blockquote>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u8c03\u6574\u4e0b\u533f\u540d\u51fd\u6570\u4e2d\u4ee3\u7801\u7684\u987a\u5e8f\uff0c\u7136\u540e\u518d\u770b\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ACallback := procedure\n    var\n      R:Integer;\n    begin\n      Caption :=I.ToString;\n      R:=B+I;\n      Caption:=R.ToString;\n    end;<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u6765\u770b\u4e0b\u8f93\u51fa\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u533f\u540d\u51fd\u6570\u6210\u5458\u6392\u5217\u987a\u5e8f\u6d4b\u8bd5\u7ed3\u679c<\/p><cite>Fields:<br>1.B<br>2.I<br>3.Self<\/cite><\/blockquote>\n\n\n\n<p>\u7531\u6b64\u53ef\u4ee5\u5f97\u51fa\u4eca\u5929\u7684\u7b2c\u4e8c\u4e2a\u7ed3\u8bba\uff1a<\/p>\n\n\n\n<p><strong>\u533f\u540d\u51fd\u6570\u63a5\u53e3\u5b9a\u4e49\u4e2d\uff0c\u6210\u5458\u7684\u987a\u5e8f\u6392\u5217\u7684\u53d6\u51b3\u4e8e\u51fd\u6570\u5185\u5bb9\u5f15\u7528\u7684\u987a\u5e8f\uff0c\u540e\u5f15\u7528\u7684\u5728\u524d\u9762\u3002<\/strong><\/p>\n\n\n\n<p>\u540c\u65f6\uff0c\u6839\u636e\u4e0a\u9762\u7684\u5b9e\u8df5\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5f15\u7533\u51fa\u4e00\u4e2a\u7ed3\u8bba\uff1a<\/p>\n\n\n\n<p><strong>\u88ab\u533f\u540d\u51fd\u6570\u5f15\u7528\u7684\u5c40\u90e8\u53d8\u91cf\u7684\u5206\u914d\uff0c\u662f\u88ab\u653e\u5230\u533f\u540d\u5bf9\u5e94\u7684\u63a5\u53e3\u4e0a\u7684\uff0c\u800c\u4e0d\u662f\u5728\u5f53\u524d\u7ebf\u7a0b\u6808\u4e0a\u3002\u56e0\u6b64\uff0c\u5b83\u4eec\u5360\u7528\u7684\u5185\u5b58\uff0c\u662f\u5728\u8fd9\u4e2a\u533f\u540d\u51fd\u6570\u63a5\u53e3\u88ab\u91ca\u653e\u65f6\u91ca\u653e\u7684\u3002<\/strong><\/p>\n\n\n\n<p>\u5173\u4e8e\u4e0a\u9762\u7684\u8fd9\u4e00\u70b9\uff0c\u5927\u5bb6\u53ef\u4ee5\u7528\u5982\u4e0b\u7684\u4ee3\u7801\u6765\u7b80\u5355\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var\n  ABeforeList:Integer;\n  AList:TList;\n  AfterList:Integer;\nbegin\n  AList:=TList.Create;\n  ABeforeList:=0;\n  AfterList:=1;\n  Memo1.Lines.Add('BeforeList='+IntToHex(IntPtr(@ABeforeList),SizeOf(Pointer)));\n  Memo1.Lines.Add('List='+IntToHex(IntPtr(@AList),SizeOf(Pointer)));\n  Memo1.Lines.Add('AfterList='+IntToHex(IntPtr(@AfterList),SizeOf(Pointer)));\n  TThread.ForceQueue(nil,\n    procedure\n    begin\n      Caption:=AList.Count.ToString;\n      FreeAndNil(AList);\n    end\n    );\nend;<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u8f93\u51fa\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<p>BeforeList=BBFC24<br><strong>List=37130EC<\/strong><br>AfterList=BBFC20<\/p>\n\n\n\n<p>\u6ce8\u610f\u52a0\u7c97\u7684\u8fd9\u884c\uff0c\u5176\u5185\u5b58\u5730\u5740\u4e0e\u5176\u5b83\u4e24\u4e2a\u5143\u7d20\u5b8c\u5168\u4e0d\u642d\u754c\uff0c\u76f4\u63a5\u8bc1\u660e\u4e86\u6211\u4eec\u63d0\u51fa\u7684\u89c2\u70b9\u3002<\/p>\n\n\n\n<p>\u597d\u5427\uff0c\u8fd9\u4e48\u957f\u7684\u6587\u7ae0\u5982\u679c\u4f60\u80fd\u4e00\u6b21\u6027\u770b\u5b8c\uff0c\u8bf4\u660e\u5728\u89c2\u770b\u4fc4\u7f57\u65af\u548c\u4e4c\u514b\u5170\u6218\u4e89\u7684\u540c\u65f6\uff0c\u4f60\u8fd8\u5728\u5bf9\u6280\u672f\u611f\u5174\u8da3\uff0c\u8fd9\u6837\u7684\u4eba\u624d\u662f\u771f\u6b63\u7684\u7801\u519c\u3002\u6240\u4ee5\u989d\u5916\u9020\u6210\u4f60\u4e00\u4e2a\u6b8b\u9177\u7684\u4e8b\u5b9e\uff1a<\/p>\n\n\n\n<p><em>\u5728\u540c\u4e00\u4e2a\u51fd\u6570\u4f53\u4e2d\u5b9a\u4e49\u7684\u4e0d\u540c\u56de\u8c03\u51fd\u6570\uff0c\u5176\u7c7b\u578b\u662f\u4e5f\u662f\u540c\u4e00\u4e2a\u540d\u79f0\u3002\u6240\u4ee5\u5982\u679c\u4f60\u8981\u9760\u540d\u79f0\u5224\u65ad\u4e24\u4e2a\u7c7b\u578b\u662f\u5426\u4e00\u81f4\u7684\u8bdd\uff0c\u53ef\u4ee5\u8df3\u697c\u4e86\u3002<\/em><\/p>\n\n\n\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u4e3a\u6b62\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u7ee7\u7eed\u6df1\u5165\u7814\u7a76\u4e0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delphi \u652f\u6301\u533f\u540d\u51fd\u6570\u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-5435","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":2685,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5435"}],"version-history":[{"count":5,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5435\/revisions"}],"predecessor-version":[{"id":5520,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5435\/revisions\/5520"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}