1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<!--
$Id: typinfo.xml,v 1.5 2005/05/07 09:41:09 michael Exp $
This file is part of the FPC documentation.
Copyright (C) 1997, by Michael Van Canneyt
The FPC documentation is free text; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The FPC Documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the FPC documentation; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<package name="rtl">
<module name="typinfo">
<short>Access Run-Time Type Information (RTTI)</short>
<!-- \FPCexampledir{typinfex} -->
<descr>
<p>
The <file>TypInfo</file> unit contains many routines which can be used for
the querying of the Run-Time Type Information (RTTI) which is generated
by the compiler for classes that are compiled under the <var>{$M+}</var>
switch. This information can be used to retrieve or set property values
for published properties for totally unknown classes. In particular, it
can be used to stream classes. The <var>TPersistent</var> class in the
<file>Classes</file> unit is compiled in the <var>{$M+}</var> state and serves
as the base class for all classes that need to be streamed.
</p>
<p>
The unit should be compatible to the Delphi unit with the same name.
</p>
<p>
The examples in this chapter use a <file>rttiobj</file> auxiliary unit,
which contains an object that has a published property for all supported
types. It also contains some auxiliary routines and definitions. This
unit is included in the documentation sources, in the directory
<file>typinfex</file>.
</p>
</descr>
<topic name="ExaminePropInfo">
<short>Examining published property information</short>
<descr>
<p>
Functions for retrieving or examining property information
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="FindPropInfo"/></td><td>Getting property type information, With error checking.</td></tr>
<tr><td><link id="GetPropInfo"/></td><td>Getting property type information, No error checking.</td></tr>
<tr><td><link id="GetPropInfos"/></td><td>Find property information of a certain kind</td></tr>
<tr><td><link id="GetObjectPropClass"/></td><td>Return the declared class of an object property</td></tr>
<tr><td><link id="GetPropList"/></td><td>Get a list of all published properties</td></tr>
<tr><td><link id="IsPublishedProp"/></td><td>Is a property published</td></tr>
<tr><td><link id="IsStoredProp"/></td><td>Is a property stored</td></tr>
<tr><td><link id="PropIsType"/></td><td>Is a property of a certain kind</td></tr>
<tr><td><link id="PropType"/></td><td>Return the type of a property</td></tr>
</table>
</descr>
</topic>
<topic name="ManipulatePropValues">
<short>Getting or setting property values</short>
<descr>
<p>
Functions to set or set a property's value.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="GetEnumProp"/></td><td>Return the value of an enumerated type property</td></tr>
<tr><td><link id="GetFloatProp"/></td><td>Return the value of a float property</td></tr>
<tr><td><link id="GetInt64Prop"/></td><td>Return the value of an Int64 property</td></tr>
<tr><td><link id="GetMethodProp"/></td><td>Return the value of a procedural type property</td></tr>
<tr><td><link id="GetObjectProp"/></td><td>Return the value of an object property</td></tr>
<tr><td><link id="GetOrdProp"/></td><td>Return the value of an ordinal type property</td></tr>
<tr><td><link id="GetPropValue"/></td><td>Return the value of a property as a variant</td></tr>
<tr><td><link id="GetSetProp"/></td><td>Return the value of a set property</td></tr>
<tr><td><link id="GetStrProp"/></td><td>Return the value of a string property</td></tr>
<tr><td><link id="GetWideStrProp"/></td><td>Return the value of a widestring property</td></tr>
<tr><td><link id="GetVariantProp"/></td><td>Return the value of a variant property</td></tr>
<tr><td><link id="SetEnumProp"/></td><td>Set the value of an enumerated type property</td></tr>
<tr><td><link id="SetFloatProp"/></td><td>Set the value of a float property</td></tr>
<tr><td><link id="SetInt64Prop"/></td><td>Set the value of an Int64 property</td></tr>
<tr><td><link id="SetMethodProp"/></td><td>Set the value of a procedural type property</td></tr>
<tr><td><link id="SetObjectProp"/></td><td>Set the value of an object property</td></tr>
<tr><td><link id="SetOrdProp"/></td><td>Set the value of an ordinal type property</td></tr>
<tr><td><link id="SetPropValue"/></td><td>Set the value of a property through a variant</td></tr>
<tr><td><link id="SetSetProp"/></td><td>Set the value of a set property</td></tr>
<tr><td><link id="SetStrProp"/></td><td>Set the value of a string property</td></tr>
<tr><td><link id="SetWideStrProp"/></td><td>Set the value of a widestring property</td></tr>
<tr><td><link id="SetVariantProp"/></td><td>Set the value of a variant property</td></tr>
</table>
</descr>
</topic>
<topic name="AuxiliaryTypinfo">
<short>Auxiliary functions</short>
<descr>
<p>
Other typinfo related functions.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="GetEnumName"/></td><td>Get an enumerated type element name</td></tr>
<tr><td><link id="GetEnumValue"/></td><td>Get ordinal number of an enumerated type, based on the name.</td></tr>
<tr><td><link id="GetEnumNameCount"/></td><td>Get number of elements in an enumerated type.</td></tr>
<tr><td><link id="GetTypeData"/></td><td>Skip type name and return a pointer to the type data</td></tr>
<tr><td><link id="SetToString"/></td><td>Convert a set to its string representation</td></tr>
<tr><td><link id="StringToSet"/></td><td>Convert a string representation of a set to a set</td></tr>
</table>
</descr>
</topic>
<element name="BooleanIdents">
<short>Names for boolean values</short>
</element>
<element name="DotSep">
<short>Name separator character</short>
</element>
<element name="ptField">
<short>Property access directly from field</short>
</element>
<element name="ptStatic">
<short>Property access via static method</short>
</element>
<element name="ptVirtual">
<short>Property access via virtual method</short>
</element>
<element name="ptConst">
<short>Constant used in access method</short>
</element>
<element name="tkAny">
<short>Any property type</short>
</element>
<element name="tkMethods">
<short>Only method properties. (event handlers)</short>
</element>
<element name="tkProperties">
<short>Real properties. (not methods)</short>
</element>
<element name="PShortString">
<short>Pointer to shortstring</short>
</element>
<element name="PByte">
<short>Pointer to byte</short>
</element>
<element name="PWord">
<short>Pointer to Word</short>
</element>
<element name="PLongint">
<short>Pointer to longint</short>
</element>
<element name="PBoolean">
<short>Pointer to boolean</short>
</element>
<element name="PSingle">
<short>Pointer to single</short>
</element>
<element name="PDouble">
<short>Pointer to double</short>
</element>
<element name="PExtended">
<short>Pointer to extended</short>
</element>
<element name="PComp">
<short>Pointer to comp</short>
</element>
<element name="PFixed16">
<short>Pointer to Fixed16</short>
</element>
<element name="Variant">
<short>Dummy type. Do not use.</short>
</element>
<element name="TTypeKind">
<short>Type of a property.</short>
</element>
<element name="tkString">
<short>Alias for the <var>tsSString</var> enumeration value</short>
</element>
<element name="TTypeKind.tkUnknown">
<short>Unknown property type.</short>
</element>
<element name="TTypeKind.tkInteger">
<short>Integer property.</short>
</element>
<element name="TTypeKind.tkChar">
<short>Char property.</short>
</element>
<element name="TTypeKind.tkEnumeration">
<short>Enumeration type property.</short>
</element>
<element name="TTypeKind.tkFloat">
<short>Float property.</short>
</element>
<element name="TTypeKind.tkSet">
<short>Set property.</short>
</element>
<element name="TTypeKind.tkMethod">
<short>Method property.</short>
</element>
<element name="TTypeKind.tkSString">
<short>Shortstring property.</short>
</element>
<element name="TTypeKind.tkLString">
<short>Longstring property.</short>
</element>
<element name="TTypeKind.tkAString">
<short>Ansistring property.</short>
</element>
<element name="TTypeKind.tkWString">
<short>Widestring property.</short>
</element>
<element name="TTypeKind.tkVariant">
<short>Variant property.</short>
</element>
<element name="TTypeKind.tkArray">
<short>Array property.</short>
</element>
<element name="TTypeKind.tkRecord">
<short>Record property.</short>
</element>
<element name="TTypeKind.tkInterface">
<short>Interface property.</short>
</element>
<element name="TTypeKind.tkClass">
<short>Class property.</short>
</element>
<element name="TTypeKind.tkObject">
<short>Object property.</short>
</element>
<element name="TTypeKind.tkWChar">
<short>Widechar property.</short>
</element>
<element name="TTypeKind.tkBool">
<short>Boolean property.</short>
</element>
<element name="TTypeKind.tkInt64">
<short>Int64 property.</short>
</element>
<element name="TTypeKind.tkQWord">
<short>QWord property.</short>
</element>
<element name="TTypeKind.tkDynArray">
<short>Dynamical array property.</short>
</element>
<element name="TTypeKind.tkInterfaceRaw">
<short>Raw interface property.</short>
</element>
<element name="TOrdType">
<short>Size and sign of ordinal property type.</short>
<descr>
If the property is and ordinal type, then <var>TOrdType</var> determines
the size and sign of the ordinal type:
</descr>
</element>
<element name="TOrdType.otSByte">
<short>Signed byte</short>
</element>
<element name="TOrdType.otUByte">
<short>Unsigned byte</short>
</element>
<element name="TOrdType.otSWord">
<short>Signed word</short>
</element>
<element name="TOrdType.otUWord">
<short>Unsigned word</short>
</element>
<element name="TOrdType.otSLong">
<short>Signed longint</short>
</element>
<element name="TOrdType.otULong">
<short>Unsigned longing (Cardinal)</short>
</element>
<element name="TOrdType">
<short>Alias for <link id="#rtl.typinfo.TordType">TOrdType</link>.</short>
<descr>
If the property is and ordinal type, then <var>TOrdType</var> determines
the size and sign of the ordinal type:
</descr>
</element>
<element name="TOrdType.otSByte">
<short>Signed byte</short>
</element>
<element name="TOrdType.otUByte">
<short>Unsigned byte</short>
</element>
<element name="TOrdType.otSWord">
<short>Signed word</short>
</element>
<element name="TOrdType.otUWord">
<short>Unsigned word</short>
</element>
<element name="TOrdType.otSLong">
<short>Signed longint</short>
</element>
<element name="TOrdType.otULong">
<short>Unsigned longing (Cardinal)</short>
</element>
<element name="TFloatType">
<short>The size of a float type.</short>
</element>
<element name="TFloatType.ftSingle">
<short>Single-sized float</short>
</element>
<element name="TFloatType.ftDouble">
<short>Double-sized float</short>
</element>
<element name="TFloatType.ftExtended">
<short>Extended-size float</short>
</element>
<element name="TFloatType.ftComp">
<short>Comp-type float</short>
</element>
<element name="TFloatType.ftCurr">
<short>Currency-type float</short>
</element>
<element name="TFloatType.ftFixed16">
<short>16-bit float type</short>
</element>
<element name="TFloatType.ftFixed32">
<short>32-bit float type.</short>
</element>
<element name="TMethodKind">
<short>Method type description</short>
</element>
<element name="TMethodKind.mkProcedure">
<short>Procedure method.</short>
</element>
<element name="TMethodKind.mkFunction">
<short>Function method</short>
</element>
<element name="TMethodKind.mkConstructor">
<short>Class constructor</short>
</element>
<element name="TMethodKind.mkDestructor">
<short>Class Destructor</short>
</element>
<element name="TMethodKind.mkClassProcedure">
<short>Class procedure</short>
</element>
<element name="TMethodKind.mkClassFunction">
<short>Class function</short>
</element>
<element name="TParamFlags">
<short>The kind of parameter for a method</short>
</element>
<element name="TParamFlags.pfVar">
<short>Parameter passed by reference</short>
</element>
<element name="TParamFlags.pfConst">
<short>Parameter passed as const (reference)</short>
</element>
<element name="TParamFlags.pfArray">
<short>Array parameter</short>
</element>
<element name="TParamFlags.pfAddress">
<short>Address is passed</short>
</element>
<element name="TParamFlags.pfReference">
<short>Reference passed</short>
</element>
<element name="TParamFlags.pfOut">
<short>Out (by reference)</short>
</element>
<element name="TIntfFlag">
<short>Type of interface.</short>
</element>
<element name="TIntfFlags">
<short>Set of <link id="TIntfFlag"/>.</short>
</element>
<element name="TIntfFlagsBase">
<short>Set of <link id="TIntfFlag"/>.</short>
</element>
<element name="TIntfFlag.ifHasGuid">
<short>Interface has GUID identifier</short>
</element>
<element name="TIntfFlag.ifDispInterface">
<short>Interface is a dual dispatch interface</short>
</element>
<element name="TIntfFlag.ifDispatch">
<short>Interface is a dispatch interface</short>
</element>
<element name="TTypeKinds">
<short>Set of <link id="TTypeKind"/> enumeration.</short>
</element>
<element name="TTypeInfo">
<short>Type information record</short>
<descr>
<p>
The <var>TypeInfo</var> function returns a pointer to a <var>TTypeInfo</var>
record.
</p>
<p>
Note that the Name field is stored with as much bytes as needed to store the name,
it is not padded to 255 characters.
The type data immediately follows the <var>TTypeInfo</var> record as a <link
id="TTypeData"/> record.
</p>
</descr>
</element>
<element name="TTypeInfo.Name">
<short>Type name</short>
</element>
<element name="TTypeInfo.Kind">
<short>Type kind</short>
</element>
<element name="PTypeInfo">
<short>Pointer to <link id="TTypeInfo"/> record</short>
</element>
<element name="PPTypeInfo">
<short>Pointer to <link id="PTypeInfo"/> pointer</short>
</element>
<element name="PTypeData">
<short>Pointer to <link id="TTypeData"/> record.</short>
</element>
<element name="TTypeData">
<short>Class properties type data record.</short>
<descr>
<p>
If the typeinfo kind is <var>tkClass</var>, then the property
information follows the <var>UnitName</var> string, as an array of <link
id="TPropInfo"/> records.
</p>
</descr>
</element>
<element name="TPropData">
<short>Property data record</short>
<descr>
The <var>TPropData</var> record is not used, but is provided for completeness and
compatibility with Delphi.
</descr>
</element>
<element name="PPropInfo">
<short>Pointer to <link id="TPropInfo"/> record</short>
</element>
<element name="TPropInfo">
<short>Record describing one published property of a class</short>
<descr>
<p>
The <var>TPropInfo</var> record describes one published property of a class.
The property information of a class are stored as an array of
<var>TPropInfo</var> records.
</p>
<p>
The <var>Name</var> field is stored not with 255 characters, but with just as many characters
as required to store the name.
</p>
</descr>
</element>
<element name="TPropInfo.PropType">
<short>Property type</short>
</element>
<element name="TPropInfo.GetProc">
<short>Read handler</short>
</element>
<element name="TPropInfo.SetProc">
<short>Write handler</short>
</element>
<element name="TPropInfo.StoredProc">
<short>Procedure pointer for stored keyword.</short>
</element>
<element name="TPropInfo.Index">
<short>Index for array properties</short>
</element>
<element name="TPropInfo.Default">
<short>Default value</short>
</element>
<element name="TPropInfo.NameIndex">
<short>Index for indexed properties</short>
</element>
<element name="TPropInfo.PropProcs">
<short>Flags describing property procedures.</short>
</element>
<element name="TPropInfo.Name">
<short>Property name</short>
</element>
<element name="TProcInfoProc">
<short>Property info callback method</short>
</element>
<element name="TPropList">
<short>Array of property information pointers</short>
</element>
<element name="PPropList">
<short>Pointer to <link id="TPropList"/></short>
</element>
<element name="EPropertyError">
<short>Exception raised in case of an error in one of the functions.</short>
</element>
<element name="FindPropInfo">
<short>Return property information by property name.</short>
<descr>
<p>
<var>FindPropInfo</var> examines the published property information of a class and
returns a pointer to the property information for property <var>PropName</var>.
The class to be examined can be specified in one of two ways:
</p>
<dl>
<dt>AClass</dt><dd>a class pointer.</dd>
<dt>Instance</dt><dd>an instance of the class to be investigated.</dd>
</dl>
<p>
If the property does not exist, a <var>EPropertyError</var> exception will be
raised. The <link id="GetPropInfo"/> function has the same function as the
<var>FindPropInfo</var> function, but returns <var>Nil</var> if the property does not
exist.
</p>
</descr>
<errors>
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetPropInfo"/>
<link id="GetPropList"/>
<link id="GetPropInfos"/>
</seealso>
<example file="typinfex/ex14"/>
</element>
<element name="GetEnumName">
<short>Return name of enumeration constant.</short>
<descr>
<p>
<var>GetEnumName</var> scans the type information for the enumeration type
described by <var>TypeInfo</var> and returns the name of the enumeration
constant for the element with ordinal value equal to <var>Value</var>.
</p>
<p>
If <var>Value</var> is out of range, the first element of the enumeration type
is returned. The result is returned in the case that was used in the
declaration. (In earlier versions of FPC, the name was lowercased).
</p>
<p>
This can be used in combination with <var>GetOrdProp</var> to stream a property
of an enumerated type.
</p>
</descr>
<errors>
No check is done to determine whether <var>TypeInfo</var> really points to the
type information for an enumerated type.
</errors>
<seealso>
<link id="GetOrdProp"/>
<link id="GetEnumValue"/>
</seealso>
<example file="typinfex/ex9"/>
</element>
<element name="GetEnumProp">
<short>Return the value of an enumeration type property.</short>
<descr>
<var>GetEnumProp</var> returns the value of an property of an enumerated type
and returns the name of the enumerated value for the object <var>Instance</var>.
The property whose value must be returned can be specified by its property
info in <var>PropInfo</var> or by its name in <var>PropName</var>
</descr>
<errors>
No check is done to determine whether <var>PropInfo</var> really points to the
property information for an enumerated type.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetEnumProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex2"/>
</element>
<element name="GetEnumValue">
<short>Get ordinal value for enumerated type by name</short>
<descr>
<p>
<var>GetEnumValue</var> scans the type information for the enumeration type
described by <var>TypeInfo</var> and returns the ordinal value for the element
in the enumerated type that has identifier <var>Name</var>. The identifier is
searched in a case-insensitive manner.
</p>
<p>
This can be used to set the value of enumerated properties from a stream.
</p>
<p>
For an example, see <link id="GetEnumName"/>.
</p>
</descr>
<errors>
If <var>Name</var> is not found in the list of enumerated values, then -1 is
returned. No check is done whether <var>TypeInfo</var> points to the type information
for an enumerated type.
</errors>
<seealso>
<link id="GetEnumName"/>
<link id="SetOrdProp"/>
</seealso>
</element>
<element name="GetFloatProp">
<short>Return value of floating point property</short>
<descr>
<var>GetFloatProp</var> returns the value of the float property described by
<var>PropInfo</var> or with name <var>Propname</var> for the object <var>Instance</var>.
All float types are converted
to extended.
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid float property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetFloatProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex4"/>
</element>
<element name="GetInt64Prop">
<short>return value of an Int64 property</short>
<descr>
<remark>
Publishing of Int64 properties is not yet supported by Free Pascal. This
function is provided for Delphi compatibility only at the moment.
</remark>
<p>
<var>GetInt64Prop</var> returns the value of the property of type
<var>Int64</var> that is described by <var>PropInfo</var> or with name <var>Propname</var>
for the object <var>Instance</var>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid <var>Int64</var> property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception
</errors>
<seealso>
<link id="SetInt64Prop"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetMethodProp"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex15"/>
</element>
<element name="GetMethodProp">
<short>Return value of a method property</short>
<descr>
<p>
<var>GetMethodProp</var> returns the method the property described by
<var>PropInfo</var> or with name <var>Propname</var> for object <var>Instance</var>.
The return type <var>TMethod</var> is defined in the <file>SysUtils</file> unit as:
</p>
<code>
TMethod = packed record
Code, Data: Pointer;
end;
</code>
<p>
<var>Data</var> points to the instance of the class with the method <var>Code</var>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid method property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetMethodProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex6"/>
</element>
<element name="GetObjectProp">
<short>Return value of an object-type property.</short>
<descr>
<p>
<var>GetObjectProp</var> returns the object which the property described by
<var>PropInfo</var> with name <var>Propname</var> points to for object <var>Instance</var>.
</p>
<p>
If <var>MinClass</var> is specified, then if the object is not descendent of
class <var>MinClass</var>, then <var>Nil</var> is returned.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid method property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetMethodProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex5"/>
</element>
<element name="GetObjectPropClass">
<short>Return class of property.</short>
<descr>
<p>
<var>GetObjectPropClass</var> returns the declared class of the property with name
<var>PropName</var>. This may not be the actual class of the property value.
</p>
<p>
For an example, see <link id="GetObjectProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetMethodProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
</seealso>
</element>
<element name="GetOrdProp">
<short>Get the value of an ordinal property</short>
<descr>
<p>
<var>GetOrdProp</var> returns the value of the ordinal property described by
<var>PropInfo</var> or with name <var>PropName</var> for the object <var>Instance</var>.
The value is returned as a longint, which should be typecast to the
needed type.
</p>
<p>
Ordinal properties that can be retrieved include:
</p>
<dl>
<dt>Integers and subranges of integers</dt>
<dd>The value of the integer will be returned.</dd>
<dt>Enumerated types and subranges of enumerated types</dt>
<dd>The ordinal value of the enumerated type will be returned.</dd>
<dt>Sets</dt>
<dd>If the base type of the set has less than 31 possible values.
If a bit is set in the return value, then the corresponding element of the
base ordinal class of the set type must be included in the set.
</dd>
</dl>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid ordinal property of <var>Instance</var>
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
<example file="typinfex/ex1"/>
</element>
<element name="GetPropInfo">
<short>Return property type information, by property name.</short>
<descr>
<p>
<var>GetPropInfo</var> returns a pointer to the <var>TPropInfo</var> record for the
<var>PropName</var> property of a class. The class to examine can be specified
in one of three ways:
</p>
<dl>
<dt>Instance</dt><dd>An instance of the class.</dd>
<dt>AClass</dt><dd>A class pointer to the class.</dd>
<dt>TypeInfo</dt><dd>A pointer to the type information of the class.</dd>
</dl>
<p>
In each of these three ways, if <var>AKinds</var> is specified, if the property
has <var>TypeKind</var> which is not included in <var>Akinds</var>, <var>Nil</var> will be
returned.
</p>
<p>
For an example, see most of the other functions.
</p>
</descr>
<errors>
If the property <var>PropName</var> does not exist, <var>Nil</var> is returned.
</errors>
<seealso>
<link id="GetPropInfos"/>
<link id="GetPropList"/>
</seealso>
</element>
<element name="GetPropInfos">
<short>Return a list of published properties.</short>
<descr>
<var>GetPropInfos</var> stores pointers to the property information of all published
properties of a class with class info <var>TypeInfo</var> in the list pointed to by
<var>Proplist</var>. The <var>PropList</var> pointer must point to a memory location that
contains enough space to hold all properties of the class and its parent classes.
</descr>
<errors>
No checks are done to see whether <var>PropList</var> points to a memory area that
is big enough to hold all pointers.
</errors>
<seealso>
<link id="GetPropInfo"/>
<link id="GetPropList"/>
</seealso>
<example file="typinfex/ex12"/>
</element>
<element name="GetPropList">
<short>Return a list of a certain type of published properties.</short>
<descr>
<p>
<var>GetPropList</var> stores pointers to property information of the class with class
info <var>TypeInfo</var> for properties of kind <var>TypeKinds</var> in the list pointed to
by <var>Proplist</var>. <var>PropList</var> must contain enough space to hold all properties.
</p>
<p>
The function returns the number of pointers that matched the criteria and were stored
in <var>PropList</var>.
</p>
</descr>
<errors>
No checks are done to see whether <var>PropList</var> points to a memory area that is big enough
to hold all pointers.
</errors>
<seealso>
<link id="GetPropInfos"/>
<link id="GetPropInfo"/>
</seealso>
<example file="typinfex/ex13"/>
</element>
<element name="GetPropValue">
<short>Get property value as a string.</short>
<descr>
Due to missing <var>Variant</var> support, <var>GetPropValue</var> is not yet implemented.
The declaration is provided for compatibility with Delphi.
</descr>
<errors>
</errors>
<seealso>
</seealso>
</element>
<element name="GetSetProp">
<short>Return the value of a set property.</short>
<descr>
<p>
<var>GetSetProp</var> returns the contents of a set property as a string.
The property to be returned can be specified by it's name in <var>PropName</var>
or by its property information in <var>PropInfo</var>.
</p>
<p>
The returned set is a string representation of the elements in the set as
returned by <link id="SetToString"/>. The <var>Brackets</var> option can be used to
enclose the string representation in square brackets.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid ordinal property of <var>Instance</var>
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetSetProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
</seealso>
<example file="typinfex/ex7"/>
</element>
<element name="GetStrProp">
<short>Return the value of a string property.</short>
<descr>
<var>GetStrProp</var> returns the value of the string property described by
<var>PropInfo</var> or with name <var>PropName</var> for object <var>Instance</var>.
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid string property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetStrProp"/>
<link id="SetWideStrProp"/>
<link id="GetOrdProp"/>
<link id="GetFloatProp"/>,
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
</seealso>
<example file="typinfex/ex3"/>
</element>
<element name="GetTypeData">
<short>Return a pointer to type data, based on type information.</short>
<descr>
<var>GetTypeData</var> returns a pointer to the <var>TTypeData</var> record that
follows after the <var>TTypeInfo</var> record pointed to by <var>TypeInfo</var>.
It essentially skips the <var>Kind</var> and <var>Name</var> fields in the
<var>TTypeInfo</var> record.
</descr>
<errors>
None.
</errors>
<seealso>
</seealso>
</element>
<element name="GetVariantProp">
<short>Return the value of a variant property.</short>
<descr>
Due to missing Variant support, the <var>GetVariantProp</var> function is not
yet implemented. Provided for Delphi compatibility only.
</descr>
<errors>
</errors>
<seealso>
<link id="SetVariantProp"/>
</seealso>
</element>
<element name="IsPublishedProp">
<short>Check whether a published property exists.</short>
<descr>
<p>
<var>IsPublishedProp</var> returns true if a class has a published property with
name <var>PropName</var>. The class can be specified in one of two ways:
</p>
<dl>
<dt>AClass</dt><dd>A class pointer to the class.</dd>
<dt>Instance</dt><dd>An instance of the class.</dd>
</dl>
</descr>
<errors>
No checks are done to ensure <var>Instance</var> or <var>AClass</var> are valid
pointers. Specifying an invalid property name in <var>PropName</var> will result
in an <var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="IsStoredProp"/>
<link id="PropIsType"/>
</seealso>
<example file="typinfex/ex10"/>
</element>
<element name="IsStoredProp">
<short>Check whether a property is stored.</short>
<descr>
<p>
<var>IsStoredProp</var> returns <var>True</var> if the <var>Stored</var> modifier evaluates
to <var>True</var> for the property described by <var>PropInfo</var> or with name
<var>PropName</var> for object <var>Instance</var>.
It returns <var>False</var> otherwise. If the function returns
<var>True</var>, this indicates that the property should be written when
streaming the object <var>Instance</var>.
</p>
<p>
If there was no <var>stored</var> modifier in the declaration of the property,
<var>True</var> will be returned.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="IsPublishedProp"/>
<link id="PropIsType"/>
</seealso>
<example file="typinfex/ex11"/>
</element>
<element name="PropIsType">
<short>Check the type of a published property.</short>
<descr>
<p>
<var>PropIsType</var> returns <var>True</var> if the property with name <var>PropName</var>
has type <var>TypeKind</var>. It returns <var>False</var> otherwise. The class to be
examined can be specified in one of two ways:
</p>
<dl>
<dt>AClass</dt><dd>A class pointer.</dd>
<dt>Instance</dt><dd>An instance of the class.</dd>
</dl>
</descr>
<errors>
No checks are done to ensure <var>Instance</var> or <var>AClass</var> are valid
pointers.Specifying an invalid property name in <var>PropName</var> will result
in an <var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="IsPublishedProp"/>
<link id="IsStoredProp"/>
<link id="PropType"/>
</seealso>
<example file="typinfex/ex16"/>
</element>
<element name="PropType">
<short>Return the type of a property</short>
<descr>
<p>
<var>Proptype</var> returns the type of the property <var>PropName</var> for a class.
The class to be examined can be specified in one of 2 ways:
</p>
<dl>
<dt>AClass</dt><dd>A class pointer.</dd>
<dt>Instance</dt><dd>An instance of the class.</dd>
</dl>
</descr>
<errors>
No checks are done to ensure <var>Instance</var> or <var>AClass</var> are valid
pointers. Specifying an invalid property name in <var>PropName</var> will result
in an <var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="IsPublishedProp"/>
<link id="IsStoredProp"/>
<link id="PropIsType"/>
</seealso>
<example file="typinfex/ex17"/>
</element>
<element name="SetEnumProp">
<short>Set value of an enumerated-type property</short>
<descr>
<p>
<var>SetEnumProp</var> sets the property described by <var>PropInfo</var> or with name
<var>PropName</var> to <var>Value</var>. <var>Value</var> must be a string with the name
of the enumerate value, i.e. it can be used as an argument to
<link id="GetEnumValue"/>.
</p>
<p>
For an example, see <link id="GetEnumProp"/>.
</p>
</descr>
<errors>
No checks are done to ensure <var>Instance</var> or <var>PropInfo</var> are valid
pointers. Specifying an invalid property name in <var>PropName</var> will result
in an <var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetEnumProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<element name="SetFloatProp">
<short>Set value of a float property.</short>
<descr>
<p>
<var>SetFloatProp</var> assigns <var>Value</var> to the property described by
<var>PropInfo</var> or with name <var>Propname</var> for the object <var>Instance</var>.
</p>
<p>
For an example, see <link id="GetFloatProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid float property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetFloatProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>,
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<element name="SetInt64Prop">
<short>Set value of a Int64 property</short>
<descr>
<p>
<var>SetInt64Prop</var> assigns <var>Value</var> to the property of type
<var>Int64</var> that is described by <var>PropInfo</var> or with name <var>Propname</var>
for the object <var>Instance</var>.
</p>
<p>
For an example, see <link id="GetInt64Prop"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid <var>Int64</var> property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
</seealso>
</element>
<element name="SetMethodProp">
<short>Set the value of a method property</short>
<descr>
<p>
<var>SetMethodProp</var> assigns <var>Value</var> to the method the property described
by <var>PropInfo</var> or with name <var>Propname</var> for object <var>Instance</var>.
</p>
<p>
The type <var>TMethod</var> of the <var>Value</var> parameter is defined in the
<file>SysUtils</file> unit as:
</p>
<code>
TMethod = packed record
Code, Data: Pointer;
end;
</code>
<p>
<var>Data</var> should point to the instance of the class with the method <var>Code</var>.
</p>
<p>
For an example, see <link id="GetMethodProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid method property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetMethodProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
</seealso>
</element>
<element name="SetObjectProp">
<short>Set the value of an object-type property.</short>
<descr>
<p>
<var>SetObjectProp</var> assigns <var>Value</var> to the object property described by
<var>PropInfo</var> or with name <var>Propname</var> for the object <var>Instance</var>.
</p>
<p>
For an example, see <link id="GetObjectProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid object property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetObjectProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<element name="SetOrdProp">
<short>Set value of an ordinal property</short>
<descr>
<p>
<var>SetOrdProp</var> assigns <var>Value</var> to the ordinal property described by
<var>PropInfo</var> or with name <var>Propname</var> for the object <var>Instance</var>.
</p>
<p>
Ordinal properties that can be set include:
</p>
<dl>
<dt>Integers and subranges of integers</dt>
<dd>The actual value of the integer must be passed.</dd>
<dt>Enumerated types and subranges of enumerated types</dt>
<dd>The ordinal value of the enumerated type must be passed.</dd>
<dt>Subrange types</dt>
<dd>of integers or enumerated types. Here the ordinal value must be passed.</dd>
<dt>Sets</dt>
<dd>If the base type of the set has less than 31 possible values.
For each possible value; the corresponding bit of <var>Value</var> must be set.</dd>
</dl>
<p>
For an example, see <link id="GetOrdProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid ordinal property of <var>Instance</var>.
No range checking is performed.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<element name="SetPropValue">
<short>Set property value as variant</short>
<descr>
Due to missing Variant support, this function is not yet implemented;
it is provided for Delphi compatibility only.
</descr>
<errors>
</errors>
<seealso>
</seealso>
</element>
<element name="SetSetProp">
<short>Set value of set-typed property.</short>
<descr>
<p>
<var>SetSetProp</var> sets the property specified by <var>PropInfo</var> or
<var>PropName</var> for object <var>Instance</var> to <var>Value</var>. <var>Value</var> is a
string which contains a comma-separated list of values, each value being a
string-representation of the enumerated value that should be included in
the set. The value should be accepted by the <link id="StringToSet"/> function.
</p>
<p>
The value can be formed using the <link id="SetToString"/> function.
</p>
<p>
For an example, see <link id="GetSetProp"/>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid ordinal property of <var>Instance</var>.
No range checking is performed.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetSetProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
<link id="SetToString"/>
<link id="StringToSet"/>
</seealso>
</element>
<element name="SetStrProp">
<short>Set value of a string property</short>
<descr>
<p>
<var>SetStrProp</var> assigns <var>Value</var> to the string property described by
<var>PropInfo</var> or with name <var>Propname</var> for object <var>Instance</var>.
</p>
<p>
For an example, see <link id="GetStrProp"/>
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid string property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetStrProp"/>
<link id="SetWideStrProp"/>
<link id="SetOrdProp"/>
<link id="SetFloatProp"/>,
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<element name="SetToString">
<short>Convert set to a string description</short>
<descr>
<p>
<var>SetToString</var> takes an integer representation of a set (as received e.g.
by <var>GetOrdProp</var>) and turns it into a string representing the elements in
the set, based on the type information found in the <var>PropInfo</var> property
information. By default, the string representation is not surrounded by
square brackets. Setting the <var>Brackets</var> parameter to <var>True</var> will
surround the string representation with brackets.
</p>
<p>
The function returns the string representation of the set.
</p>
</descr>
<errors>
No checking is done to see whether <var>PropInfo</var> points to valid property
information.
</errors>
<seealso>
<link id="GetEnumName"/>
<link id="GetEnumValue"/>
<link id="StringToSet"/>
</seealso>
<example file="typinfex/ex18"/>
</element>
<element name="SetVariantProp">
<short>Set value of a variant property</short>
<descr>
Due to missing Variant support, this function is not yet implemented.
Provided for Delphi compatibility only.
</descr>
<errors>
</errors>
<seealso>
</seealso>
</element>
<element name="StringToSet">
<short>Convert string description to a set.</short>
<descr>
<p>
<var>StringToSet</var> converts the string representation of a set in <var>Value</var>
to a integer representation of the set, using the property information found
in <var>PropInfo</var>. This property information should point to the property
information of a set property. The function returns the integer
representation of the set. (i.e, the set value, typecast to an integer)
</p>
<p>
The string representation can be surrounded with square brackets, and must
consist of the names of the elements of the base type of the set. The base
type of the set should be an enumerated type. The elements should be
separated by commas, and may be surrounded by spaces.
each of the names will be fed to the <link id="GetEnumValue"/> function.
</p>
<p>
For an example, see <link id="SetToString"/>.
</p>
</descr>
<errors>
No checking is done to see whether <var>PropInfo</var> points to valid property
information. If a wrong name is given for an enumerated value, then an
<var>EPropertyError</var> will be raised.
</errors>
<seealso>
<link id="GetEnumName"/>
<link id="GetEnumValue"/>
<link id="SetToString"/>
</seealso>
</element>
<element name="OnGetPropValue">
<short>Callback to get a property value as a variant.</short>
<descr>
This callback is set by the variants unit to enable reading of properties as
a variant. If set, it is called by the <link id="GetPropValue"/> function.
</descr>
</element>
<element name="OnGetVariantprop">
<short>Callback to get a variant property value.</short>
<descr>
This callback is set by the variants unit to enable reading of variant properties
If set, it is called by the <link id="GetVariantProp"/> function.
</descr>
</element>
<element name="OnSetPropValue">
<short>Callback to set a property value as a variant.</short>
<descr>
This callback is set by the variants unit to enable writing of properties as
a variant. If set, it is called by the <link id="SetPropValue"/> function.
</descr>
</element>
<element name="OnSetVariantprop">
<short>Callback to set a variant property value.</short>
<descr>
This callback is set by the variants unit to enable writing of variant
properties. If set, it is called by the <link id="GetVariantProp"/> function.
</descr>
</element>
<element name="TGetPropValue">
<short>Callback type for the <link id="#rtl.TypInfo.OnGetPropValue">OnGetPropValue</link> callback
event</short>.
<descr>
The callback function must return the property with name <var>PropName</var>
of instance <var>Instance</var>. If <var>PreferStrings</var> is true, it
should favour converting the property to a string value. The function needs
to return the variant with the property value.
</descr>
</element>
<element name="TGetVariantProp">
<short>Callback type for the <link id="#rtl.TypInfo.OnGetVariantProp">OnGetVariantProp</link> callback
event</short>.
<descr>
The callback function must return the variant property with name <var>PropName</var>
of instance <var>Instance</var>.
</descr>
</element>
<element name="TSetPropValue">
<short>Callback type for the <link id="#rtl.TypInfo.OnSetPropValue">OnSetPropValue</link> callback
event</short>.
<descr>
The callback function must set the property with name <var>PropName</var>
of instance <var>Instance</var> to <var>Value</var>.
</descr>
</element>
<element name="TSetVariantProp">
<short>Callback type for the <link id="#rtl.TypInfo.OnSetVariantProp">OnSetVariantProp</link> callback
event</short>.
<descr>
The callback function must set the variant property with name <var>PropName</var>
of instance to <var>Value</var>.
</descr>
</element>
<!-- enumeration type Visibility: default -->
<element name="TParamFlag">
<short>Function or procedure parameter flags.</short>
<descr>
<var>TParamFlag</var> describes a parameter.
</descr>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfVar">
<short>Parameter is a var parameter (passed by reference)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfConst">
<short>Parameter is a const parameter (i.e. cannot be modified)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfArray">
<short>Parameter is an array parameter</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfAddress">
<short>Parameter is passed by address</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfReference">
<short>Parameter is passed by reference</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TParamFlag.pfOut">
<short>Parameter is a string parameter</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TIntfFlag.ifHasStrGUID">
<short>Interface has a string GUID identifier</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.OrdType">
<short>Type is an ordinal type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MinValue">
<short>Minimum value for the (subrange) type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MaxValue">
<short>Maximum value for the (subrange) type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.BaseType">
<short>Base type on which this type is based.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.NameList">
<short>List of names for an enumerated type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.CompType">
<short>Comp type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.FloatType">
<short>Float type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MaxLength">
<short>Maximum length (for a shortstring type)</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ClassType">
<short>Class type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ParentInfo">
<short>Parent class type info</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.PropCount">
<short>Property count for class type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.UnitName">
<short>Unit name in which type is defined.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MethodKind">
<short>Kind of method</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ParamCount">
<short>Method parameter count</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ParamList">
<short>Type data for parameters</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MinInt64Value">
<short>Minimum Int64 value for subrange type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MaxInt64Value">
<short>Maximum int64 value for subrange type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MinQWordValue">
<short>Minimum QWord value for a subrange type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.MaxQWordValue">
<short>Maximum QWord value for a subrange type.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.IntfParent">
<short>Parent interface type data.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.IntfFlags">
<short>Interface flags</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.GUID">
<short>GUID identification for interface</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.IntfUnit">
<short>Interface unit.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.RawIntfParent">
<short>Raw interface parent.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.RawIntfFlags">
<short>Raw interface parent flags.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.IID">
<short>GUID identifying raw interface.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.RawIntfUnit">
<short>Raw interface unit.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.IIDStr">
<short>IID string representation of interface</short>
</element>
<!-- variable Visibility: default -->
<element name="TPropData.PropCount">
<short>Property count.</short>
</element>
<!-- variable Visibility: default -->
<element name="_alignmentdummy">
<short>Pad data</short>
</element>
<!-- variable Visibility: default -->
<element name="TPropData.PropList">
<short>Property list</short>
</element>
<!-- function Visibility: default -->
<element name="GetWideStrProp">
<short>Read a widestring property</short>
<descr>
<var>GetWideStrProp</var> returns the value of the widestring property described by
<var>PropInfo</var> or with name <var>PropName</var> for object <var>Instance</var>.
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid widestring property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetStrProp"/>
<link id="SetWideStrProp"/>
<link id="GetOrdProp"/>
<link id="GetFloatProp"/>,
<link id="GetInt64Prop"/>
<link id="GetMethodProp"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="SetWideStrProp">
<short>Set a widestring property</short>
<descr>
<p>
<var>SetWideStrProp</var> assigns <var>Value</var> to the widestring property described by
<var>PropInfo</var> or with name <var>Propname</var> for object <var>Instance</var>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether
<var>PropInfo</var> describes a valid widestring property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetWideStrProp"/>
<link id="SetStrProp"/>
<link id="SetOrdProp"/>
<link id="SetFloatProp"/>,
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="GetEnumNameCount">
<short>Return number of names in an enumerated type</short>
<descr>
<var>GetEnumNameCount</var> returns the number of values (names) in the enumerated type,
described by <var>enum1</var>
</descr>
<errors>
No checking is done to see whether <var>Enum1</var> is really type information of an enumerated type.
</errors>
<seealso>
<link id="GetEnumValue"/>
<link id="GetEnumName"/>
</seealso>
</element>
<!-- alias type Visibility: default -->
<element name="ShortStringBase">
<short>Short string type definition</short>
<descr>
<var>ShortStringBase</var> is the base definition of a short string.
</descr>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.elSize">
<short>Dynamical array element size</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.elType2">
<short>Dynamical array Element type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.varType">
<short>Dynamical array element type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.elType">
<short>Dynamical array Element type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.DynUnitName">
<short>Unit name</short>
</element>
<!-- variable Visibility: default -->
<element name="_alignmentdummy">
<short>Dummy for alignment purposes</short>
</element>
<!--
function GetInterfaceProp(Instance: TObject; const PropName: string): IInterface;
function GetInterfaceProp(Instance: TObject; PropInfo: PPropInfo): IInterface;
procedure SetInterfaceProp(Instance: TObject; const PropName: string; const Value: IInterface);
procedure SetInterfaceProp(Instance: TObject; PropInfo: PPropInfo; const Value: IInterface);
-->
<!-- function Visibility: default -->
<element name="GetInterfaceProp">
<short>Return interface-typed property</short>
<descr>
<p>
<var>GetInterfaceProp</var> returns the interface which the property described by
<var>PropInfo</var> or with name <var>Propname</var> points to for object <var>Instance</var>.
</p>
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether <var>PropInfo</var> describes a valid method property of
<var>Instance</var>. Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="SetInterfaceProp"/>
<link id="GetOrdProp"/>
<link id="GetStrProp"/>
<link id="GetFloatProp"/>
<link id="GetInt64Prop"/>
<link id="GetSetProp"/>
<link id="GetObjectProp"/>
<link id="GetEnumProp"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="SetInterfaceProp">
<short>Set interface-valued property</short>
<descr>
<var>SetInterfaceProp</var> assigns <var>Value</var> to the object property described by
<var>PropInfo</var> or with name <var>Propname</var> for the object <var>Instance</var>.
</descr>
<errors>
No checking is done whether <var>Instance</var> is non-nil, or whether <var>PropInfo</var>
describes a valid interface property of <var>Instance</var>.
Specifying an invalid property name in <var>PropName</var> will result in an
<var>EPropertyError</var> exception.
</errors>
<seealso>
<link id="GetInterfaceProp"/>
<link id="SetObjectProp"/>
<link id="SetOrdProp"/>
<link id="SetStrProp"/>
<link id="SetFloatProp"/>
<link id="SetInt64Prop"/>
<link id="SetMethodProp"/>
</seealso>
</element>
<!--
********************************************************************
#rtl.typinfo.EPropertyConvertError
********************************************************************
-->
<!-- object Visibility: default -->
<element name="EPropertyConvertError">
<short>Exception raised when converting a property</short>
<descr>
<var>EPropertyConvertError</var> is not used in the Free Pascal
implementation of the typinfo unit, but is declared for Delphi
compatibility.
</descr>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkProcVar">
<short>Procedural variable</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkUString">
<short>Unicode string</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkUChar">
<short>Unicode character</short>
</element>
<!-- variable Visibility: default -->
<element name="_alignmentdummy">
<short>Dummy used for alignment</short>
</element>
<!-- function Visibility: default -->
<element name="GetUnicodeStrProp">
<short>Get UnicodeString-valued property</short>
<descr>
<var>GetUnicodeStrProp</var> returns the UnicodeString property from
<var>Instance</var>, where the property is identified by the
<var>PropInfo</var> pointer or the <var>PropertyName</var>.
</descr>
<errors>
If no property of the indicated name exists, or the value is not a Unicode
string, an exception will occur.
</errors>
<seealso>
<link id="GetStrProp"/>
<link id="SetUnicodeStrProp"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="SetUnicodeStrProp">
<short>Set UnicodeString-valued property</short>
<descr>
<var>SetUnicodeStrProp</var> sets the UnicodeString property from
<var>Instance</var> to <var>Value</var>, where the property is
identified by the <var>PropInfo</var> pointer or the <var>PropertyName</var>.
</descr>
<errors>
If no property of the indicated name exists, or it is not of type unicodestring,
an exception will occur.
</errors>
<seealso>
<link id="SetStrProp"/>
<link id="GetUnicodeStrProp"/>
</seealso>
</element>
<!-- pointer type Visibility: default -->
<element name="PVmtFieldEntry">
<short>Pointer to <link id="#rtl.typinfo.TVmtFieldEntry"/> type.</short>
<descr>
</descr>
<seealso>
<link id="TVmtFieldEntry"/>
<link id="TVmtFieldTable"/>
</seealso>
</element>
<!-- record type Visibility: default -->
<element name="TVmtFieldEntry">
<short>Describe a field of a record/class</short>
<descr>
<var>TVmtFieldEntry</var> records are generated by the compiler for all
fields of a record or class that have RTTI associated with them. They
describe the field as known to the compiler.
</descr>
<seealso>
<link id="PVmtFieldEntry"/>
<link id="TVmtFieldTable"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldEntry.FieldOffset">
<short>Offset of the field from the start of the class data</short>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldEntry.TypeIndex">
<short>Type of the field</short>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldEntry.Name">
<short>Name of the field</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PVmtFieldTable">
<short>Pointer to <link id="#rtl.typinfo.TVmtFieldTable"/> type.</short>
<seealso>
<link id="TVmtFieldTable"/>
</seealso>
</element>
<!-- record type Visibility: default -->
<element name="TVmtFieldTable">
<short>Table of field descriptions for a class or record type.</short>
<descr>
<var>TVmtFieldTable</var> describes the fields for which RTTI was generated.
A <var>TVmtFieldTable</var> entry is generated by the compiler in the RTTI
information, it is not something one creates manually.
Basically it contains a list of <link id="TVmtFieldEntry"/> values.
</descr>
<seealso>
<link id="TVmtFieldEntry"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldTable.Count">
<short>Number of fields in the table</short>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldTable.ClassTab">
<short>Class table</short>
</element>
<!-- variable Visibility: default -->
<element name="TVmtFieldTable.Fields">
<short>Array of fields. Note that the elements in the table have variable size</short>
</element>
<!-- variable Visibility: default -->
<element name="_alignmentdummy">
<short>Dummy for alignment purposes</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkHelper">
<short>Helper class type.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TMethodKind.mkClassConstructor">
<short>Class constructor method.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TMethodKind.mkClassDestructor">
<short>Class destructor method.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TMethodKind.mkOperatorOverload">
<short>Operator overloader</short>
</element>
<!-- enumeration type Visibility: default -->
<element name="TCallConv">
<short>Calling convention enumerator</short>
<descr>
<var>TCallConv</var> is a type describing the calling convention used by a
method. It contains an element for all supported calling conventions.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccReg">
<short>Register calling convention</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccCdecl">
<short>Cdecl calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccPascal">
<short>Pascal calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccStdCall">
<short>stdcall calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccSafeCall">
<short>SafeCall calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccCppdecl">
<short>Cppdecl calling convention</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccFar16">
<short>Far16 calling convention (Delphi compatibility)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccOldFPCCall">
<short>OldFPCCall calling convention (deprecated)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccInternProc">
<short>InternProc calling convention (compiler internal)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccSysCall">
<short>SysCall calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccSoftFloat">
<short>Softfloat calling convention.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCallConv.ccMWPascal">
<short>MWPascal (MetroWerks Pascal) calling convention.</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.HelperParent">
<short>Type information for parent helper class</short>
<descr>
<var>HelperParent</var> points to the type information of the parent helper
class. It is <var>Nil</var> if there is no parent class.
</descr>
<seealso>
<link id="TTypeData.ExtendedInfo"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ExtendedInfo">
<short>Type information for the extended type (record or class).</short>
<descr>
<var>ExtendedInfo</var> points to the type information of the type that is
being extended.
</descr>
<seealso>
<link id="TTypeData.HelperParent"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.HelperProps">
<short>Number of properties provided by the helper.</short>
<descr>
<var>HelperProps</var> contains the count of the published properties
provided by the helper class.
</descr>
<seealso>
<link id="TTypeData.HelperUnit"/>
<link id="TTypeData.HelperParent"/>
<link id="TTypeData.ExtendedInfo"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.HelperUnit">
<short>Unit the helper class is defined in.</short>
<descr>
<var>HelperUnit</var> contains the name of the unit that defines the helper
class.
</descr>
<seealso>
<link id="TTypeData.HelperProps"/>
<link id="TTypeData.HelperParent"/>
<link id="TTypeData.ExtendedInfo"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TPropData._alignmentdummy">
<short>Padding alignment</short>
</element>
<!-- function Visibility: default -->
<element name="GetRawInterfaceProp">
<short>Get a raw (CORBA) interface property.</short>
<descr>
<var>GetRawInterfaceProp</var> can be used to retrieve the value of a published CORBA interface
property with name <var>PropName</var> from object <var>Instance</var>.
Alternatively, the required property information can be specified by
<var>PropInfo</var> instead of the property name.
In difference with the <link id="GetInterfaceProp"/> function, no reference
counting is done.
</descr>
<errors>
If the property <var>PropName</var> does not exist, an <var>EPropertyError</var> exception is
raised.
</errors>
<seealso>
<link id="GetInterfaceProp"/>
<link id="SetRawInterfaceProp"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="SetRawInterfaceProp">
<short>Set a raw (CORBA) interface property.</short>
<descr>
<var>SetRawInterfaceProp</var> can be used to set the value of a published CORBA
interface with name <var>PropName</var> from object <var>Instance</var> to
<var>Value</var>. Alternatively, the required property information can be
specified by <var>PropInfo</var> instead of the property name.
In difference with the <link id="SetInterfaceProp"/> procedure, no reference
counting is done.
</descr>
<errors>
If the property <var>PropName</var> does not exist, an <var>EPropertyError</var> exception is
raised.
</errors>
<seealso>
<link id="SetInterfaceProp"/>
<link id="GetRawInterfaceProp"/>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkFile">
<short>File type (both text and binary)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkClassRef">
<short>Class of type</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TTypeKind.tkPointer">
<short>Pointer type</short>
</element>
<!-- record type Visibility: default -->
<element name="TArrayTypeData">
<short>Array type data</short>
<descr>
<var>TArrayTypeData</var> is used to describe arrays in RTTI. It can be
encountered when the type kind is <var>tkArray</var>, and is used for both
static and dynamic arrays and single or multi-dimensional arrays.
The type of the array elements is described in <var>elType</var>, and the ranges
for each of the dimensions (specified in <var>DimCount</var> in <var>Dims</var>.
</descr>
<seealso>
<link id="TTypeInfo"/>
<link id="TTypeKind"/>
<link id="TTypeData"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TArrayTypeData.Size">
<short>Declared size of the array</short>
</element>
<!-- variable Visibility: default -->
<element name="TArrayTypeData.ElCount">
<short>Total number of elements in the array</short>
</element>
<!-- variable Visibility: default -->
<element name="TArrayTypeData.ElType">
<short>Type information for an element in the array</short>
</element>
<!-- variable Visibility: default -->
<element name="TArrayTypeData.DimCount">
<short>Number of dimensions in the array</short>
</element>
<!-- variable Visibility: default -->
<element name="TArrayTypeData.Dims">
<short>Range information for each dimension in the array</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PManagedField">
<short>Pointer to <var>TManagedField</var></short>
<descr>
<var>PManagedField</var> is a pointer to <link id="TManagedField"/>. It is
used to describe automatically managed fields in records when the type kind
is <var>tkRecord</var>.
</descr>
<seealso>
<link id="TManagedField"/>
<link id="TTypeKind"/>
<link id="TTypeData"/>
</seealso>
</element>
<!-- record type Visibility: default -->
<element name="TManagedField">
<short>Managed field description</short>
<descr>
<var>TManagedField</var> describes 1 managed field in a record. It consists
of type information (<var>TypeRef</var>) and an offset in the record's
memory layout (<var>FldOffset</var>). Size can be determined from the type
information.
</descr>
<seealso>
<link id="TManagedField"/>
<link id="TTypeKind"/>
<link id="TTypeData"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TManagedField.TypeRef">
<short>Type information for the field</short>
</element>
<!-- variable Visibility: default -->
<element name="TManagedField.FldOffset">
<short>Offset in the record memory layout</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PProcedureParam">
<short>Pointer to <var>TProcedureParam</var></short>
<descr>
<var>PProcedureParam</var> is a pointer to <var>TProcedureParam</var>.
It is used in <link id="TProcedureSignature"/>.
</descr>
<seealso>
<link id="TProcedureParam"/>
<link id="TProcedureSignature"/>
</seealso>
</element>
<!-- record type Visibility: default -->
<element name="TProcedureParam">
<short>Procedure parameter description</short>
<descr>
<var>TProcedureParam</var> describes a single parameter to a procedure (or function).
</descr>
<seealso>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureParam.Flags">
<short>Flags for this parameter (see TParamFlags)</short>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureParam.ParamType">
<short>Type information for this parameter</short>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureParam.Name">
<short>Parameter name as in declaration.</short>
</element>
<!-- record type Visibility: default -->
<element name="TProcedureSignature">
<short>Procedure signature description record</short>
<descr>
<var>TProcedureSignature</var> describes a procedure/method call signature.
It consists of some flags (<var>Flags</var>), a calling convention
(<var>CC</var>), the result type (<var>ResultType</var>) if any, and a list
of <var>ParamCount</var> parameters (of type <link id="TProcedureParam"/>).
</descr>
<seealso>
<link id="TProcedureParam"/>
<link id="TCallConv"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureSignature.Flags">
<short>Flags for this procedure</short>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureSignature.CC">
<short>Calling convention for this procedure</short>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureSignature.ResultType">
<short>Result type info (Nil if no result)</short>
</element>
<!-- variable Visibility: default -->
<element name="TProcedureSignature.ParamCount">
<short>Number of parameter descriptions following the signature.</short>
</element>
<!-- function Visibility: default -->
<element name="TProcedureSignature.GetParam">
<short>Get parameter signature</short>
<descr>
<var>GetParam</var> can be used to retrieve a pointer to the description of a
parameter. The index <var>ParamIndex</var> is zero-based.
</descr>
<errors>
In case of an invalid parameter index, <var>Nil</var> is returned.
</errors>
<seealso>
<link id="TProcedureParam"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.CodePage">
<short>Codepage for a single-byte string type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.RecSize">
<short>Record size for records</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ManagedFldCount">
<short>Number of managed fields (followed by managed field info)</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ProcSig">
<short>Procedure signature for procedure type</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.ArrayData">
<short>Array element data</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.InstanceType">
<short>Pointer to instance type data</short>
</element>
<!-- variable Visibility: default -->
<element name="TTypeData.RefType">
<short>Type info for referred type (Nil for untyped pointer)</short>
</element>
<!-- constant Visibility: default -->
<element name="tkProcedure">
<short>Procedure kind</short>
</element>
</module>
</package>
</fpdoc-descriptions>
|