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
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <OSD_Protection.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <OSD_Protection.hxx>
#include <Quantity_Date.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Quantity_Date.hxx>
#include <OSD_Path.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <OSD.hxx>
#include <OSD_CachedFileSystem.hxx>
#include <OSD_Chronometer.hxx>
#include <OSD_Directory.hxx>
#include <OSD_DirectoryIterator.hxx>
#include <OSD_Disk.hxx>
#include <OSD_Environment.hxx>
#include <OSD_Error.hxx>
#include <OSD_ErrorList.hxx>
#include <OSD_Exception.hxx>
#include <OSD_Exception_ACCESS_VIOLATION.hxx>
#include <OSD_Exception_ARRAY_BOUNDS_EXCEEDED.hxx>
#include <OSD_Exception_CTRL_BREAK.hxx>
#include <OSD_Exception_ILLEGAL_INSTRUCTION.hxx>
#include <OSD_Exception_IN_PAGE_ERROR.hxx>
#include <OSD_Exception_INT_OVERFLOW.hxx>
#include <OSD_Exception_INVALID_DISPOSITION.hxx>
#include <OSD_Exception_NONCONTINUABLE_EXCEPTION.hxx>
#include <OSD_Exception_PRIV_INSTRUCTION.hxx>
#include <OSD_Exception_STACK_OVERFLOW.hxx>
#include <OSD_Exception_STATUS_NO_MEMORY.hxx>
#include <OSD_File.hxx>
#include <OSD_FileIterator.hxx>
#include <OSD_FileNode.hxx>
#include <OSD_FileSystem.hxx>
#include <OSD_FileSystemSelector.hxx>
#include <OSD_FromWhere.hxx>
#include <OSD_Function.hxx>
#include <OSD_Host.hxx>
#include <OSD_KindFile.hxx>
#include <OSD_LoadMode.hxx>
#include <OSD_LocalFileSystem.hxx>
#include <OSD_LockType.hxx>
#include <OSD_MAllocHook.hxx>
#include <OSD_MemInfo.hxx>
#include <OSD_OEMType.hxx>
#include <OSD_OpenFile.hxx>
#include <OSD_OpenMode.hxx>
#include <OSD_OSDError.hxx>
#include <OSD_Parallel.hxx>
#include <OSD_Path.hxx>
#include <OSD_PerfMeter.hxx>
#include <OSD_Process.hxx>
#include <OSD_Protection.hxx>
#include <OSD_PThread.hxx>
#include <OSD_SharedLibrary.hxx>
#include <OSD_SIGBUS.hxx>
#include <OSD_SIGHUP.hxx>
#include <OSD_SIGILL.hxx>
#include <OSD_SIGINT.hxx>
#include <OSD_SIGKILL.hxx>
#include <OSD_Signal.hxx>
#include <OSD_SignalMode.hxx>
#include <OSD_SIGQUIT.hxx>
#include <OSD_SIGSEGV.hxx>
#include <OSD_SIGSYS.hxx>
#include <OSD_SingleProtection.hxx>
#include <OSD_SysType.hxx>
#include <OSD_Thread.hxx>
#include <OSD_ThreadFunction.hxx>
#include <OSD_ThreadPool.hxx>
#include <OSD_Timer.hxx>
#include <OSD_WhoAmI.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_OSD(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("OSD"));
py::object klass;
//Python trampoline classes
// classes
// Class OSD_Chronometer from ./opencascade/OSD_Chronometer.hxx
klass = m.attr("OSD_Chronometer");
// nested enums
static_cast<py::class_<OSD_Chronometer , shared_ptr<OSD_Chronometer> >>(klass)
// constructors
.def(py::init< Standard_Boolean >() , py::arg("theThisThreadOnly")=static_cast<Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("IsStarted",
(Standard_Boolean (OSD_Chronometer::*)() const) static_cast<Standard_Boolean (OSD_Chronometer::*)() const>(&OSD_Chronometer::IsStarted),
R"#(Return true if timer has been started.)#"
)
.def("Reset",
(void (OSD_Chronometer::*)() ) static_cast<void (OSD_Chronometer::*)() >(&OSD_Chronometer::Reset),
R"#(Stops and Reinitializes the Chronometer.)#"
)
.def("Restart",
(void (OSD_Chronometer::*)() ) static_cast<void (OSD_Chronometer::*)() >(&OSD_Chronometer::Restart),
R"#(Restarts the Chronometer.)#"
)
.def("Stop",
(void (OSD_Chronometer::*)() ) static_cast<void (OSD_Chronometer::*)() >(&OSD_Chronometer::Stop),
R"#(Stops the Chronometer.)#"
)
.def("Start",
(void (OSD_Chronometer::*)() ) static_cast<void (OSD_Chronometer::*)() >(&OSD_Chronometer::Start),
R"#(Starts (after Create or Reset) or restarts (after Stop) the chronometer.)#"
)
.def("Show",
(void (OSD_Chronometer::*)() const) static_cast<void (OSD_Chronometer::*)() const>(&OSD_Chronometer::Show),
R"#(Shows the current CPU user and system time on the standard output stream <cout>. The chronometer can be running (laps Time) or stopped.)#"
)
.def("Show",
(void (OSD_Chronometer::*)( Standard_OStream & ) const) static_cast<void (OSD_Chronometer::*)( Standard_OStream & ) const>(&OSD_Chronometer::Show),
R"#(Shows the current CPU user and system time on the output stream <os>. The chronometer can be running (laps Time) or stopped.)#" , py::arg("theOStream")
)
.def("UserTimeCPU",
(Standard_Real (OSD_Chronometer::*)() const) static_cast<Standard_Real (OSD_Chronometer::*)() const>(&OSD_Chronometer::UserTimeCPU),
R"#(Returns the current CPU user time in seconds. The chronometer can be running (laps Time) or stopped.)#"
)
.def("SystemTimeCPU",
(Standard_Real (OSD_Chronometer::*)() const) static_cast<Standard_Real (OSD_Chronometer::*)() const>(&OSD_Chronometer::SystemTimeCPU),
R"#(Returns the current CPU system time in seconds. The chronometer can be running (laps Time) or stopped.)#"
)
.def("IsThisThreadOnly",
(Standard_Boolean (OSD_Chronometer::*)() const) static_cast<Standard_Boolean (OSD_Chronometer::*)() const>(&OSD_Chronometer::IsThisThreadOnly),
R"#(Return TRUE if current thread CPU time should be measured, and FALSE to measure all threads CPU time; FALSE by default,)#"
)
.def("SetThisThreadOnly",
(void (OSD_Chronometer::*)( Standard_Boolean ) ) static_cast<void (OSD_Chronometer::*)( Standard_Boolean ) >(&OSD_Chronometer::SetThisThreadOnly),
R"#(Set if current thread (TRUE) or all threads (FALSE) CPU time should be measured. Will raise exception if Timer is in started state.)#" , py::arg("theIsThreadOnly")
)
// methods using call by reference i.s.o. return
.def("Show",
[]( OSD_Chronometer &self ){
Standard_Real theUserSeconds;
self.Show(theUserSeconds);
return std::make_tuple(theUserSeconds); },
R"#(Returns the current CPU user time in a variable. The chronometer can be running (laps Time) or stopped.)#"
)
.def("Show",
[]( OSD_Chronometer &self ){
Standard_Real theUserSec;
Standard_Real theSystemSec;
self.Show(theUserSec,theSystemSec);
return std::make_tuple(theUserSec,theSystemSec); },
R"#(Returns the current CPU user and system time in variables. The chronometer can be running (laps Time) or stopped.)#"
)
// static methods
// static methods using call by reference i.s.o. return
.def_static("GetProcessCPU_s",
[]( ){
Standard_Real UserSeconds;
Standard_Real SystemSeconds;
OSD_Chronometer::GetProcessCPU(UserSeconds,SystemSeconds);
return std::make_tuple(UserSeconds,SystemSeconds); },
R"#(Returns CPU time (user and system) consumed by the current process since its start, in seconds. The actual precision of the measurement depends on granularity provided by the system, and is platform-specific.)#"
)
.def_static("GetThreadCPU_s",
[]( ){
Standard_Real UserSeconds;
Standard_Real SystemSeconds;
OSD_Chronometer::GetThreadCPU(UserSeconds,SystemSeconds);
return std::make_tuple(UserSeconds,SystemSeconds); },
R"#(Returns CPU time (user and system) consumed by the current thread since its start. Note that this measurement is platform-specific, as threads are implemented and managed differently on different platforms and CPUs.)#"
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_DirectoryIterator from ./opencascade/OSD_DirectoryIterator.hxx
klass = m.attr("OSD_DirectoryIterator");
// nested enums
static_cast<py::class_<OSD_DirectoryIterator , shared_ptr<OSD_DirectoryIterator> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Path &, const TCollection_AsciiString & >() , py::arg("where"), py::arg("Mask") )
// custom constructors
// methods
.def("Destroy",
(void (OSD_DirectoryIterator::*)() ) static_cast<void (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::Destroy),
R"#()#"
)
.def("Initialize",
(void (OSD_DirectoryIterator::*)( const OSD_Path & , const TCollection_AsciiString & ) ) static_cast<void (OSD_DirectoryIterator::*)( const OSD_Path & , const TCollection_AsciiString & ) >(&OSD_DirectoryIterator::Initialize),
R"#(Initializes the current File Directory)#" , py::arg("where"), py::arg("Mask")
)
.def("More",
(Standard_Boolean (OSD_DirectoryIterator::*)() ) static_cast<Standard_Boolean (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::More),
R"#(Returns TRUE if other items are found while using the 'Tree' method.)#"
)
.def("Next",
(void (OSD_DirectoryIterator::*)() ) static_cast<void (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::Next),
R"#(Sets the iterator to the next item. Returns the item value corresponding to the current position of the iterator.)#"
)
.def("Values",
(OSD_Directory (OSD_DirectoryIterator::*)() ) static_cast<OSD_Directory (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::Values),
R"#(Returns the next item found .)#"
)
.def("Failed",
(Standard_Boolean (OSD_DirectoryIterator::*)() const) static_cast<Standard_Boolean (OSD_DirectoryIterator::*)() const>(&OSD_DirectoryIterator::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_DirectoryIterator::*)() ) static_cast<void (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_DirectoryIterator::*)() ) static_cast<void (OSD_DirectoryIterator::*)() >(&OSD_DirectoryIterator::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_DirectoryIterator::*)() const) static_cast<Standard_Integer (OSD_DirectoryIterator::*)() const>(&OSD_DirectoryIterator::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Disk from ./opencascade/OSD_Disk.hxx
klass = m.attr("OSD_Disk");
// nested enums
static_cast<py::class_<OSD_Disk , shared_ptr<OSD_Disk> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Path & >() , py::arg("Name") )
.def(py::init< const Standard_CString >() , py::arg("PathName") )
// custom constructors
// methods
.def("Name",
(OSD_Path (OSD_Disk::*)() const) static_cast<OSD_Path (OSD_Disk::*)() const>(&OSD_Disk::Name),
R"#(Returns disk name of <me>.)#"
)
.def("SetName",
(void (OSD_Disk::*)( const OSD_Path & ) ) static_cast<void (OSD_Disk::*)( const OSD_Path & ) >(&OSD_Disk::SetName),
R"#(Instantiates <me> with <Name>.)#" , py::arg("Name")
)
.def("DiskSize",
(Standard_Integer (OSD_Disk::*)() ) static_cast<Standard_Integer (OSD_Disk::*)() >(&OSD_Disk::DiskSize),
R"#(Returns total disk capacity in 512 bytes blocks.)#"
)
.def("DiskFree",
(Standard_Integer (OSD_Disk::*)() ) static_cast<Standard_Integer (OSD_Disk::*)() >(&OSD_Disk::DiskFree),
R"#(Returns free available 512 bytes blocks on disk.)#"
)
.def("Failed",
(Standard_Boolean (OSD_Disk::*)() const) static_cast<Standard_Boolean (OSD_Disk::*)() const>(&OSD_Disk::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_Disk::*)() ) static_cast<void (OSD_Disk::*)() >(&OSD_Disk::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_Disk::*)() ) static_cast<void (OSD_Disk::*)() >(&OSD_Disk::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_Disk::*)() const) static_cast<Standard_Integer (OSD_Disk::*)() const>(&OSD_Disk::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Environment from ./opencascade/OSD_Environment.hxx
klass = m.attr("OSD_Environment");
// nested enums
static_cast<py::class_<OSD_Environment , shared_ptr<OSD_Environment> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TCollection_AsciiString & >() , py::arg("Name") )
.def(py::init< const TCollection_AsciiString &, const TCollection_AsciiString & >() , py::arg("Name"), py::arg("Value") )
// custom constructors
// methods
.def("SetValue",
(void (OSD_Environment::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Environment::*)( const TCollection_AsciiString & ) >(&OSD_Environment::SetValue),
R"#(Changes environment variable value. Raises ConstructionError either if the string contains characters not in range of ' '...'~' or if the string contains the character '$' which is forbidden.)#" , py::arg("Value")
)
.def("Value",
(TCollection_AsciiString (OSD_Environment::*)() ) static_cast<TCollection_AsciiString (OSD_Environment::*)() >(&OSD_Environment::Value),
R"#(Gets the value of an environment variable)#"
)
.def("SetName",
(void (OSD_Environment::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Environment::*)( const TCollection_AsciiString & ) >(&OSD_Environment::SetName),
R"#(Changes environment variable name. Raises ConstructionError either if the string contains characters not in range of ' '...'~' or if the string contains the character '$' which is forbidden.)#" , py::arg("name")
)
.def("Name",
(TCollection_AsciiString (OSD_Environment::*)() const) static_cast<TCollection_AsciiString (OSD_Environment::*)() const>(&OSD_Environment::Name),
R"#(Gets the name of <me>.)#"
)
.def("Build",
(void (OSD_Environment::*)() ) static_cast<void (OSD_Environment::*)() >(&OSD_Environment::Build),
R"#(Sets the value of an environment variable into system (physically).)#"
)
.def("Remove",
(void (OSD_Environment::*)() ) static_cast<void (OSD_Environment::*)() >(&OSD_Environment::Remove),
R"#(Removes (physically) an environment variable)#"
)
.def("Failed",
(Standard_Boolean (OSD_Environment::*)() const) static_cast<Standard_Boolean (OSD_Environment::*)() const>(&OSD_Environment::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_Environment::*)() ) static_cast<void (OSD_Environment::*)() >(&OSD_Environment::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_Environment::*)() ) static_cast<void (OSD_Environment::*)() >(&OSD_Environment::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_Environment::*)() const) static_cast<Standard_Integer (OSD_Environment::*)() const>(&OSD_Environment::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Error from ./opencascade/OSD_Error.hxx
klass = m.attr("OSD_Error");
// nested enums
static_cast<py::class_<OSD_Error , shared_ptr<OSD_Error> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Perror",
(void (OSD_Error::*)() ) static_cast<void (OSD_Error::*)() >(&OSD_Error::Perror),
R"#(Raises OSD_Error with accurate error message.)#"
)
.def("SetValue",
(void (OSD_Error::*)( const Standard_Integer , const Standard_Integer , const TCollection_AsciiString & ) ) static_cast<void (OSD_Error::*)( const Standard_Integer , const Standard_Integer , const TCollection_AsciiString & ) >(&OSD_Error::SetValue),
R"#(Instantiates error This is only used by OSD methods to instantiates an error code. No description is done for the programmer.)#" , py::arg("Errcode"), py::arg("From"), py::arg("Message")
)
.def("Error",
(Standard_Integer (OSD_Error::*)() const) static_cast<Standard_Integer (OSD_Error::*)() const>(&OSD_Error::Error),
R"#(Returns an accurate error code. To test these values, you must include "OSD_ErrorList.hxx")#"
)
.def("Failed",
(Standard_Boolean (OSD_Error::*)() const) static_cast<Standard_Boolean (OSD_Error::*)() const>(&OSD_Error::Failed),
R"#(Returns TRUE if an error occurs This is a way to test if a system call succeeded or not.)#"
)
.def("Reset",
(void (OSD_Error::*)() ) static_cast<void (OSD_Error::*)() >(&OSD_Error::Reset),
R"#(Resets error counter to zero This allows the user to ignore an error (WARNING).)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_FileIterator from ./opencascade/OSD_FileIterator.hxx
klass = m.attr("OSD_FileIterator");
// nested enums
static_cast<py::class_<OSD_FileIterator , shared_ptr<OSD_FileIterator> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Path &, const TCollection_AsciiString & >() , py::arg("where"), py::arg("Mask") )
// custom constructors
// methods
.def("Destroy",
(void (OSD_FileIterator::*)() ) static_cast<void (OSD_FileIterator::*)() >(&OSD_FileIterator::Destroy),
R"#()#"
)
.def("Initialize",
(void (OSD_FileIterator::*)( const OSD_Path & , const TCollection_AsciiString & ) ) static_cast<void (OSD_FileIterator::*)( const OSD_Path & , const TCollection_AsciiString & ) >(&OSD_FileIterator::Initialize),
R"#(Initializes the current File Iterator)#" , py::arg("where"), py::arg("Mask")
)
.def("More",
(Standard_Boolean (OSD_FileIterator::*)() ) static_cast<Standard_Boolean (OSD_FileIterator::*)() >(&OSD_FileIterator::More),
R"#(Returns TRUE if there are other items using the 'Tree' method.)#"
)
.def("Next",
(void (OSD_FileIterator::*)() ) static_cast<void (OSD_FileIterator::*)() >(&OSD_FileIterator::Next),
R"#(Sets the iterator to the next item. Returns the item value corresponding to the current position of the iterator.)#"
)
.def("Values",
(OSD_File (OSD_FileIterator::*)() ) static_cast<OSD_File (OSD_FileIterator::*)() >(&OSD_FileIterator::Values),
R"#(Returns the next file found .)#"
)
.def("Failed",
(Standard_Boolean (OSD_FileIterator::*)() const) static_cast<Standard_Boolean (OSD_FileIterator::*)() const>(&OSD_FileIterator::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_FileIterator::*)() ) static_cast<void (OSD_FileIterator::*)() >(&OSD_FileIterator::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_FileIterator::*)() ) static_cast<void (OSD_FileIterator::*)() >(&OSD_FileIterator::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_FileIterator::*)() const) static_cast<Standard_Integer (OSD_FileIterator::*)() const>(&OSD_FileIterator::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_FileNode from ./opencascade/OSD_FileNode.hxx
klass = m.attr("OSD_FileNode");
// nested enums
static_cast<py::class_<OSD_FileNode , shared_ptr_nodelete<OSD_FileNode> >>(klass)
// constructors
// custom constructors
// methods
.def("Path",
(void (OSD_FileNode::*)( OSD_Path & ) const) static_cast<void (OSD_FileNode::*)( OSD_Path & ) const>(&OSD_FileNode::Path),
R"#(Gets file name and path.)#" , py::arg("Name")
)
.def("SetPath",
(void (OSD_FileNode::*)( const OSD_Path & ) ) static_cast<void (OSD_FileNode::*)( const OSD_Path & ) >(&OSD_FileNode::SetPath),
R"#(Sets file name and path. If a name is not found, it raises a program error.)#" , py::arg("Name")
)
.def("Exists",
(Standard_Boolean (OSD_FileNode::*)() ) static_cast<Standard_Boolean (OSD_FileNode::*)() >(&OSD_FileNode::Exists),
R"#(Returns TRUE if <me> exists.)#"
)
.def("Remove",
(void (OSD_FileNode::*)() ) static_cast<void (OSD_FileNode::*)() >(&OSD_FileNode::Remove),
R"#(Erases the FileNode from directory)#"
)
.def("Move",
(void (OSD_FileNode::*)( const OSD_Path & ) ) static_cast<void (OSD_FileNode::*)( const OSD_Path & ) >(&OSD_FileNode::Move),
R"#(Moves <me> into another directory)#" , py::arg("NewPath")
)
.def("Copy",
(void (OSD_FileNode::*)( const OSD_Path & ) ) static_cast<void (OSD_FileNode::*)( const OSD_Path & ) >(&OSD_FileNode::Copy),
R"#(Copies <me> to another FileNode)#" , py::arg("ToPath")
)
.def("Protection",
(OSD_Protection (OSD_FileNode::*)() ) static_cast<OSD_Protection (OSD_FileNode::*)() >(&OSD_FileNode::Protection),
R"#(Returns access mode of <me>.)#"
)
.def("SetProtection",
(void (OSD_FileNode::*)( const OSD_Protection & ) ) static_cast<void (OSD_FileNode::*)( const OSD_Protection & ) >(&OSD_FileNode::SetProtection),
R"#(Changes protection of the FileNode)#" , py::arg("Prot")
)
.def("AccessMoment",
(Quantity_Date (OSD_FileNode::*)() ) static_cast<Quantity_Date (OSD_FileNode::*)() >(&OSD_FileNode::AccessMoment),
R"#(Returns last write access. On UNIX, AccessMoment and CreationMoment return the same value.)#"
)
.def("CreationMoment",
(Quantity_Date (OSD_FileNode::*)() ) static_cast<Quantity_Date (OSD_FileNode::*)() >(&OSD_FileNode::CreationMoment),
R"#(Returns creation date. On UNIX, AccessMoment and CreationMoment return the same value.)#"
)
.def("Failed",
(Standard_Boolean (OSD_FileNode::*)() const) static_cast<Standard_Boolean (OSD_FileNode::*)() const>(&OSD_FileNode::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_FileNode::*)() ) static_cast<void (OSD_FileNode::*)() >(&OSD_FileNode::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_FileNode::*)() ) static_cast<void (OSD_FileNode::*)() >(&OSD_FileNode::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_FileNode::*)() const) static_cast<Standard_Integer (OSD_FileNode::*)() const>(&OSD_FileNode::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Host from ./opencascade/OSD_Host.hxx
klass = m.attr("OSD_Host");
// nested enums
static_cast<py::class_<OSD_Host , shared_ptr<OSD_Host> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("SystemVersion",
(TCollection_AsciiString (OSD_Host::*)() ) static_cast<TCollection_AsciiString (OSD_Host::*)() >(&OSD_Host::SystemVersion),
R"#(Returns system name and version)#"
)
.def("SystemId",
(OSD_SysType (OSD_Host::*)() const) static_cast<OSD_SysType (OSD_Host::*)() const>(&OSD_Host::SystemId),
R"#(Returns the system type (UNIX System V, UNIX BSD, MS-DOS...))#"
)
.def("HostName",
(TCollection_AsciiString (OSD_Host::*)() ) static_cast<TCollection_AsciiString (OSD_Host::*)() >(&OSD_Host::HostName),
R"#(Returns host name.)#"
)
.def("AvailableMemory",
(Standard_Integer (OSD_Host::*)() ) static_cast<Standard_Integer (OSD_Host::*)() >(&OSD_Host::AvailableMemory),
R"#(Returns available memory in Kilobytes.)#"
)
.def("InternetAddress",
(TCollection_AsciiString (OSD_Host::*)() ) static_cast<TCollection_AsciiString (OSD_Host::*)() >(&OSD_Host::InternetAddress),
R"#(Returns Internet address of current host.)#"
)
.def("MachineType",
(OSD_OEMType (OSD_Host::*)() ) static_cast<OSD_OEMType (OSD_Host::*)() >(&OSD_Host::MachineType),
R"#(Returns type of current machine.)#"
)
.def("Failed",
(Standard_Boolean (OSD_Host::*)() const) static_cast<Standard_Boolean (OSD_Host::*)() const>(&OSD_Host::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_Host::*)() ) static_cast<void (OSD_Host::*)() >(&OSD_Host::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_Host::*)() ) static_cast<void (OSD_Host::*)() >(&OSD_Host::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_Host::*)() const) static_cast<Standard_Integer (OSD_Host::*)() const>(&OSD_Host::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_MAllocHook from ./opencascade/OSD_MAllocHook.hxx
klass = m.attr("OSD_MAllocHook");
// default constructor
register_default_constructor<OSD_MAllocHook , shared_ptr<OSD_MAllocHook>>(m,"OSD_MAllocHook");
// nested enums
static_cast<py::class_<OSD_MAllocHook , shared_ptr<OSD_MAllocHook> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("SetCallback_s",
(void (*)( OSD_MAllocHook::Callback * ) ) static_cast<void (*)( OSD_MAllocHook::Callback * ) >(&OSD_MAllocHook::SetCallback),
R"#(Set handler of allocation/deallocation events)#" , py::arg("theCB")
)
.def_static("GetCallback_s",
(OSD_MAllocHook::Callback * (*)() ) static_cast<OSD_MAllocHook::Callback * (*)() >(&OSD_MAllocHook::GetCallback),
R"#(Get current handler of allocation/deallocation events)#"
)
.def_static("GetLogFileHandler_s",
(OSD_MAllocHook::LogFileHandler * (*)() ) static_cast<OSD_MAllocHook::LogFileHandler * (*)() >(&OSD_MAllocHook::GetLogFileHandler),
R"#(Get static instance of LogFileHandler handler)#"
)
.def_static("GetCollectBySize_s",
(OSD_MAllocHook::CollectBySize * (*)() ) static_cast<OSD_MAllocHook::CollectBySize * (*)() >(&OSD_MAllocHook::GetCollectBySize),
R"#(Get static instance of CollectBySize handler)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_MemInfo from ./opencascade/OSD_MemInfo.hxx
klass = m.attr("OSD_MemInfo");
// nested enums
py::enum_<OSD_MemInfo::Counter>(klass, "Counter_e", R"#()#")
.value("MemPrivate", OSD_MemInfo::Counter::MemPrivate)
.value("MemVirtual", OSD_MemInfo::Counter::MemVirtual)
.value("MemWorkingSet", OSD_MemInfo::Counter::MemWorkingSet)
.value("MemWorkingSetPeak", OSD_MemInfo::Counter::MemWorkingSetPeak)
.value("MemSwapUsage", OSD_MemInfo::Counter::MemSwapUsage)
.value("MemSwapUsagePeak", OSD_MemInfo::Counter::MemSwapUsagePeak)
.value("MemHeapUsage", OSD_MemInfo::Counter::MemHeapUsage)
.value("MemCounter_NB", OSD_MemInfo::Counter::MemCounter_NB).export_values();
static_cast<py::class_<OSD_MemInfo , shared_ptr<OSD_MemInfo> >>(klass)
// constructors
.def(py::init< const Standard_Boolean >() , py::arg("theImmediateUpdate")=static_cast< const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("IsActive",
(Standard_Boolean (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const) static_cast<Standard_Boolean (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const>(&OSD_MemInfo::IsActive),
R"#(Return true if the counter is active)#" , py::arg("theCounter")
)
.def("SetActive",
(void (OSD_MemInfo::*)( const Standard_Boolean ) ) static_cast<void (OSD_MemInfo::*)( const Standard_Boolean ) >(&OSD_MemInfo::SetActive),
R"#(Set all counters active. The information is collected for active counters.)#" , py::arg("theActive")
)
.def("SetActive",
(void (OSD_MemInfo::*)( const OSD_MemInfo::Counter , const Standard_Boolean ) ) static_cast<void (OSD_MemInfo::*)( const OSD_MemInfo::Counter , const Standard_Boolean ) >(&OSD_MemInfo::SetActive),
R"#(Set the counter active. The information is collected for active counters.)#" , py::arg("theCounter"), py::arg("theActive")
)
.def("Clear",
(void (OSD_MemInfo::*)() ) static_cast<void (OSD_MemInfo::*)() >(&OSD_MemInfo::Clear),
R"#(Clear counters)#"
)
.def("Update",
(void (OSD_MemInfo::*)() ) static_cast<void (OSD_MemInfo::*)() >(&OSD_MemInfo::Update),
R"#(Update counters)#"
)
.def("ToString",
(TCollection_AsciiString (OSD_MemInfo::*)() const) static_cast<TCollection_AsciiString (OSD_MemInfo::*)() const>(&OSD_MemInfo::ToString),
R"#(Return the string representation for all available counter.)#"
)
.def("Value",
(Standard_Size (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const) static_cast<Standard_Size (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const>(&OSD_MemInfo::Value),
R"#(Return value of specified counter in bytes. Notice that NOT all counters are available on various systems. Standard_Size(-1) means invalid (unavailable) value.)#" , py::arg("theCounter")
)
.def("ValueMiB",
(Standard_Size (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const) static_cast<Standard_Size (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const>(&OSD_MemInfo::ValueMiB),
R"#(Return value of specified counter in MiB. Notice that NOT all counters are available on various systems. Standard_Size(-1) means invalid (unavailable) value.)#" , py::arg("theCounter")
)
.def("ValuePreciseMiB",
(Standard_Real (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const) static_cast<Standard_Real (OSD_MemInfo::*)( const OSD_MemInfo::Counter ) const>(&OSD_MemInfo::ValuePreciseMiB),
R"#(Return floating value of specified counter in MiB. Notice that NOT all counters are available on various systems. Standard_Real(-1) means invalid (unavailable) value.)#" , py::arg("theCounter")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("PrintInfo_s",
(TCollection_AsciiString (*)() ) static_cast<TCollection_AsciiString (*)() >(&OSD_MemInfo::PrintInfo),
R"#(Return the string representation for all available counter.)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Parallel from ./opencascade/OSD_Parallel.hxx
klass = m.attr("OSD_Parallel");
// default constructor
register_default_constructor<OSD_Parallel , shared_ptr<OSD_Parallel>>(m,"OSD_Parallel");
// nested enums
static_cast<py::class_<OSD_Parallel , shared_ptr<OSD_Parallel> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("ToUseOcctThreads_s",
(Standard_Boolean (*)() ) static_cast<Standard_Boolean (*)() >(&OSD_Parallel::ToUseOcctThreads),
R"#(Returns TRUE if OCCT threads should be used instead of auxiliary threads library; default value is FALSE if alternative library has been enabled while OCCT building and TRUE otherwise.)#"
)
.def_static("SetUseOcctThreads_s",
(void (*)( Standard_Boolean ) ) static_cast<void (*)( Standard_Boolean ) >(&OSD_Parallel::SetUseOcctThreads),
R"#(Sets if OCCT threads should be used instead of auxiliary threads library. Has no effect if OCCT has been built with no auxiliary threads library.)#" , py::arg("theToUseOcct")
)
.def_static("NbLogicalProcessors_s",
(Standard_Integer (*)() ) static_cast<Standard_Integer (*)() >(&OSD_Parallel::NbLogicalProcessors),
R"#(Returns number of logical processors.)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Path from ./opencascade/OSD_Path.hxx
klass = m.attr("OSD_Path");
// nested enums
static_cast<py::class_<OSD_Path , shared_ptr<OSD_Path> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TCollection_AsciiString &, const OSD_SysType >() , py::arg("aDependentName"), py::arg("aSysType")=static_cast< const OSD_SysType>(OSD_Default) )
.def(py::init< const TCollection_AsciiString &, const TCollection_AsciiString &, const TCollection_AsciiString &, const TCollection_AsciiString &, const TCollection_AsciiString &, const TCollection_AsciiString &, const TCollection_AsciiString & >() , py::arg("aNode"), py::arg("aUsername"), py::arg("aPassword"), py::arg("aDisk"), py::arg("aTrek"), py::arg("aName"), py::arg("anExtension") )
// custom constructors
// methods
.def("Values",
(void (OSD_Path::*)( TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) const) static_cast<void (OSD_Path::*)( TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) const>(&OSD_Path::Values),
R"#(Gets each component of a path.)#" , py::arg("aNode"), py::arg("aUsername"), py::arg("aPassword"), py::arg("aDisk"), py::arg("aTrek"), py::arg("aName"), py::arg("anExtension")
)
.def("SetValues",
(void (OSD_Path::*)( const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & ) >(&OSD_Path::SetValues),
R"#(Sets each component of a path.)#" , py::arg("aNode"), py::arg("aUsername"), py::arg("aPassword"), py::arg("aDisk"), py::arg("aTrek"), py::arg("aName"), py::arg("anExtension")
)
.def("SystemName",
(void (OSD_Path::*)( TCollection_AsciiString & , const OSD_SysType ) const) static_cast<void (OSD_Path::*)( TCollection_AsciiString & , const OSD_SysType ) const>(&OSD_Path::SystemName),
R"#(Returns system dependent path <aType> is one among Unix,VMS ... This function is not private because you may need to display system dependent path on a front-end. It can be useful when communicating with another system. For instance when you want to communicate between VMS and Unix to transfer files, or to do a remote procedure call using files. example : OSD_Path myPath ("sparc4", "sga", "secret_passwd", "$5$dkb100","|users|examples"); Internal ( Dependent_name ); On UNIX sga"secret_passwd":/users/examples On VMS sparc4"sga secret_passwd"::$5$dkb100:[users.examples] Sets each component of a Path giving its system dependent name.)#" , py::arg("FullName"), py::arg("aType")=static_cast< const OSD_SysType>(OSD_Default)
)
.def("ExpandedName",
(void (OSD_Path::*)( TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( TCollection_AsciiString & ) >(&OSD_Path::ExpandedName),
R"#(Returns system dependent path resolving logical symbols.)#" , py::arg("aName")
)
.def("UpTrek",
(void (OSD_Path::*)() ) static_cast<void (OSD_Path::*)() >(&OSD_Path::UpTrek),
R"#(This removes the last directory name in <aTrek> and returns result. ex: me = "|usr|bin|todo.sh" me.UpTrek() gives me = "|usr|todo.sh" if <me> contains "|", me.UpTrek() will give again "|" without any error.)#"
)
.def("DownTrek",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::DownTrek),
R"#(This appends a directory name into the Trek. ex: me = "|usr|todo.sh" me.DownTrek("bin") gives me = "|usr|bin|todo.sh".)#" , py::arg("aName")
)
.def("TrekLength",
(Standard_Integer (OSD_Path::*)() const) static_cast<Standard_Integer (OSD_Path::*)() const>(&OSD_Path::TrekLength),
R"#(Returns number of components in Trek of <me>. ex: me = "|usr|sys|etc|bin" me.TrekLength() returns 4.)#"
)
.def("RemoveATrek",
(void (OSD_Path::*)( const Standard_Integer ) ) static_cast<void (OSD_Path::*)( const Standard_Integer ) >(&OSD_Path::RemoveATrek),
R"#(This removes a component of Trek in <me> at position <where>. The first component of Trek is numbered 1. ex: me = "|usr|bin|" me.RemoveATrek(1) gives me = "|bin|" To avoid a 'NumericError' because of a bad <where>, use TrekLength() to know number of components of Trek in <me>.)#" , py::arg("where")
)
.def("RemoveATrek",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::RemoveATrek),
R"#(This removes <aName> from <me> in Trek. No error is raised if <aName> is not in <me>. ex: me = "|usr|sys|etc|doc" me.RemoveATrek("sys") gives me = "|usr|etc|doc".)#" , py::arg("aName")
)
.def("TrekValue",
(TCollection_AsciiString (OSD_Path::*)( const Standard_Integer ) const) static_cast<TCollection_AsciiString (OSD_Path::*)( const Standard_Integer ) const>(&OSD_Path::TrekValue),
R"#(Returns component of Trek in <me> at position <where>. ex: me = "|usr|bin|sys|" me.TrekValue(2) returns "bin")#" , py::arg("where")
)
.def("InsertATrek",
(void (OSD_Path::*)( const TCollection_AsciiString & , const Standard_Integer ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & , const Standard_Integer ) >(&OSD_Path::InsertATrek),
R"#(This inserts <aName> at position <where> into Trek of <me>. ex: me = "|usr|etc|" me.InsertATrek("sys",2) gives me = "|usr|sys|etc")#" , py::arg("aName"), py::arg("where")
)
.def("Node",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Node),
R"#(Returns Node of <me>.)#"
)
.def("UserName",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::UserName),
R"#(Returns UserName of <me>.)#"
)
.def("Password",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Password),
R"#(Returns Password of <me>.)#"
)
.def("Disk",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Disk),
R"#(Returns Disk of <me>.)#"
)
.def("Trek",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Trek),
R"#(Returns Trek of <me>.)#"
)
.def("Name",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Name),
R"#(Returns file name of <me>. If <me> hasn't been initialized, it returns an empty AsciiString.)#"
)
.def("Extension",
(TCollection_AsciiString (OSD_Path::*)() const) static_cast<TCollection_AsciiString (OSD_Path::*)() const>(&OSD_Path::Extension),
R"#(Returns my extension name. This returns an empty string if path contains no file name.)#"
)
.def("SetNode",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetNode),
R"#(Sets Node of <me>.)#" , py::arg("aName")
)
.def("SetUserName",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetUserName),
R"#(Sets UserName of <me>.)#" , py::arg("aName")
)
.def("SetPassword",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetPassword),
R"#(Sets Password of <me>.)#" , py::arg("aName")
)
.def("SetDisk",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetDisk),
R"#(Sets Disk of <me>.)#" , py::arg("aName")
)
.def("SetTrek",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetTrek),
R"#(Sets Trek of <me>.)#" , py::arg("aName")
)
.def("SetName",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetName),
R"#(Sets file name of <me>. If <me> hasn't been initialized, it returns an empty AsciiString.)#" , py::arg("aName")
)
.def("SetExtension",
(void (OSD_Path::*)( const TCollection_AsciiString & ) ) static_cast<void (OSD_Path::*)( const TCollection_AsciiString & ) >(&OSD_Path::SetExtension),
R"#(Sets my extension name.)#" , py::arg("aName")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("IsValid_s",
(Standard_Boolean (*)( const TCollection_AsciiString & , const OSD_SysType ) ) static_cast<Standard_Boolean (*)( const TCollection_AsciiString & , const OSD_SysType ) >(&OSD_Path::IsValid),
R"#(Returns TRUE if <theDependentName> is valid for this SysType.)#" , py::arg("theDependentName"), py::arg("theSysType")=static_cast< const OSD_SysType>(OSD_Default)
)
.def_static("RelativePath_s",
(TCollection_AsciiString (*)( const TCollection_AsciiString & , const TCollection_AsciiString & ) ) static_cast<TCollection_AsciiString (*)( const TCollection_AsciiString & , const TCollection_AsciiString & ) >(&OSD_Path::RelativePath),
R"#(Returns the relative file path between the absolute directory path <DirPath> and the absolute file path <AbsFilePath>. If <DirPath> starts with "/", paths are handled as on Unix, if it starts with a letter followed by ":", as on WNT. In particular on WNT directory names are not key sensitive. If handling fails, an empty string is returned.)#" , py::arg("DirPath"), py::arg("AbsFilePath")
)
.def_static("AbsolutePath_s",
(TCollection_AsciiString (*)( const TCollection_AsciiString & , const TCollection_AsciiString & ) ) static_cast<TCollection_AsciiString (*)( const TCollection_AsciiString & , const TCollection_AsciiString & ) >(&OSD_Path::AbsolutePath),
R"#(Returns the absolute file path from the absolute directory path <DirPath> and the relative file path returned by RelativePath(). If the RelFilePath is an absolute path, it is returned and the directory path is ignored. If handling fails, an empty string is returned.)#" , py::arg("DirPath"), py::arg("RelFilePath")
)
.def_static("FolderAndFileFromPath_s",
(void (*)( const TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) ) static_cast<void (*)( const TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) >(&OSD_Path::FolderAndFileFromPath),
R"#(Split absolute filepath into folder path and file name. Example: IN theFilePath ='/media/cdrom/image.jpg' OUT theFolder ='/media/cdrom/' OUT theFileName ='image.jpg')#" , py::arg("theFilePath"), py::arg("theFolder"), py::arg("theFileName")
)
.def_static("FileNameAndExtension_s",
(void (*)( const TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) ) static_cast<void (*)( const TCollection_AsciiString & , TCollection_AsciiString & , TCollection_AsciiString & ) >(&OSD_Path::FileNameAndExtension),
R"#(Return file extension from the name in lower case. Extension is expected to be within 20-symbols length, and determined as file name tail after last dot. Example: IN theFilePath ='Image.sbs.JPG' OUT theName ='Image.sbs' OUT theFileName ='jpg')#" , py::arg("theFilePath"), py::arg("theName"), py::arg("theExtension")
)
.def_static("IsDosPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsDosPath),
R"#(Detect absolute DOS-path also used in Windows. The total path length is limited to 256 characters. Sample path: C:)#" , py::arg("thePath")
)
.def_static("IsNtExtendedPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsNtExtendedPath),
R"#(Detect extended-length NT path (can be only absolute). Approximate maximum path is 32767 characters. Sample path: \?: long path File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\\?\" prefix.)#" , py::arg("thePath")
)
.def_static("IsUncPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsUncPath),
R"#(UNC is a naming convention used primarily to specify and map network drives in Microsoft Windows. Sample path: \server)#" , py::arg("thePath")
)
.def_static("IsUncExtendedPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsUncExtendedPath),
R"#(Detect extended-length UNC path. Sample path: \?)#" , py::arg("thePath")
)
.def_static("IsUnixPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsUnixPath),
R"#(Detect absolute UNIX-path. Sample path: /media/cdrom/file)#" , py::arg("thePath")
)
.def_static("IsContentProtocolPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsContentProtocolPath),
R"#(Detect special URLs on Android platform. Sample path: content://filename)#" , py::arg("thePath")
)
.def_static("IsRemoteProtocolPath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsRemoteProtocolPath),
R"#(Detect remote protocol path (http / ftp / ...). Actually shouldn't be remote... Sample path: http://domain/path/file)#" , py::arg("thePath")
)
.def_static("IsRelativePath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsRelativePath),
R"#(Method to recognize path is absolute or not. Detection is based on path syntax - no any filesystem / network access performed.)#" , py::arg("thePath")
)
.def_static("IsAbsolutePath_s",
(Standard_Boolean (*)( const char * ) ) static_cast<Standard_Boolean (*)( const char * ) >(&OSD_Path::IsAbsolutePath),
R"#(Method to recognize path is absolute or not. Detection is based on path syntax - no any filesystem / network access performed.)#" , py::arg("thePath")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_PerfMeter from ./opencascade/OSD_PerfMeter.hxx
klass = m.attr("OSD_PerfMeter");
// nested enums
static_cast<py::class_<OSD_PerfMeter , shared_ptr<OSD_PerfMeter> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const char *, const bool >() , py::arg("theMeter"), py::arg("theToAutoStart")=static_cast< const bool>(true) )
// custom constructors
// methods
.def("Init",
(void (OSD_PerfMeter::*)( const char * ) ) static_cast<void (OSD_PerfMeter::*)( const char * ) >(&OSD_PerfMeter::Init),
R"#(Prepares the named meter)#" , py::arg("theMeter")
)
.def("Start",
(void (OSD_PerfMeter::*)() const) static_cast<void (OSD_PerfMeter::*)() const>(&OSD_PerfMeter::Start),
R"#(Starts the meter)#"
)
.def("Stop",
(void (OSD_PerfMeter::*)() const) static_cast<void (OSD_PerfMeter::*)() const>(&OSD_PerfMeter::Stop),
R"#(Stops the meter)#"
)
.def("Tick",
(void (OSD_PerfMeter::*)() const) static_cast<void (OSD_PerfMeter::*)() const>(&OSD_PerfMeter::Tick),
R"#(Increments the counter w/o time measurement)#"
)
.def("Flush",
(void (OSD_PerfMeter::*)() const) static_cast<void (OSD_PerfMeter::*)() const>(&OSD_PerfMeter::Flush),
R"#(Outputs the meter data and resets it to initial state)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Process from ./opencascade/OSD_Process.hxx
klass = m.attr("OSD_Process");
// nested enums
static_cast<py::class_<OSD_Process , shared_ptr<OSD_Process> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("TerminalType",
(void (OSD_Process::*)( TCollection_AsciiString & ) ) static_cast<void (OSD_Process::*)( TCollection_AsciiString & ) >(&OSD_Process::TerminalType),
R"#(Returns the terminal used (vt100, vt200 ,sun-cmd ...))#" , py::arg("Name")
)
.def("SystemDate",
(Quantity_Date (OSD_Process::*)() ) static_cast<Quantity_Date (OSD_Process::*)() >(&OSD_Process::SystemDate),
R"#(Gets system date.)#"
)
.def("UserName",
(TCollection_AsciiString (OSD_Process::*)() ) static_cast<TCollection_AsciiString (OSD_Process::*)() >(&OSD_Process::UserName),
R"#(Returns the user name.)#"
)
.def("IsSuperUser",
(Standard_Boolean (OSD_Process::*)() ) static_cast<Standard_Boolean (OSD_Process::*)() >(&OSD_Process::IsSuperUser),
R"#(Returns True if the process user is the super-user.)#"
)
.def("ProcessId",
(Standard_Integer (OSD_Process::*)() ) static_cast<Standard_Integer (OSD_Process::*)() >(&OSD_Process::ProcessId),
R"#(Returns the 'Process Id')#"
)
.def("CurrentDirectory",
(OSD_Path (OSD_Process::*)() ) static_cast<OSD_Path (OSD_Process::*)() >(&OSD_Process::CurrentDirectory),
R"#(Returns the current path where the process is.)#"
)
.def("SetCurrentDirectory",
(void (OSD_Process::*)( const OSD_Path & ) ) static_cast<void (OSD_Process::*)( const OSD_Path & ) >(&OSD_Process::SetCurrentDirectory),
R"#(Changes the current process directory.)#" , py::arg("where")
)
.def("Failed",
(Standard_Boolean (OSD_Process::*)() const) static_cast<Standard_Boolean (OSD_Process::*)() const>(&OSD_Process::Failed),
R"#(Returns TRUE if an error occurs)#"
)
.def("Reset",
(void (OSD_Process::*)() ) static_cast<void (OSD_Process::*)() >(&OSD_Process::Reset),
R"#(Resets error counter to zero)#"
)
.def("Perror",
(void (OSD_Process::*)() ) static_cast<void (OSD_Process::*)() >(&OSD_Process::Perror),
R"#(Raises OSD_Error)#"
)
.def("Error",
(Standard_Integer (OSD_Process::*)() const) static_cast<Standard_Integer (OSD_Process::*)() const>(&OSD_Process::Error),
R"#(Returns error number if 'Failed' is TRUE.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("ExecutablePath_s",
(TCollection_AsciiString (*)() ) static_cast<TCollection_AsciiString (*)() >(&OSD_Process::ExecutablePath),
R"#(Return full path to the current process executable.)#"
)
.def_static("ExecutableFolder_s",
(TCollection_AsciiString (*)() ) static_cast<TCollection_AsciiString (*)() >(&OSD_Process::ExecutableFolder),
R"#(Return full path to the folder containing current process executable with trailing separator.)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Protection from ./opencascade/OSD_Protection.hxx
klass = m.attr("OSD_Protection");
// nested enums
static_cast<py::class_<OSD_Protection , shared_ptr<OSD_Protection> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_SingleProtection, const OSD_SingleProtection, const OSD_SingleProtection, const OSD_SingleProtection >() , py::arg("System"), py::arg("User"), py::arg("Group"), py::arg("World") )
// custom constructors
// methods
.def("Values",
(void (OSD_Protection::*)( OSD_SingleProtection & , OSD_SingleProtection & , OSD_SingleProtection & , OSD_SingleProtection & ) ) static_cast<void (OSD_Protection::*)( OSD_SingleProtection & , OSD_SingleProtection & , OSD_SingleProtection & , OSD_SingleProtection & ) >(&OSD_Protection::Values),
R"#(Retrieves values of fields)#" , py::arg("System"), py::arg("User"), py::arg("Group"), py::arg("World")
)
.def("SetValues",
(void (OSD_Protection::*)( const OSD_SingleProtection , const OSD_SingleProtection , const OSD_SingleProtection , const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( const OSD_SingleProtection , const OSD_SingleProtection , const OSD_SingleProtection , const OSD_SingleProtection ) >(&OSD_Protection::SetValues),
R"#(Sets values of fields)#" , py::arg("System"), py::arg("User"), py::arg("Group"), py::arg("World")
)
.def("SetSystem",
(void (OSD_Protection::*)( const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( const OSD_SingleProtection ) >(&OSD_Protection::SetSystem),
R"#(Sets protection of 'System')#" , py::arg("priv")
)
.def("SetUser",
(void (OSD_Protection::*)( const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( const OSD_SingleProtection ) >(&OSD_Protection::SetUser),
R"#(Sets protection of 'User')#" , py::arg("priv")
)
.def("SetGroup",
(void (OSD_Protection::*)( const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( const OSD_SingleProtection ) >(&OSD_Protection::SetGroup),
R"#(Sets protection of 'Group')#" , py::arg("priv")
)
.def("SetWorld",
(void (OSD_Protection::*)( const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( const OSD_SingleProtection ) >(&OSD_Protection::SetWorld),
R"#(Sets protection of 'World')#" , py::arg("priv")
)
.def("System",
(OSD_SingleProtection (OSD_Protection::*)() const) static_cast<OSD_SingleProtection (OSD_Protection::*)() const>(&OSD_Protection::System),
R"#(Gets protection of 'System')#"
)
.def("User",
(OSD_SingleProtection (OSD_Protection::*)() const) static_cast<OSD_SingleProtection (OSD_Protection::*)() const>(&OSD_Protection::User),
R"#(Gets protection of 'User')#"
)
.def("Group",
(OSD_SingleProtection (OSD_Protection::*)() const) static_cast<OSD_SingleProtection (OSD_Protection::*)() const>(&OSD_Protection::Group),
R"#(Gets protection of 'Group')#"
)
.def("World",
(OSD_SingleProtection (OSD_Protection::*)() const) static_cast<OSD_SingleProtection (OSD_Protection::*)() const>(&OSD_Protection::World),
R"#(Gets protection of 'World')#"
)
.def("Add",
(void (OSD_Protection::*)( OSD_SingleProtection & , const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( OSD_SingleProtection & , const OSD_SingleProtection ) >(&OSD_Protection::Add),
R"#(Add a right to a single protection. ex: aProt = RWD me.Add(aProt,X) -> aProt = RWXD)#" , py::arg("aProt"), py::arg("aRight")
)
.def("Sub",
(void (OSD_Protection::*)( OSD_SingleProtection & , const OSD_SingleProtection ) ) static_cast<void (OSD_Protection::*)( OSD_SingleProtection & , const OSD_SingleProtection ) >(&OSD_Protection::Sub),
R"#(Subtract a right to a single protection. ex: aProt = RWD me.Sub(aProt,RW) -> aProt = D But me.Sub(aProt,RWX) is also valid and gives same result.)#" , py::arg("aProt"), py::arg("aRight")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_SharedLibrary from ./opencascade/OSD_SharedLibrary.hxx
klass = m.attr("OSD_SharedLibrary");
// nested enums
static_cast<py::class_<OSD_SharedLibrary , shared_ptr<OSD_SharedLibrary> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_CString >() , py::arg("aFilename") )
// custom constructors
// methods
.def("SetName",
(void (OSD_SharedLibrary::*)( const Standard_CString ) ) static_cast<void (OSD_SharedLibrary::*)( const Standard_CString ) >(&OSD_SharedLibrary::SetName),
R"#(Sets a name associated to the shared object.)#" , py::arg("aName")
)
.def("Name",
(Standard_CString (OSD_SharedLibrary::*)() const) static_cast<Standard_CString (OSD_SharedLibrary::*)() const>(&OSD_SharedLibrary::Name),
R"#(Returns the name associated to the shared object.)#"
)
.def("DlOpen",
(Standard_Boolean (OSD_SharedLibrary::*)( const OSD_LoadMode ) ) static_cast<Standard_Boolean (OSD_SharedLibrary::*)( const OSD_LoadMode ) >(&OSD_SharedLibrary::DlOpen),
R"#(The DlOpen method provides an interface to the dynamic library loader to allow shared libraries to be loaded and called at runtime. The DlOpen function attempts to load Filename, in the address space of the process, resolving symbols as appropriate. Any libraries that Filename depends upon are also loaded. If MODE is RTLD_LAZY, then the runtime loader does symbol resolution only as needed. Typically, this means that the first call to a function in the newly loaded library will cause the resolution of the address of that function to occur. If Mode is RTLD_NOW, then the runtime loader must do all symbol binding during the DlOpen call. The DlOpen method returns a handle that is used by DlSym or DlClose. If there is an error, Standard_False is returned, Standard_True otherwise. If a NULL Filename is specified, DlOpen returns a handle for the main executable, which allows access to dynamic symbols in the running program.)#" , py::arg("Mode")
)
.def("DlClose",
(void (OSD_SharedLibrary::*)() const) static_cast<void (OSD_SharedLibrary::*)() const>(&OSD_SharedLibrary::DlClose),
R"#(Deallocates the address space for the library corresponding to the shared object. If any user function continues to call a symbol resolved in the address space of a library that has been since been deallocated by DlClose, the results are undefined.)#"
)
.def("DlError",
(Standard_CString (OSD_SharedLibrary::*)() const) static_cast<Standard_CString (OSD_SharedLibrary::*)() const>(&OSD_SharedLibrary::DlError),
R"#(The dlerror function returns a string describing the last error that occurred from a call to DlOpen, DlClose or DlSym.)#"
)
.def("Destroy",
(void (OSD_SharedLibrary::*)() ) static_cast<void (OSD_SharedLibrary::*)() >(&OSD_SharedLibrary::Destroy),
R"#(Frees memory allocated.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Thread from ./opencascade/OSD_Thread.hxx
klass = m.attr("OSD_Thread");
// nested enums
static_cast<py::class_<OSD_Thread , shared_ptr<OSD_Thread> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Thread & >() , py::arg("other") )
// custom constructors
// methods
.def("Assign",
(void (OSD_Thread::*)( const OSD_Thread & ) ) static_cast<void (OSD_Thread::*)( const OSD_Thread & ) >(&OSD_Thread::Assign),
R"#(Copy thread handle from other OSD_Thread object.)#" , py::arg("other")
)
.def("SetPriority",
(void (OSD_Thread::*)( const Standard_Integer ) ) static_cast<void (OSD_Thread::*)( const Standard_Integer ) >(&OSD_Thread::SetPriority),
R"#()#" , py::arg("thePriority")
)
.def("Run",
(Standard_Boolean (OSD_Thread::*)( const Standard_Address , const Standard_Integer ) ) static_cast<Standard_Boolean (OSD_Thread::*)( const Standard_Address , const Standard_Integer ) >(&OSD_Thread::Run),
R"#(Starts a thread with thread function given in constructor, passing the specified input data (as void *) to it. The parameter WNTStackSize (on Windows only) specifies size of the stack to be allocated for the thread (by default - the same as for the current executable). Returns True if thread started successfully)#" , py::arg("data")=static_cast< const Standard_Address>(0), py::arg("WNTStackSize")=static_cast< const Standard_Integer>(0)
)
.def("Detach",
(void (OSD_Thread::*)() ) static_cast<void (OSD_Thread::*)() >(&OSD_Thread::Detach),
R"#(Detaches the execution thread from this Thread object, so that it cannot be waited. Note that mechanics of this operation is different on UNIX/Linux (the thread is put to detached state) and Windows (the handle is closed). However, the purpose is the same: to instruct the system to release all thread data upon its completion.)#"
)
.def("Wait",
(Standard_Boolean (OSD_Thread::*)() ) static_cast<Standard_Boolean (OSD_Thread::*)() >(&OSD_Thread::Wait),
R"#(Waits till the thread finishes execution.)#"
)
.def("GetId",
(Standard_ThreadId (OSD_Thread::*)() const) static_cast<Standard_ThreadId (OSD_Thread::*)() const>(&OSD_Thread::GetId),
R"#(Returns ID of the currently controlled thread ID, or 0 if no thread is run)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("Current_s",
(Standard_ThreadId (*)() ) static_cast<Standard_ThreadId (*)() >(&OSD_Thread::Current),
R"#(Auxiliary: returns ID of the current thread)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_ThreadPool from ./opencascade/OSD_ThreadPool.hxx
klass = m.attr("OSD_ThreadPool");
// nested enums
static_cast<py::class_<OSD_ThreadPool ,opencascade::handle<OSD_ThreadPool> , Standard_Transient >>(klass)
// constructors
.def(py::init< int >() , py::arg("theNbThreads")=static_cast<int>(- 1) )
// custom constructors
// methods
.def("HasThreads",
(bool (OSD_ThreadPool::*)() const) static_cast<bool (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::HasThreads),
R"#(Return TRUE if at least 2 threads are available (including self-thread).)#"
)
.def("LowerThreadIndex",
(int (OSD_ThreadPool::*)() const) static_cast<int (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::LowerThreadIndex),
R"#(Return the lower thread index.)#"
)
.def("UpperThreadIndex",
(int (OSD_ThreadPool::*)() const) static_cast<int (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::UpperThreadIndex),
R"#(Return the upper thread index (last index is reserved for self-thread).)#"
)
.def("NbThreads",
(int (OSD_ThreadPool::*)() const) static_cast<int (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::NbThreads),
R"#(Return the number of threads; >= 1.)#"
)
.def("NbDefaultThreadsToLaunch",
(int (OSD_ThreadPool::*)() const) static_cast<int (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::NbDefaultThreadsToLaunch),
R"#(Return maximum number of threads to be locked by a single Launcher object by default; the entire thread pool size is returned by default.)#"
)
.def("SetNbDefaultThreadsToLaunch",
(void (OSD_ThreadPool::*)( int ) ) static_cast<void (OSD_ThreadPool::*)( int ) >(&OSD_ThreadPool::SetNbDefaultThreadsToLaunch),
R"#(Set maximum number of threads to be locked by a single Launcher object by default. Should be set BEFORE first usage.)#" , py::arg("theNbThreads")
)
.def("IsInUse",
(bool (OSD_ThreadPool::*)() ) static_cast<bool (OSD_ThreadPool::*)() >(&OSD_ThreadPool::IsInUse),
R"#(Checks if thread pools has active consumers.)#"
)
.def("Init",
(void (OSD_ThreadPool::*)( int ) ) static_cast<void (OSD_ThreadPool::*)( int ) >(&OSD_ThreadPool::Init),
R"#(Reinitialize the thread pool with a different number of threads. Should be called only with no active jobs, or exception Standard_ProgramError will be thrown!)#" , py::arg("theNbThreads")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&OSD_ThreadPool::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&OSD_ThreadPool::get_type_descriptor),
R"#()#"
)
.def_static("DefaultPool_s",
( const handle<OSD_ThreadPool> & (*)( int ) ) static_cast< const handle<OSD_ThreadPool> & (*)( int ) >(&OSD_ThreadPool::DefaultPool),
R"#(Return (or create) a default thread pool. Number of threads argument will be considered only when called first time.)#" , py::arg("theNbThreads")=static_cast<int>(- 1)
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (OSD_ThreadPool::*)() const) static_cast< const handle<Standard_Type> & (OSD_ThreadPool::*)() const>(&OSD_ThreadPool::DynamicType),
R"#()#"
)
;
// Class OSD_Directory from ./opencascade/OSD_Directory.hxx
klass = m.attr("OSD_Directory");
// nested enums
static_cast<py::class_<OSD_Directory , shared_ptr<OSD_Directory> , OSD_FileNode >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Path & >() , py::arg("theName") )
// custom constructors
// methods
.def("Build",
(void (OSD_Directory::*)( const OSD_Protection & ) ) static_cast<void (OSD_Directory::*)( const OSD_Protection & ) >(&OSD_Directory::Build),
R"#(Creates (physically) a directory. When a directory of the same name already exists, no error is returned, and only <Protect> is applied to the existing directory.)#" , py::arg("Protect")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("BuildTemporary_s",
(OSD_Directory (*)() ) static_cast<OSD_Directory (*)() >(&OSD_Directory::BuildTemporary),
R"#(Creates a temporary Directory in current directory. This directory is automatically removed when object dies.)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_File from ./opencascade/OSD_File.hxx
klass = m.attr("OSD_File");
// nested enums
static_cast<py::class_<OSD_File , shared_ptr<OSD_File> , OSD_FileNode >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const OSD_Path & >() , py::arg("Name") )
// custom constructors
// methods
.def("Build",
(void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) ) static_cast<void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) >(&OSD_File::Build),
R"#(CREATES a file if it doesn't already exists or empties an existing file. After 'Build', the file is open. If no name was given, ProgramError is raised.)#" , py::arg("Mode"), py::arg("Protect")
)
.def("Open",
(void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) ) static_cast<void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) >(&OSD_File::Open),
R"#(Opens a File with specific attributes This works only on already existing file. If no name was given, ProgramError is raised.)#" , py::arg("Mode"), py::arg("Protect")
)
.def("Append",
(void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) ) static_cast<void (OSD_File::*)( const OSD_OpenMode , const OSD_Protection & ) >(&OSD_File::Append),
R"#(Appends data to an existing file. If file doesn't exist, creates it first. After 'Append', the file is open. If no name was given, ProgramError is raised.)#" , py::arg("Mode"), py::arg("Protect")
)
.def("Read",
(void (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer ) ) static_cast<void (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer ) >(&OSD_File::Read),
R"#(Attempts to read Nbyte bytes from the file associated with the object file. Upon successful completion, Read returns the number of bytes actually read and placed in the Buffer. This number may be less than Nbyte if the number of bytes left in the file is less than Nbyte bytes. In this case only number of read bytes will be placed in the buffer.)#" , py::arg("Buffer"), py::arg("Nbyte")
)
.def("ReadLine",
(Standard_Integer (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer ) ) static_cast<Standard_Integer (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer ) >(&OSD_File::ReadLine),
R"#(Reads bytes from the data pointed to by the object file into the buffer <Buffer>. Data is read until <NByte-1> bytes have been read, until a newline character is read and transferred into <Buffer>, or until an EOF (End-of-File) condition is encountered. Upon successful completion, Read returns the number of bytes actually read and placed into the Buffer <Buffer>.)#" , py::arg("Buffer"), py::arg("NByte")
)
.def("Write",
(void (OSD_File::*)( const TCollection_AsciiString & , const Standard_Integer ) ) static_cast<void (OSD_File::*)( const TCollection_AsciiString & , const Standard_Integer ) >(&OSD_File::Write),
R"#(Attempts to write theNbBytes bytes from the AsciiString to the file.)#" , py::arg("theBuffer"), py::arg("theNbBytes")
)
.def("Write",
(void (OSD_File::*)( const Standard_Address , const Standard_Integer ) ) static_cast<void (OSD_File::*)( const Standard_Address , const Standard_Integer ) >(&OSD_File::Write),
R"#(Attempts to write theNbBytes bytes from the buffer pointed to by theBuffer to the file associated to the object File.)#" , py::arg("theBuffer"), py::arg("theNbBytes")
)
.def("Seek",
(void (OSD_File::*)( const Standard_Integer , const OSD_FromWhere ) ) static_cast<void (OSD_File::*)( const Standard_Integer , const OSD_FromWhere ) >(&OSD_File::Seek),
R"#(Sets the seek pointer associated with the open file)#" , py::arg("Offset"), py::arg("Whence")
)
.def("Close",
(void (OSD_File::*)() ) static_cast<void (OSD_File::*)() >(&OSD_File::Close),
R"#(Closes the file (and deletes a descriptor))#"
)
.def("IsAtEnd",
(Standard_Boolean (OSD_File::*)() ) static_cast<Standard_Boolean (OSD_File::*)() >(&OSD_File::IsAtEnd),
R"#(Returns TRUE if the seek pointer is at end of file.)#"
)
.def("KindOfFile",
(OSD_KindFile (OSD_File::*)() const) static_cast<OSD_KindFile (OSD_File::*)() const>(&OSD_File::KindOfFile),
R"#(Returns the kind of file. A file can be a file, a directory or a link.)#"
)
.def("BuildTemporary",
(void (OSD_File::*)() ) static_cast<void (OSD_File::*)() >(&OSD_File::BuildTemporary),
R"#(Makes a temporary File This temporary file is already open !)#"
)
.def("SetLock",
(void (OSD_File::*)( const OSD_LockType ) ) static_cast<void (OSD_File::*)( const OSD_LockType ) >(&OSD_File::SetLock),
R"#(Locks current file)#" , py::arg("Lock")
)
.def("UnLock",
(void (OSD_File::*)() ) static_cast<void (OSD_File::*)() >(&OSD_File::UnLock),
R"#(Unlocks current file)#"
)
.def("GetLock",
(OSD_LockType (OSD_File::*)() const) static_cast<OSD_LockType (OSD_File::*)() const>(&OSD_File::GetLock),
R"#(Returns the current lock state)#"
)
.def("IsLocked",
(Standard_Boolean (OSD_File::*)() const) static_cast<Standard_Boolean (OSD_File::*)() const>(&OSD_File::IsLocked),
R"#(Returns TRUE if this file is locked.)#"
)
.def("Size",
(Standard_Size (OSD_File::*)() ) static_cast<Standard_Size (OSD_File::*)() >(&OSD_File::Size),
R"#(Returns actual number of bytes of <me>.)#"
)
.def("IsOpen",
(Standard_Boolean (OSD_File::*)() const) static_cast<Standard_Boolean (OSD_File::*)() const>(&OSD_File::IsOpen),
R"#(Returns TRUE if <me> is open.)#"
)
.def("IsReadable",
(Standard_Boolean (OSD_File::*)() ) static_cast<Standard_Boolean (OSD_File::*)() >(&OSD_File::IsReadable),
R"#(returns TRUE if the file exists and if the user has the authorization to read it.)#"
)
.def("IsWriteable",
(Standard_Boolean (OSD_File::*)() ) static_cast<Standard_Boolean (OSD_File::*)() >(&OSD_File::IsWriteable),
R"#(returns TRUE if the file can be read and overwritten.)#"
)
.def("IsExecutable",
(Standard_Boolean (OSD_File::*)() ) static_cast<Standard_Boolean (OSD_File::*)() >(&OSD_File::IsExecutable),
R"#(returns TRUE if the file can be executed.)#"
)
.def("ReadLastLine",
(Standard_Boolean (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer , const Standard_Integer ) ) static_cast<Standard_Boolean (OSD_File::*)( TCollection_AsciiString & , const Standard_Integer , const Standard_Integer ) >(&OSD_File::ReadLastLine),
R"#(Enables to emulate unix "tail -f" command. If a line is available in the file <me> returns it. Otherwise attempts to read again aNbTries times in the file waiting aDelay seconds between each read. If meanwhile the file increases returns the next line, otherwise returns FALSE.)#" , py::arg("aLine"), py::arg("aDelay"), py::arg("aNbTries")
)
.def("Edit",
(Standard_Boolean (OSD_File::*)() ) static_cast<Standard_Boolean (OSD_File::*)() >(&OSD_File::Edit),
R"#(find an editor on the system and edit the given file)#"
)
.def("Rewind",
(void (OSD_File::*)() ) static_cast<void (OSD_File::*)() >(&OSD_File::Rewind),
R"#(Set file pointer position to the beginning of the file)#"
)
// methods using call by reference i.s.o. return
.def("ReadLine",
[]( OSD_File &self , TCollection_AsciiString & Buffer, const Standard_Integer NByte ){
Standard_Integer NbyteRead;
self.ReadLine(Buffer,NByte,NbyteRead);
return std::make_tuple(NbyteRead); },
R"#(Reads bytes from the data pointed to by the object file into the buffer <Buffer>. Data is read until <NByte-1> bytes have been read, until a newline character is read and transferred into <Buffer>, or until an EOF (End-of-File) condition is encountered. Upon successful completion, Read returns the number of bytes actually read into <NByteRead> and placed into the Buffer <Buffer>.)#" , py::arg("Buffer"), py::arg("NByte")
)
.def("Read",
[]( OSD_File &self , const Standard_Address Buffer, const Standard_Integer Nbyte ){
Standard_Integer Readbyte;
self.Read(Buffer,Nbyte,Readbyte);
return std::make_tuple(Readbyte); },
R"#(Attempts to read Nbyte bytes from the files associated with the object File. Upon successful completion, Read returns the number of bytes actually read and placed in the Buffer. This number may be less than Nbyte if the number of bytes left in the file is less than Nbyte bytes. For this reason the output parameter Readbyte will contain the number of read bytes.)#" , py::arg("Buffer"), py::arg("Nbyte")
)
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class OSD_Timer from ./opencascade/OSD_Timer.hxx
klass = m.attr("OSD_Timer");
// nested enums
static_cast<py::class_<OSD_Timer , shared_ptr<OSD_Timer> , OSD_Chronometer >>(klass)
// constructors
.def(py::init< Standard_Boolean >() , py::arg("theThisThreadOnly")=static_cast<Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("Reset",
(void (OSD_Timer::*)( const Standard_Real ) ) static_cast<void (OSD_Timer::*)( const Standard_Real ) >(&OSD_Timer::Reset),
R"#(Stops and reinitializes the timer with specified elapsed time.)#" , py::arg("theTimeElapsedSec")
)
.def("Reset",
(void (OSD_Timer::*)() ) static_cast<void (OSD_Timer::*)() >(&OSD_Timer::Reset),
R"#(Stops and reinitializes the timer with zero elapsed time.)#"
)
.def("Restart",
(void (OSD_Timer::*)() ) static_cast<void (OSD_Timer::*)() >(&OSD_Timer::Restart),
R"#(Restarts the Timer.)#"
)
.def("Show",
(void (OSD_Timer::*)() const) static_cast<void (OSD_Timer::*)() const>(&OSD_Timer::Show),
R"#(Shows both the elapsed time and CPU time on the standard output stream <cout>.The chronometer can be running (Lap Time) or stopped.)#"
)
.def("Show",
(void (OSD_Timer::*)( Standard_OStream & ) const) static_cast<void (OSD_Timer::*)( Standard_OStream & ) const>(&OSD_Timer::Show),
R"#(Shows both the elapsed time and CPU time on the output stream <OS>.)#" , py::arg("os")
)
.def("Stop",
(void (OSD_Timer::*)() ) static_cast<void (OSD_Timer::*)() >(&OSD_Timer::Stop),
R"#(Stops the Timer.)#"
)
.def("Start",
(void (OSD_Timer::*)() ) static_cast<void (OSD_Timer::*)() >(&OSD_Timer::Start),
R"#(Starts (after Create or Reset) or restarts (after Stop) the Timer.)#"
)
.def("ElapsedTime",
(Standard_Real (OSD_Timer::*)() const) static_cast<Standard_Real (OSD_Timer::*)() const>(&OSD_Timer::ElapsedTime),
R"#(Returns elapsed time in seconds.)#"
)
// methods using call by reference i.s.o. return
.def("Show",
[]( OSD_Timer &self ){
Standard_Real theSeconds;
Standard_Integer theMinutes;
Standard_Integer theHours;
Standard_Real theCPUtime;
self.Show(theSeconds,theMinutes,theHours,theCPUtime);
return std::make_tuple(theSeconds,theMinutes,theHours,theCPUtime); },
R"#(returns both the elapsed time(seconds,minutes,hours) and CPU time.)#"
)
// static methods
.def_static("GetWallClockTime_s",
(Standard_Real (*)() ) static_cast<Standard_Real (*)() >(&OSD_Timer::GetWallClockTime),
R"#(Returns current time in seconds with system-defined precision. The could be a system uptime or a time from some date. Returned value is intended for precise elapsed time measurements as a delta between timestamps. On Windows implemented via QueryPerformanceCounter(), on other systems via gettimeofday().)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// functions
// ./opencascade/OSD.hxx
// ./opencascade/OSD_CachedFileSystem.hxx
// ./opencascade/OSD_Chronometer.hxx
// ./opencascade/OSD_Directory.hxx
// ./opencascade/OSD_DirectoryIterator.hxx
// ./opencascade/OSD_Disk.hxx
// ./opencascade/OSD_Environment.hxx
// ./opencascade/OSD_Error.hxx
// ./opencascade/OSD_ErrorList.hxx
// ./opencascade/OSD_Exception.hxx
// ./opencascade/OSD_Exception_ACCESS_VIOLATION.hxx
// ./opencascade/OSD_Exception_ARRAY_BOUNDS_EXCEEDED.hxx
// ./opencascade/OSD_Exception_CTRL_BREAK.hxx
// ./opencascade/OSD_Exception_ILLEGAL_INSTRUCTION.hxx
// ./opencascade/OSD_Exception_INT_OVERFLOW.hxx
// ./opencascade/OSD_Exception_INVALID_DISPOSITION.hxx
// ./opencascade/OSD_Exception_IN_PAGE_ERROR.hxx
// ./opencascade/OSD_Exception_NONCONTINUABLE_EXCEPTION.hxx
// ./opencascade/OSD_Exception_PRIV_INSTRUCTION.hxx
// ./opencascade/OSD_Exception_STACK_OVERFLOW.hxx
// ./opencascade/OSD_Exception_STATUS_NO_MEMORY.hxx
// ./opencascade/OSD_File.hxx
// ./opencascade/OSD_FileIterator.hxx
// ./opencascade/OSD_FileNode.hxx
// ./opencascade/OSD_FileSystem.hxx
// ./opencascade/OSD_FileSystemSelector.hxx
// ./opencascade/OSD_FromWhere.hxx
// ./opencascade/OSD_Function.hxx
// ./opencascade/OSD_Host.hxx
// ./opencascade/OSD_KindFile.hxx
// ./opencascade/OSD_LoadMode.hxx
// ./opencascade/OSD_LocalFileSystem.hxx
// ./opencascade/OSD_LockType.hxx
// ./opencascade/OSD_MAllocHook.hxx
// ./opencascade/OSD_MemInfo.hxx
// ./opencascade/OSD_OEMType.hxx
// ./opencascade/OSD_OSDError.hxx
// ./opencascade/OSD_OpenFile.hxx
m.def("OSD_OpenFile",
(FILE * (*)( const TCollection_ExtendedString & , const char * )) static_cast<FILE * (*)( const TCollection_ExtendedString & , const char * )>(&OSD_OpenFile),
R"#(Function opens the file.)#" , py::arg("theName"), py::arg("theMode")
);
m.def("OSD_FileStatCTime",
(Standard_Time (*)( const char * )) static_cast<Standard_Time (*)( const char * )>(&OSD_FileStatCTime),
R"#(Function retrieves file timestamp.)#" , py::arg("theName")
);
m.def("OSD_OpenFileDescriptor",
(int (*)( const TCollection_ExtendedString & , std::ios_base::openmode )) static_cast<int (*)( const TCollection_ExtendedString & , std::ios_base::openmode )>(&OSD_OpenFileDescriptor),
R"#(Open file descriptor for specified UTF-16 file path.)#" , py::arg("theName"), py::arg("theMode")
);
// ./opencascade/OSD_OpenMode.hxx
// ./opencascade/OSD_PThread.hxx
// ./opencascade/OSD_Parallel.hxx
// ./opencascade/OSD_Path.hxx
// ./opencascade/OSD_PerfMeter.hxx
// ./opencascade/OSD_Process.hxx
// ./opencascade/OSD_Protection.hxx
// ./opencascade/OSD_SIGBUS.hxx
// ./opencascade/OSD_SIGHUP.hxx
// ./opencascade/OSD_SIGILL.hxx
// ./opencascade/OSD_SIGINT.hxx
// ./opencascade/OSD_SIGKILL.hxx
// ./opencascade/OSD_SIGQUIT.hxx
// ./opencascade/OSD_SIGSEGV.hxx
// ./opencascade/OSD_SIGSYS.hxx
// ./opencascade/OSD_SharedLibrary.hxx
// ./opencascade/OSD_Signal.hxx
// ./opencascade/OSD_SignalMode.hxx
// ./opencascade/OSD_SingleProtection.hxx
// ./opencascade/OSD_SysType.hxx
// ./opencascade/OSD_Thread.hxx
// ./opencascade/OSD_ThreadFunction.hxx
// ./opencascade/OSD_ThreadPool.hxx
// ./opencascade/OSD_Timer.hxx
// ./opencascade/OSD_WhoAmI.hxx
// Additional functions
// operators
// register typdefs
// exceptions
register_occ_exception<OSD_Exception>(m, "OSD_Exception");
register_occ_exception<OSD_OSDError>(m, "OSD_OSDError");
register_occ_exception<OSD_Signal>(m, "OSD_Signal");
register_occ_exception<OSD_Exception_ACCESS_VIOLATION>(m, "OSD_Exception_ACCESS_VIOLATION");
register_occ_exception<OSD_Exception_ARRAY_BOUNDS_EXCEEDED>(m, "OSD_Exception_ARRAY_BOUNDS_EXCEEDED");
register_occ_exception<OSD_Exception_CTRL_BREAK>(m, "OSD_Exception_CTRL_BREAK");
register_occ_exception<OSD_Exception_ILLEGAL_INSTRUCTION>(m, "OSD_Exception_ILLEGAL_INSTRUCTION");
register_occ_exception<OSD_Exception_INT_OVERFLOW>(m, "OSD_Exception_INT_OVERFLOW");
register_occ_exception<OSD_Exception_INVALID_DISPOSITION>(m, "OSD_Exception_INVALID_DISPOSITION");
register_occ_exception<OSD_Exception_IN_PAGE_ERROR>(m, "OSD_Exception_IN_PAGE_ERROR");
register_occ_exception<OSD_Exception_NONCONTINUABLE_EXCEPTION>(m, "OSD_Exception_NONCONTINUABLE_EXCEPTION");
register_occ_exception<OSD_Exception_PRIV_INSTRUCTION>(m, "OSD_Exception_PRIV_INSTRUCTION");
register_occ_exception<OSD_Exception_STACK_OVERFLOW>(m, "OSD_Exception_STACK_OVERFLOW");
register_occ_exception<OSD_Exception_STATUS_NO_MEMORY>(m, "OSD_Exception_STATUS_NO_MEMORY");
register_occ_exception<OSD_SIGBUS>(m, "OSD_SIGBUS");
register_occ_exception<OSD_SIGHUP>(m, "OSD_SIGHUP");
register_occ_exception<OSD_SIGILL>(m, "OSD_SIGILL");
register_occ_exception<OSD_SIGINT>(m, "OSD_SIGINT");
register_occ_exception<OSD_SIGKILL>(m, "OSD_SIGKILL");
register_occ_exception<OSD_SIGQUIT>(m, "OSD_SIGQUIT");
register_occ_exception<OSD_SIGSEGV>(m, "OSD_SIGSEGV");
register_occ_exception<OSD_SIGSYS>(m, "OSD_SIGSYS");
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|