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
|
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_SIGMFCORE_SIGMF_CORE_H_
#define FLATBUFFERS_GENERATED_SIGMFCORE_SIGMF_CORE_H_
#include "flatbuffers/flatbuffers.h"
namespace sigmf {
namespace core {
struct sigmf_extension;
struct sigmf_extensionBuilder;
struct sigmf_extensionT;
struct sigmf_stream;
struct sigmf_streamBuilder;
struct sigmf_streamT;
struct geojson_point;
struct geojson_pointBuilder;
struct geojson_pointT;
struct Global;
struct GlobalBuilder;
struct GlobalT;
struct Capture;
struct CaptureBuilder;
struct CaptureT;
struct Annotation;
struct AnnotationBuilder;
struct AnnotationT;
struct Collection;
struct CollectionBuilder;
struct CollectionT;
struct Descr;
struct DescrBuilder;
struct DescrT;
inline const flatbuffers::TypeTable *sigmf_extensionTypeTable();
inline const flatbuffers::TypeTable *sigmf_streamTypeTable();
inline const flatbuffers::TypeTable *geojson_pointTypeTable();
inline const flatbuffers::TypeTable *GlobalTypeTable();
inline const flatbuffers::TypeTable *CaptureTypeTable();
inline const flatbuffers::TypeTable *AnnotationTypeTable();
inline const flatbuffers::TypeTable *CollectionTypeTable();
inline const flatbuffers::TypeTable *DescrTypeTable();
struct sigmf_extensionT : public flatbuffers::NativeTable {
typedef sigmf_extension TableType;
std::string name{};
std::string version{};
flatbuffers::Optional<bool> optional = flatbuffers::nullopt;
};
struct sigmf_extension FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef sigmf_extensionT NativeTableType;
typedef sigmf_extensionBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return sigmf_extensionTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_NAME = 4,
VT_VERSION = 6,
VT_OPTIONAL = 8
};
const flatbuffers::String *name() const {
return GetPointer<const flatbuffers::String *>(VT_NAME);
}
const flatbuffers::String *version() const {
return GetPointer<const flatbuffers::String *>(VT_VERSION);
}
flatbuffers::Optional<bool> optional() const {
return GetOptional<uint8_t, bool>(VT_OPTIONAL);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_NAME) &&
verifier.VerifyString(name()) &&
VerifyOffset(verifier, VT_VERSION) &&
verifier.VerifyString(version()) &&
VerifyField<uint8_t>(verifier, VT_OPTIONAL) &&
verifier.EndTable();
}
sigmf_extensionT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(sigmf_extensionT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<sigmf_extension> Pack(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_extensionT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct sigmf_extensionBuilder {
typedef sigmf_extension Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
fbb_.AddOffset(sigmf_extension::VT_NAME, name);
}
void add_version(flatbuffers::Offset<flatbuffers::String> version) {
fbb_.AddOffset(sigmf_extension::VT_VERSION, version);
}
void add_optional(bool optional) {
fbb_.AddElement<uint8_t>(sigmf_extension::VT_OPTIONAL, static_cast<uint8_t>(optional));
}
explicit sigmf_extensionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<sigmf_extension> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<sigmf_extension>(end);
return o;
}
};
inline flatbuffers::Offset<sigmf_extension> Createsigmf_extension(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> name = 0,
flatbuffers::Offset<flatbuffers::String> version = 0,
flatbuffers::Optional<bool> optional = flatbuffers::nullopt) {
sigmf_extensionBuilder builder_(_fbb);
builder_.add_version(version);
builder_.add_name(name);
if(optional) { builder_.add_optional(*optional); }
return builder_.Finish();
}
inline flatbuffers::Offset<sigmf_extension> Createsigmf_extensionDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const char *name = nullptr,
const char *version = nullptr,
flatbuffers::Optional<bool> optional = flatbuffers::nullopt) {
auto name__ = name ? _fbb.CreateString(name) : 0;
auto version__ = version ? _fbb.CreateString(version) : 0;
return sigmf::core::Createsigmf_extension(
_fbb,
name__,
version__,
optional);
}
flatbuffers::Offset<sigmf_extension> Createsigmf_extension(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_extensionT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct sigmf_streamT : public flatbuffers::NativeTable {
typedef sigmf_stream TableType;
std::string name{};
std::string hash{};
};
struct sigmf_stream FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef sigmf_streamT NativeTableType;
typedef sigmf_streamBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return sigmf_streamTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_NAME = 4,
VT_HASH = 6
};
const flatbuffers::String *name() const {
return GetPointer<const flatbuffers::String *>(VT_NAME);
}
const flatbuffers::String *hash() const {
return GetPointer<const flatbuffers::String *>(VT_HASH);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_NAME) &&
verifier.VerifyString(name()) &&
VerifyOffset(verifier, VT_HASH) &&
verifier.VerifyString(hash()) &&
verifier.EndTable();
}
sigmf_streamT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(sigmf_streamT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<sigmf_stream> Pack(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_streamT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct sigmf_streamBuilder {
typedef sigmf_stream Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_name(flatbuffers::Offset<flatbuffers::String> name) {
fbb_.AddOffset(sigmf_stream::VT_NAME, name);
}
void add_hash(flatbuffers::Offset<flatbuffers::String> hash) {
fbb_.AddOffset(sigmf_stream::VT_HASH, hash);
}
explicit sigmf_streamBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<sigmf_stream> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<sigmf_stream>(end);
return o;
}
};
inline flatbuffers::Offset<sigmf_stream> Createsigmf_stream(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> name = 0,
flatbuffers::Offset<flatbuffers::String> hash = 0) {
sigmf_streamBuilder builder_(_fbb);
builder_.add_hash(hash);
builder_.add_name(name);
return builder_.Finish();
}
inline flatbuffers::Offset<sigmf_stream> Createsigmf_streamDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const char *name = nullptr,
const char *hash = nullptr) {
auto name__ = name ? _fbb.CreateString(name) : 0;
auto hash__ = hash ? _fbb.CreateString(hash) : 0;
return sigmf::core::Createsigmf_stream(
_fbb,
name__,
hash__);
}
flatbuffers::Offset<sigmf_stream> Createsigmf_stream(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_streamT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct geojson_pointT : public flatbuffers::NativeTable {
typedef geojson_point TableType;
std::string type{};
std::vector<double> coordinates{};
};
struct geojson_point FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef geojson_pointT NativeTableType;
typedef geojson_pointBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return geojson_pointTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_TYPE = 4,
VT_COORDINATES = 6
};
const flatbuffers::String *type() const {
return GetPointer<const flatbuffers::String *>(VT_TYPE);
}
const flatbuffers::Vector<double> *coordinates() const {
return GetPointer<const flatbuffers::Vector<double> *>(VT_COORDINATES);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_TYPE) &&
verifier.VerifyString(type()) &&
VerifyOffset(verifier, VT_COORDINATES) &&
verifier.VerifyVector(coordinates()) &&
verifier.EndTable();
}
geojson_pointT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(geojson_pointT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<geojson_point> Pack(flatbuffers::FlatBufferBuilder &_fbb, const geojson_pointT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct geojson_pointBuilder {
typedef geojson_point Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_type(flatbuffers::Offset<flatbuffers::String> type) {
fbb_.AddOffset(geojson_point::VT_TYPE, type);
}
void add_coordinates(flatbuffers::Offset<flatbuffers::Vector<double>> coordinates) {
fbb_.AddOffset(geojson_point::VT_COORDINATES, coordinates);
}
explicit geojson_pointBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<geojson_point> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<geojson_point>(end);
return o;
}
};
inline flatbuffers::Offset<geojson_point> Creategeojson_point(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> type = 0,
flatbuffers::Offset<flatbuffers::Vector<double>> coordinates = 0) {
geojson_pointBuilder builder_(_fbb);
builder_.add_coordinates(coordinates);
builder_.add_type(type);
return builder_.Finish();
}
inline flatbuffers::Offset<geojson_point> Creategeojson_pointDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const char *type = nullptr,
const std::vector<double> *coordinates = nullptr) {
auto type__ = type ? _fbb.CreateString(type) : 0;
auto coordinates__ = coordinates ? _fbb.CreateVector<double>(*coordinates) : 0;
return sigmf::core::Creategeojson_point(
_fbb,
type__,
coordinates__);
}
flatbuffers::Offset<geojson_point> Creategeojson_point(flatbuffers::FlatBufferBuilder &_fbb, const geojson_pointT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct GlobalT : public flatbuffers::NativeTable {
typedef Global TableType;
std::string datatype{};
flatbuffers::Optional<double> sample_rate = flatbuffers::nullopt;
std::string version{};
flatbuffers::Optional<uint64_t> num_channels = flatbuffers::nullopt;
std::string sha512{};
flatbuffers::Optional<uint64_t> offset = flatbuffers::nullopt;
std::string description{};
std::string author{};
std::string meta_doi{};
std::string data_doi{};
std::string recorder{};
std::string license{};
std::string hw{};
std::string dataset{};
flatbuffers::Optional<uint64_t> trailing_bytes = flatbuffers::nullopt;
flatbuffers::Optional<bool> metadata_only = flatbuffers::nullopt;
std::shared_ptr<sigmf::core::geojson_pointT> geolocation{};
std::vector<std::shared_ptr<sigmf::core::sigmf_extensionT>> extensions{};
std::string collection{};
};
struct Global FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef GlobalT NativeTableType;
typedef GlobalBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return GlobalTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_DATATYPE = 4,
VT_SAMPLE_RATE = 6,
VT_VERSION = 8,
VT_NUM_CHANNELS = 10,
VT_SHA512 = 12,
VT_OFFSET = 14,
VT_DESCRIPTION = 16,
VT_AUTHOR = 18,
VT_META_DOI = 20,
VT_DATA_DOI = 22,
VT_RECORDER = 24,
VT_LICENSE = 26,
VT_HW = 28,
VT_DATASET = 30,
VT_TRAILING_BYTES = 32,
VT_METADATA_ONLY = 34,
VT_GEOLOCATION = 36,
VT_EXTENSIONS = 38,
VT_COLLECTION = 40
};
const flatbuffers::String *datatype() const {
return GetPointer<const flatbuffers::String *>(VT_DATATYPE);
}
flatbuffers::Optional<double> sample_rate() const {
return GetOptional<double, double>(VT_SAMPLE_RATE);
}
const flatbuffers::String *version() const {
return GetPointer<const flatbuffers::String *>(VT_VERSION);
}
flatbuffers::Optional<uint64_t> num_channels() const {
return GetOptional<uint64_t, uint64_t>(VT_NUM_CHANNELS);
}
const flatbuffers::String *sha512() const {
return GetPointer<const flatbuffers::String *>(VT_SHA512);
}
flatbuffers::Optional<uint64_t> offset() const {
return GetOptional<uint64_t, uint64_t>(VT_OFFSET);
}
const flatbuffers::String *description() const {
return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
}
const flatbuffers::String *author() const {
return GetPointer<const flatbuffers::String *>(VT_AUTHOR);
}
const flatbuffers::String *meta_doi() const {
return GetPointer<const flatbuffers::String *>(VT_META_DOI);
}
const flatbuffers::String *data_doi() const {
return GetPointer<const flatbuffers::String *>(VT_DATA_DOI);
}
const flatbuffers::String *recorder() const {
return GetPointer<const flatbuffers::String *>(VT_RECORDER);
}
const flatbuffers::String *license() const {
return GetPointer<const flatbuffers::String *>(VT_LICENSE);
}
const flatbuffers::String *hw() const {
return GetPointer<const flatbuffers::String *>(VT_HW);
}
const flatbuffers::String *dataset() const {
return GetPointer<const flatbuffers::String *>(VT_DATASET);
}
flatbuffers::Optional<uint64_t> trailing_bytes() const {
return GetOptional<uint64_t, uint64_t>(VT_TRAILING_BYTES);
}
flatbuffers::Optional<bool> metadata_only() const {
return GetOptional<uint8_t, bool>(VT_METADATA_ONLY);
}
const sigmf::core::geojson_point *geolocation() const {
return GetPointer<const sigmf::core::geojson_point *>(VT_GEOLOCATION);
}
const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *extensions() const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *>(VT_EXTENSIONS);
}
const flatbuffers::String *collection() const {
return GetPointer<const flatbuffers::String *>(VT_COLLECTION);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_DATATYPE) &&
verifier.VerifyString(datatype()) &&
VerifyField<double>(verifier, VT_SAMPLE_RATE) &&
VerifyOffset(verifier, VT_VERSION) &&
verifier.VerifyString(version()) &&
VerifyField<uint64_t>(verifier, VT_NUM_CHANNELS) &&
VerifyOffset(verifier, VT_SHA512) &&
verifier.VerifyString(sha512()) &&
VerifyField<uint64_t>(verifier, VT_OFFSET) &&
VerifyOffset(verifier, VT_DESCRIPTION) &&
verifier.VerifyString(description()) &&
VerifyOffset(verifier, VT_AUTHOR) &&
verifier.VerifyString(author()) &&
VerifyOffset(verifier, VT_META_DOI) &&
verifier.VerifyString(meta_doi()) &&
VerifyOffset(verifier, VT_DATA_DOI) &&
verifier.VerifyString(data_doi()) &&
VerifyOffset(verifier, VT_RECORDER) &&
verifier.VerifyString(recorder()) &&
VerifyOffset(verifier, VT_LICENSE) &&
verifier.VerifyString(license()) &&
VerifyOffset(verifier, VT_HW) &&
verifier.VerifyString(hw()) &&
VerifyOffset(verifier, VT_DATASET) &&
verifier.VerifyString(dataset()) &&
VerifyField<uint64_t>(verifier, VT_TRAILING_BYTES) &&
VerifyField<uint8_t>(verifier, VT_METADATA_ONLY) &&
VerifyOffset(verifier, VT_GEOLOCATION) &&
verifier.VerifyTable(geolocation()) &&
VerifyOffset(verifier, VT_EXTENSIONS) &&
verifier.VerifyVector(extensions()) &&
verifier.VerifyVectorOfTables(extensions()) &&
VerifyOffset(verifier, VT_COLLECTION) &&
verifier.VerifyString(collection()) &&
verifier.EndTable();
}
GlobalT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(GlobalT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<Global> Pack(flatbuffers::FlatBufferBuilder &_fbb, const GlobalT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct GlobalBuilder {
typedef Global Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_datatype(flatbuffers::Offset<flatbuffers::String> datatype) {
fbb_.AddOffset(Global::VT_DATATYPE, datatype);
}
void add_sample_rate(double sample_rate) {
fbb_.AddElement<double>(Global::VT_SAMPLE_RATE, sample_rate);
}
void add_version(flatbuffers::Offset<flatbuffers::String> version) {
fbb_.AddOffset(Global::VT_VERSION, version);
}
void add_num_channels(uint64_t num_channels) {
fbb_.AddElement<uint64_t>(Global::VT_NUM_CHANNELS, num_channels);
}
void add_sha512(flatbuffers::Offset<flatbuffers::String> sha512) {
fbb_.AddOffset(Global::VT_SHA512, sha512);
}
void add_offset(uint64_t offset) {
fbb_.AddElement<uint64_t>(Global::VT_OFFSET, offset);
}
void add_description(flatbuffers::Offset<flatbuffers::String> description) {
fbb_.AddOffset(Global::VT_DESCRIPTION, description);
}
void add_author(flatbuffers::Offset<flatbuffers::String> author) {
fbb_.AddOffset(Global::VT_AUTHOR, author);
}
void add_meta_doi(flatbuffers::Offset<flatbuffers::String> meta_doi) {
fbb_.AddOffset(Global::VT_META_DOI, meta_doi);
}
void add_data_doi(flatbuffers::Offset<flatbuffers::String> data_doi) {
fbb_.AddOffset(Global::VT_DATA_DOI, data_doi);
}
void add_recorder(flatbuffers::Offset<flatbuffers::String> recorder) {
fbb_.AddOffset(Global::VT_RECORDER, recorder);
}
void add_license(flatbuffers::Offset<flatbuffers::String> license) {
fbb_.AddOffset(Global::VT_LICENSE, license);
}
void add_hw(flatbuffers::Offset<flatbuffers::String> hw) {
fbb_.AddOffset(Global::VT_HW, hw);
}
void add_dataset(flatbuffers::Offset<flatbuffers::String> dataset) {
fbb_.AddOffset(Global::VT_DATASET, dataset);
}
void add_trailing_bytes(uint64_t trailing_bytes) {
fbb_.AddElement<uint64_t>(Global::VT_TRAILING_BYTES, trailing_bytes);
}
void add_metadata_only(bool metadata_only) {
fbb_.AddElement<uint8_t>(Global::VT_METADATA_ONLY, static_cast<uint8_t>(metadata_only));
}
void add_geolocation(flatbuffers::Offset<sigmf::core::geojson_point> geolocation) {
fbb_.AddOffset(Global::VT_GEOLOCATION, geolocation);
}
void add_extensions(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>>> extensions) {
fbb_.AddOffset(Global::VT_EXTENSIONS, extensions);
}
void add_collection(flatbuffers::Offset<flatbuffers::String> collection) {
fbb_.AddOffset(Global::VT_COLLECTION, collection);
}
explicit GlobalBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<Global> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<Global>(end);
return o;
}
};
inline flatbuffers::Offset<Global> CreateGlobal(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> datatype = 0,
flatbuffers::Optional<double> sample_rate = flatbuffers::nullopt,
flatbuffers::Offset<flatbuffers::String> version = 0,
flatbuffers::Optional<uint64_t> num_channels = flatbuffers::nullopt,
flatbuffers::Offset<flatbuffers::String> sha512 = 0,
flatbuffers::Optional<uint64_t> offset = flatbuffers::nullopt,
flatbuffers::Offset<flatbuffers::String> description = 0,
flatbuffers::Offset<flatbuffers::String> author = 0,
flatbuffers::Offset<flatbuffers::String> meta_doi = 0,
flatbuffers::Offset<flatbuffers::String> data_doi = 0,
flatbuffers::Offset<flatbuffers::String> recorder = 0,
flatbuffers::Offset<flatbuffers::String> license = 0,
flatbuffers::Offset<flatbuffers::String> hw = 0,
flatbuffers::Offset<flatbuffers::String> dataset = 0,
flatbuffers::Optional<uint64_t> trailing_bytes = flatbuffers::nullopt,
flatbuffers::Optional<bool> metadata_only = flatbuffers::nullopt,
flatbuffers::Offset<sigmf::core::geojson_point> geolocation = 0,
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>>> extensions = 0,
flatbuffers::Offset<flatbuffers::String> collection = 0) {
GlobalBuilder builder_(_fbb);
if(trailing_bytes) { builder_.add_trailing_bytes(*trailing_bytes); }
if(offset) { builder_.add_offset(*offset); }
if(num_channels) { builder_.add_num_channels(*num_channels); }
if(sample_rate) { builder_.add_sample_rate(*sample_rate); }
builder_.add_collection(collection);
builder_.add_extensions(extensions);
builder_.add_geolocation(geolocation);
builder_.add_dataset(dataset);
builder_.add_hw(hw);
builder_.add_license(license);
builder_.add_recorder(recorder);
builder_.add_data_doi(data_doi);
builder_.add_meta_doi(meta_doi);
builder_.add_author(author);
builder_.add_description(description);
builder_.add_sha512(sha512);
builder_.add_version(version);
builder_.add_datatype(datatype);
if(metadata_only) { builder_.add_metadata_only(*metadata_only); }
return builder_.Finish();
}
inline flatbuffers::Offset<Global> CreateGlobalDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const char *datatype = nullptr,
flatbuffers::Optional<double> sample_rate = flatbuffers::nullopt,
const char *version = nullptr,
flatbuffers::Optional<uint64_t> num_channels = flatbuffers::nullopt,
const char *sha512 = nullptr,
flatbuffers::Optional<uint64_t> offset = flatbuffers::nullopt,
const char *description = nullptr,
const char *author = nullptr,
const char *meta_doi = nullptr,
const char *data_doi = nullptr,
const char *recorder = nullptr,
const char *license = nullptr,
const char *hw = nullptr,
const char *dataset = nullptr,
flatbuffers::Optional<uint64_t> trailing_bytes = flatbuffers::nullopt,
flatbuffers::Optional<bool> metadata_only = flatbuffers::nullopt,
flatbuffers::Offset<sigmf::core::geojson_point> geolocation = 0,
const std::vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *extensions = nullptr,
const char *collection = nullptr) {
auto datatype__ = datatype ? _fbb.CreateString(datatype) : 0;
auto version__ = version ? _fbb.CreateString(version) : 0;
auto sha512__ = sha512 ? _fbb.CreateString(sha512) : 0;
auto description__ = description ? _fbb.CreateString(description) : 0;
auto author__ = author ? _fbb.CreateString(author) : 0;
auto meta_doi__ = meta_doi ? _fbb.CreateString(meta_doi) : 0;
auto data_doi__ = data_doi ? _fbb.CreateString(data_doi) : 0;
auto recorder__ = recorder ? _fbb.CreateString(recorder) : 0;
auto license__ = license ? _fbb.CreateString(license) : 0;
auto hw__ = hw ? _fbb.CreateString(hw) : 0;
auto dataset__ = dataset ? _fbb.CreateString(dataset) : 0;
auto extensions__ = extensions ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_extension>>(*extensions) : 0;
auto collection__ = collection ? _fbb.CreateString(collection) : 0;
return sigmf::core::CreateGlobal(
_fbb,
datatype__,
sample_rate,
version__,
num_channels,
sha512__,
offset,
description__,
author__,
meta_doi__,
data_doi__,
recorder__,
license__,
hw__,
dataset__,
trailing_bytes,
metadata_only,
geolocation,
extensions__,
collection__);
}
flatbuffers::Offset<Global> CreateGlobal(flatbuffers::FlatBufferBuilder &_fbb, const GlobalT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct CaptureT : public flatbuffers::NativeTable {
typedef Capture TableType;
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt;
flatbuffers::Optional<uint64_t> global_index = flatbuffers::nullopt;
flatbuffers::Optional<uint64_t> header_bytes = flatbuffers::nullopt;
flatbuffers::Optional<double> frequency = flatbuffers::nullopt;
std::string datetime{};
};
struct Capture FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef CaptureT NativeTableType;
typedef CaptureBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return CaptureTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_SAMPLE_START = 4,
VT_GLOBAL_INDEX = 6,
VT_HEADER_BYTES = 8,
VT_FREQUENCY = 10,
VT_DATETIME = 12
};
flatbuffers::Optional<uint64_t> sample_start() const {
return GetOptional<uint64_t, uint64_t>(VT_SAMPLE_START);
}
flatbuffers::Optional<uint64_t> global_index() const {
return GetOptional<uint64_t, uint64_t>(VT_GLOBAL_INDEX);
}
flatbuffers::Optional<uint64_t> header_bytes() const {
return GetOptional<uint64_t, uint64_t>(VT_HEADER_BYTES);
}
flatbuffers::Optional<double> frequency() const {
return GetOptional<double, double>(VT_FREQUENCY);
}
const flatbuffers::String *datetime() const {
return GetPointer<const flatbuffers::String *>(VT_DATETIME);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<uint64_t>(verifier, VT_SAMPLE_START) &&
VerifyField<uint64_t>(verifier, VT_GLOBAL_INDEX) &&
VerifyField<uint64_t>(verifier, VT_HEADER_BYTES) &&
VerifyField<double>(verifier, VT_FREQUENCY) &&
VerifyOffset(verifier, VT_DATETIME) &&
verifier.VerifyString(datetime()) &&
verifier.EndTable();
}
CaptureT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(CaptureT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<Capture> Pack(flatbuffers::FlatBufferBuilder &_fbb, const CaptureT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct CaptureBuilder {
typedef Capture Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_sample_start(uint64_t sample_start) {
fbb_.AddElement<uint64_t>(Capture::VT_SAMPLE_START, sample_start);
}
void add_global_index(uint64_t global_index) {
fbb_.AddElement<uint64_t>(Capture::VT_GLOBAL_INDEX, global_index);
}
void add_header_bytes(uint64_t header_bytes) {
fbb_.AddElement<uint64_t>(Capture::VT_HEADER_BYTES, header_bytes);
}
void add_frequency(double frequency) {
fbb_.AddElement<double>(Capture::VT_FREQUENCY, frequency);
}
void add_datetime(flatbuffers::Offset<flatbuffers::String> datetime) {
fbb_.AddOffset(Capture::VT_DATETIME, datetime);
}
explicit CaptureBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<Capture> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<Capture>(end);
return o;
}
};
inline flatbuffers::Offset<Capture> CreateCapture(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> global_index = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> header_bytes = flatbuffers::nullopt,
flatbuffers::Optional<double> frequency = flatbuffers::nullopt,
flatbuffers::Offset<flatbuffers::String> datetime = 0) {
CaptureBuilder builder_(_fbb);
if(frequency) { builder_.add_frequency(*frequency); }
if(header_bytes) { builder_.add_header_bytes(*header_bytes); }
if(global_index) { builder_.add_global_index(*global_index); }
if(sample_start) { builder_.add_sample_start(*sample_start); }
builder_.add_datetime(datetime);
return builder_.Finish();
}
inline flatbuffers::Offset<Capture> CreateCaptureDirect(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> global_index = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> header_bytes = flatbuffers::nullopt,
flatbuffers::Optional<double> frequency = flatbuffers::nullopt,
const char *datetime = nullptr) {
auto datetime__ = datetime ? _fbb.CreateString(datetime) : 0;
return sigmf::core::CreateCapture(
_fbb,
sample_start,
global_index,
header_bytes,
frequency,
datetime__);
}
flatbuffers::Offset<Capture> CreateCapture(flatbuffers::FlatBufferBuilder &_fbb, const CaptureT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct AnnotationT : public flatbuffers::NativeTable {
typedef Annotation TableType;
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt;
flatbuffers::Optional<uint64_t> sample_count = flatbuffers::nullopt;
std::string generator{};
std::string description{};
std::string label{};
std::string comment{};
flatbuffers::Optional<double> freq_lower_edge = flatbuffers::nullopt;
flatbuffers::Optional<double> freq_upper_edge = flatbuffers::nullopt;
flatbuffers::Optional<double> latitude = flatbuffers::nullopt;
flatbuffers::Optional<double> longitude = flatbuffers::nullopt;
};
struct Annotation FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef AnnotationT NativeTableType;
typedef AnnotationBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return AnnotationTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_SAMPLE_START = 4,
VT_SAMPLE_COUNT = 6,
VT_GENERATOR = 8,
VT_DESCRIPTION = 10,
VT_LABEL = 12,
VT_COMMENT = 14,
VT_FREQ_LOWER_EDGE = 16,
VT_FREQ_UPPER_EDGE = 18,
VT_LATITUDE = 20,
VT_LONGITUDE = 22
};
flatbuffers::Optional<uint64_t> sample_start() const {
return GetOptional<uint64_t, uint64_t>(VT_SAMPLE_START);
}
flatbuffers::Optional<uint64_t> sample_count() const {
return GetOptional<uint64_t, uint64_t>(VT_SAMPLE_COUNT);
}
const flatbuffers::String *generator() const {
return GetPointer<const flatbuffers::String *>(VT_GENERATOR);
}
const flatbuffers::String *description() const {
return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
}
const flatbuffers::String *label() const {
return GetPointer<const flatbuffers::String *>(VT_LABEL);
}
const flatbuffers::String *comment() const {
return GetPointer<const flatbuffers::String *>(VT_COMMENT);
}
flatbuffers::Optional<double> freq_lower_edge() const {
return GetOptional<double, double>(VT_FREQ_LOWER_EDGE);
}
flatbuffers::Optional<double> freq_upper_edge() const {
return GetOptional<double, double>(VT_FREQ_UPPER_EDGE);
}
flatbuffers::Optional<double> latitude() const {
return GetOptional<double, double>(VT_LATITUDE);
}
flatbuffers::Optional<double> longitude() const {
return GetOptional<double, double>(VT_LONGITUDE);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<uint64_t>(verifier, VT_SAMPLE_START) &&
VerifyField<uint64_t>(verifier, VT_SAMPLE_COUNT) &&
VerifyOffset(verifier, VT_GENERATOR) &&
verifier.VerifyString(generator()) &&
VerifyOffset(verifier, VT_DESCRIPTION) &&
verifier.VerifyString(description()) &&
VerifyOffset(verifier, VT_LABEL) &&
verifier.VerifyString(label()) &&
VerifyOffset(verifier, VT_COMMENT) &&
verifier.VerifyString(comment()) &&
VerifyField<double>(verifier, VT_FREQ_LOWER_EDGE) &&
VerifyField<double>(verifier, VT_FREQ_UPPER_EDGE) &&
VerifyField<double>(verifier, VT_LATITUDE) &&
VerifyField<double>(verifier, VT_LONGITUDE) &&
verifier.EndTable();
}
AnnotationT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(AnnotationT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<Annotation> Pack(flatbuffers::FlatBufferBuilder &_fbb, const AnnotationT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct AnnotationBuilder {
typedef Annotation Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_sample_start(uint64_t sample_start) {
fbb_.AddElement<uint64_t>(Annotation::VT_SAMPLE_START, sample_start);
}
void add_sample_count(uint64_t sample_count) {
fbb_.AddElement<uint64_t>(Annotation::VT_SAMPLE_COUNT, sample_count);
}
void add_generator(flatbuffers::Offset<flatbuffers::String> generator) {
fbb_.AddOffset(Annotation::VT_GENERATOR, generator);
}
void add_description(flatbuffers::Offset<flatbuffers::String> description) {
fbb_.AddOffset(Annotation::VT_DESCRIPTION, description);
}
void add_label(flatbuffers::Offset<flatbuffers::String> label) {
fbb_.AddOffset(Annotation::VT_LABEL, label);
}
void add_comment(flatbuffers::Offset<flatbuffers::String> comment) {
fbb_.AddOffset(Annotation::VT_COMMENT, comment);
}
void add_freq_lower_edge(double freq_lower_edge) {
fbb_.AddElement<double>(Annotation::VT_FREQ_LOWER_EDGE, freq_lower_edge);
}
void add_freq_upper_edge(double freq_upper_edge) {
fbb_.AddElement<double>(Annotation::VT_FREQ_UPPER_EDGE, freq_upper_edge);
}
void add_latitude(double latitude) {
fbb_.AddElement<double>(Annotation::VT_LATITUDE, latitude);
}
void add_longitude(double longitude) {
fbb_.AddElement<double>(Annotation::VT_LONGITUDE, longitude);
}
explicit AnnotationBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<Annotation> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<Annotation>(end);
return o;
}
};
inline flatbuffers::Offset<Annotation> CreateAnnotation(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> sample_count = flatbuffers::nullopt,
flatbuffers::Offset<flatbuffers::String> generator = 0,
flatbuffers::Offset<flatbuffers::String> description = 0,
flatbuffers::Offset<flatbuffers::String> label = 0,
flatbuffers::Offset<flatbuffers::String> comment = 0,
flatbuffers::Optional<double> freq_lower_edge = flatbuffers::nullopt,
flatbuffers::Optional<double> freq_upper_edge = flatbuffers::nullopt,
flatbuffers::Optional<double> latitude = flatbuffers::nullopt,
flatbuffers::Optional<double> longitude = flatbuffers::nullopt) {
AnnotationBuilder builder_(_fbb);
if(longitude) { builder_.add_longitude(*longitude); }
if(latitude) { builder_.add_latitude(*latitude); }
if(freq_upper_edge) { builder_.add_freq_upper_edge(*freq_upper_edge); }
if(freq_lower_edge) { builder_.add_freq_lower_edge(*freq_lower_edge); }
if(sample_count) { builder_.add_sample_count(*sample_count); }
if(sample_start) { builder_.add_sample_start(*sample_start); }
builder_.add_comment(comment);
builder_.add_label(label);
builder_.add_description(description);
builder_.add_generator(generator);
return builder_.Finish();
}
inline flatbuffers::Offset<Annotation> CreateAnnotationDirect(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Optional<uint64_t> sample_start = flatbuffers::nullopt,
flatbuffers::Optional<uint64_t> sample_count = flatbuffers::nullopt,
const char *generator = nullptr,
const char *description = nullptr,
const char *label = nullptr,
const char *comment = nullptr,
flatbuffers::Optional<double> freq_lower_edge = flatbuffers::nullopt,
flatbuffers::Optional<double> freq_upper_edge = flatbuffers::nullopt,
flatbuffers::Optional<double> latitude = flatbuffers::nullopt,
flatbuffers::Optional<double> longitude = flatbuffers::nullopt) {
auto generator__ = generator ? _fbb.CreateString(generator) : 0;
auto description__ = description ? _fbb.CreateString(description) : 0;
auto label__ = label ? _fbb.CreateString(label) : 0;
auto comment__ = comment ? _fbb.CreateString(comment) : 0;
return sigmf::core::CreateAnnotation(
_fbb,
sample_start,
sample_count,
generator__,
description__,
label__,
comment__,
freq_lower_edge,
freq_upper_edge,
latitude,
longitude);
}
flatbuffers::Offset<Annotation> CreateAnnotation(flatbuffers::FlatBufferBuilder &_fbb, const AnnotationT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct CollectionT : public flatbuffers::NativeTable {
typedef Collection TableType;
std::string version{};
std::string description{};
std::string author{};
std::string collection_doi{};
std::string license{};
std::vector<std::shared_ptr<sigmf::core::sigmf_extensionT>> extensions{};
std::vector<std::shared_ptr<sigmf::core::sigmf_streamT>> streams{};
};
struct Collection FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef CollectionT NativeTableType;
typedef CollectionBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return CollectionTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_VERSION = 4,
VT_DESCRIPTION = 6,
VT_AUTHOR = 8,
VT_COLLECTION_DOI = 10,
VT_LICENSE = 12,
VT_EXTENSIONS = 14,
VT_STREAMS = 16
};
const flatbuffers::String *version() const {
return GetPointer<const flatbuffers::String *>(VT_VERSION);
}
const flatbuffers::String *description() const {
return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
}
const flatbuffers::String *author() const {
return GetPointer<const flatbuffers::String *>(VT_AUTHOR);
}
const flatbuffers::String *collection_doi() const {
return GetPointer<const flatbuffers::String *>(VT_COLLECTION_DOI);
}
const flatbuffers::String *license() const {
return GetPointer<const flatbuffers::String *>(VT_LICENSE);
}
const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *extensions() const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *>(VT_EXTENSIONS);
}
const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_stream>> *streams() const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_stream>> *>(VT_STREAMS);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_VERSION) &&
verifier.VerifyString(version()) &&
VerifyOffset(verifier, VT_DESCRIPTION) &&
verifier.VerifyString(description()) &&
VerifyOffset(verifier, VT_AUTHOR) &&
verifier.VerifyString(author()) &&
VerifyOffset(verifier, VT_COLLECTION_DOI) &&
verifier.VerifyString(collection_doi()) &&
VerifyOffset(verifier, VT_LICENSE) &&
verifier.VerifyString(license()) &&
VerifyOffset(verifier, VT_EXTENSIONS) &&
verifier.VerifyVector(extensions()) &&
verifier.VerifyVectorOfTables(extensions()) &&
VerifyOffset(verifier, VT_STREAMS) &&
verifier.VerifyVector(streams()) &&
verifier.VerifyVectorOfTables(streams()) &&
verifier.EndTable();
}
CollectionT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(CollectionT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<Collection> Pack(flatbuffers::FlatBufferBuilder &_fbb, const CollectionT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct CollectionBuilder {
typedef Collection Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_version(flatbuffers::Offset<flatbuffers::String> version) {
fbb_.AddOffset(Collection::VT_VERSION, version);
}
void add_description(flatbuffers::Offset<flatbuffers::String> description) {
fbb_.AddOffset(Collection::VT_DESCRIPTION, description);
}
void add_author(flatbuffers::Offset<flatbuffers::String> author) {
fbb_.AddOffset(Collection::VT_AUTHOR, author);
}
void add_collection_doi(flatbuffers::Offset<flatbuffers::String> collection_doi) {
fbb_.AddOffset(Collection::VT_COLLECTION_DOI, collection_doi);
}
void add_license(flatbuffers::Offset<flatbuffers::String> license) {
fbb_.AddOffset(Collection::VT_LICENSE, license);
}
void add_extensions(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>>> extensions) {
fbb_.AddOffset(Collection::VT_EXTENSIONS, extensions);
}
void add_streams(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_stream>>> streams) {
fbb_.AddOffset(Collection::VT_STREAMS, streams);
}
explicit CollectionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<Collection> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<Collection>(end);
return o;
}
};
inline flatbuffers::Offset<Collection> CreateCollection(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> version = 0,
flatbuffers::Offset<flatbuffers::String> description = 0,
flatbuffers::Offset<flatbuffers::String> author = 0,
flatbuffers::Offset<flatbuffers::String> collection_doi = 0,
flatbuffers::Offset<flatbuffers::String> license = 0,
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_extension>>> extensions = 0,
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<sigmf::core::sigmf_stream>>> streams = 0) {
CollectionBuilder builder_(_fbb);
builder_.add_streams(streams);
builder_.add_extensions(extensions);
builder_.add_license(license);
builder_.add_collection_doi(collection_doi);
builder_.add_author(author);
builder_.add_description(description);
builder_.add_version(version);
return builder_.Finish();
}
inline flatbuffers::Offset<Collection> CreateCollectionDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const char *version = nullptr,
const char *description = nullptr,
const char *author = nullptr,
const char *collection_doi = nullptr,
const char *license = nullptr,
const std::vector<flatbuffers::Offset<sigmf::core::sigmf_extension>> *extensions = nullptr,
const std::vector<flatbuffers::Offset<sigmf::core::sigmf_stream>> *streams = nullptr) {
auto version__ = version ? _fbb.CreateString(version) : 0;
auto description__ = description ? _fbb.CreateString(description) : 0;
auto author__ = author ? _fbb.CreateString(author) : 0;
auto collection_doi__ = collection_doi ? _fbb.CreateString(collection_doi) : 0;
auto license__ = license ? _fbb.CreateString(license) : 0;
auto extensions__ = extensions ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_extension>>(*extensions) : 0;
auto streams__ = streams ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_stream>>(*streams) : 0;
return sigmf::core::CreateCollection(
_fbb,
version__,
description__,
author__,
collection_doi__,
license__,
extensions__,
streams__);
}
flatbuffers::Offset<Collection> CreateCollection(flatbuffers::FlatBufferBuilder &_fbb, const CollectionT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
struct DescrT : public flatbuffers::NativeTable {
typedef Descr TableType;
std::shared_ptr<sigmf::core::GlobalT> global{};
std::shared_ptr<sigmf::core::AnnotationT> annotation{};
std::shared_ptr<sigmf::core::CaptureT> capture{};
std::shared_ptr<sigmf::core::CollectionT> collection{};
};
struct Descr FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef DescrT NativeTableType;
typedef DescrBuilder Builder;
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
return DescrTypeTable();
}
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_GLOBAL = 4,
VT_ANNOTATION = 6,
VT_CAPTURE = 8,
VT_COLLECTION = 10
};
const sigmf::core::Global *global() const {
return GetPointer<const sigmf::core::Global *>(VT_GLOBAL);
}
const sigmf::core::Annotation *annotation() const {
return GetPointer<const sigmf::core::Annotation *>(VT_ANNOTATION);
}
const sigmf::core::Capture *capture() const {
return GetPointer<const sigmf::core::Capture *>(VT_CAPTURE);
}
const sigmf::core::Collection *collection() const {
return GetPointer<const sigmf::core::Collection *>(VT_COLLECTION);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_GLOBAL) &&
verifier.VerifyTable(global()) &&
VerifyOffset(verifier, VT_ANNOTATION) &&
verifier.VerifyTable(annotation()) &&
VerifyOffset(verifier, VT_CAPTURE) &&
verifier.VerifyTable(capture()) &&
VerifyOffset(verifier, VT_COLLECTION) &&
verifier.VerifyTable(collection()) &&
verifier.EndTable();
}
DescrT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
void UnPackTo(DescrT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
static flatbuffers::Offset<Descr> Pack(flatbuffers::FlatBufferBuilder &_fbb, const DescrT* _o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
};
struct DescrBuilder {
typedef Descr Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_global(flatbuffers::Offset<sigmf::core::Global> global) {
fbb_.AddOffset(Descr::VT_GLOBAL, global);
}
void add_annotation(flatbuffers::Offset<sigmf::core::Annotation> annotation) {
fbb_.AddOffset(Descr::VT_ANNOTATION, annotation);
}
void add_capture(flatbuffers::Offset<sigmf::core::Capture> capture) {
fbb_.AddOffset(Descr::VT_CAPTURE, capture);
}
void add_collection(flatbuffers::Offset<sigmf::core::Collection> collection) {
fbb_.AddOffset(Descr::VT_COLLECTION, collection);
}
explicit DescrBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
flatbuffers::Offset<Descr> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<Descr>(end);
return o;
}
};
inline flatbuffers::Offset<Descr> CreateDescr(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<sigmf::core::Global> global = 0,
flatbuffers::Offset<sigmf::core::Annotation> annotation = 0,
flatbuffers::Offset<sigmf::core::Capture> capture = 0,
flatbuffers::Offset<sigmf::core::Collection> collection = 0) {
DescrBuilder builder_(_fbb);
builder_.add_collection(collection);
builder_.add_capture(capture);
builder_.add_annotation(annotation);
builder_.add_global(global);
return builder_.Finish();
}
flatbuffers::Offset<Descr> CreateDescr(flatbuffers::FlatBufferBuilder &_fbb, const DescrT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
inline sigmf_extensionT *sigmf_extension::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<sigmf_extensionT>(new sigmf_extensionT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void sigmf_extension::UnPackTo(sigmf_extensionT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = name(); if (_e) _o->name = _e->str(); }
{ auto _e = version(); if (_e) _o->version = _e->str(); }
{ auto _e = optional(); _o->optional = _e; }
}
inline flatbuffers::Offset<sigmf_extension> sigmf_extension::Pack(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_extensionT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return Createsigmf_extension(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<sigmf_extension> Createsigmf_extension(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_extensionT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const sigmf_extensionT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
auto _version = _o->version.empty() ? 0 : _fbb.CreateString(_o->version);
auto _optional = _o->optional;
return sigmf::core::Createsigmf_extension(
_fbb,
_name,
_version,
_optional);
}
inline sigmf_streamT *sigmf_stream::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<sigmf_streamT>(new sigmf_streamT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void sigmf_stream::UnPackTo(sigmf_streamT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = name(); if (_e) _o->name = _e->str(); }
{ auto _e = hash(); if (_e) _o->hash = _e->str(); }
}
inline flatbuffers::Offset<sigmf_stream> sigmf_stream::Pack(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_streamT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return Createsigmf_stream(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<sigmf_stream> Createsigmf_stream(flatbuffers::FlatBufferBuilder &_fbb, const sigmf_streamT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const sigmf_streamT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name);
auto _hash = _o->hash.empty() ? 0 : _fbb.CreateString(_o->hash);
return sigmf::core::Createsigmf_stream(
_fbb,
_name,
_hash);
}
inline geojson_pointT *geojson_point::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<geojson_pointT>(new geojson_pointT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void geojson_point::UnPackTo(geojson_pointT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = type(); if (_e) _o->type = _e->str(); }
{ auto _e = coordinates(); if (_e) { _o->coordinates.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->coordinates[_i] = _e->Get(_i); } } }
}
inline flatbuffers::Offset<geojson_point> geojson_point::Pack(flatbuffers::FlatBufferBuilder &_fbb, const geojson_pointT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return Creategeojson_point(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<geojson_point> Creategeojson_point(flatbuffers::FlatBufferBuilder &_fbb, const geojson_pointT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const geojson_pointT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _type = _o->type.empty() ? 0 : _fbb.CreateString(_o->type);
auto _coordinates = _o->coordinates.size() ? _fbb.CreateVector(_o->coordinates) : 0;
return sigmf::core::Creategeojson_point(
_fbb,
_type,
_coordinates);
}
inline GlobalT *Global::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<GlobalT>(new GlobalT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void Global::UnPackTo(GlobalT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = datatype(); if (_e) _o->datatype = _e->str(); }
{ auto _e = sample_rate(); _o->sample_rate = _e; }
{ auto _e = version(); if (_e) _o->version = _e->str(); }
{ auto _e = num_channels(); _o->num_channels = _e; }
{ auto _e = sha512(); if (_e) _o->sha512 = _e->str(); }
{ auto _e = offset(); _o->offset = _e; }
{ auto _e = description(); if (_e) _o->description = _e->str(); }
{ auto _e = author(); if (_e) _o->author = _e->str(); }
{ auto _e = meta_doi(); if (_e) _o->meta_doi = _e->str(); }
{ auto _e = data_doi(); if (_e) _o->data_doi = _e->str(); }
{ auto _e = recorder(); if (_e) _o->recorder = _e->str(); }
{ auto _e = license(); if (_e) _o->license = _e->str(); }
{ auto _e = hw(); if (_e) _o->hw = _e->str(); }
{ auto _e = dataset(); if (_e) _o->dataset = _e->str(); }
{ auto _e = trailing_bytes(); _o->trailing_bytes = _e; }
{ auto _e = metadata_only(); _o->metadata_only = _e; }
{ auto _e = geolocation(); if (_e) _o->geolocation = std::shared_ptr<sigmf::core::geojson_pointT>(_e->UnPack(_resolver)); }
{ auto _e = extensions(); if (_e) { _o->extensions.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->extensions[_i] = std::shared_ptr<sigmf::core::sigmf_extensionT>(_e->Get(_i)->UnPack(_resolver)); } } }
{ auto _e = collection(); if (_e) _o->collection = _e->str(); }
}
inline flatbuffers::Offset<Global> Global::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GlobalT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return CreateGlobal(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<Global> CreateGlobal(flatbuffers::FlatBufferBuilder &_fbb, const GlobalT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const GlobalT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _datatype = _o->datatype.empty() ? 0 : _fbb.CreateString(_o->datatype);
auto _sample_rate = _o->sample_rate;
auto _version = _o->version.empty() ? 0 : _fbb.CreateString(_o->version);
auto _num_channels = _o->num_channels;
auto _sha512 = _o->sha512.empty() ? 0 : _fbb.CreateString(_o->sha512);
auto _offset = _o->offset;
auto _description = _o->description.empty() ? 0 : _fbb.CreateString(_o->description);
auto _author = _o->author.empty() ? 0 : _fbb.CreateString(_o->author);
auto _meta_doi = _o->meta_doi.empty() ? 0 : _fbb.CreateString(_o->meta_doi);
auto _data_doi = _o->data_doi.empty() ? 0 : _fbb.CreateString(_o->data_doi);
auto _recorder = _o->recorder.empty() ? 0 : _fbb.CreateString(_o->recorder);
auto _license = _o->license.empty() ? 0 : _fbb.CreateString(_o->license);
auto _hw = _o->hw.empty() ? 0 : _fbb.CreateString(_o->hw);
auto _dataset = _o->dataset.empty() ? 0 : _fbb.CreateString(_o->dataset);
auto _trailing_bytes = _o->trailing_bytes;
auto _metadata_only = _o->metadata_only;
auto _geolocation = _o->geolocation ? Creategeojson_point(_fbb, _o->geolocation.get(), _rehasher) : 0;
auto _extensions = _o->extensions.size() ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_extension>> (_o->extensions.size(), [](size_t i, _VectorArgs *__va) { return Createsigmf_extension(*__va->__fbb, __va->__o->extensions[i].get(), __va->__rehasher); }, &_va ) : 0;
auto _collection = _o->collection.empty() ? 0 : _fbb.CreateString(_o->collection);
return sigmf::core::CreateGlobal(
_fbb,
_datatype,
_sample_rate,
_version,
_num_channels,
_sha512,
_offset,
_description,
_author,
_meta_doi,
_data_doi,
_recorder,
_license,
_hw,
_dataset,
_trailing_bytes,
_metadata_only,
_geolocation,
_extensions,
_collection);
}
inline CaptureT *Capture::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<CaptureT>(new CaptureT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void Capture::UnPackTo(CaptureT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = sample_start(); _o->sample_start = _e; }
{ auto _e = global_index(); _o->global_index = _e; }
{ auto _e = header_bytes(); _o->header_bytes = _e; }
{ auto _e = frequency(); _o->frequency = _e; }
{ auto _e = datetime(); if (_e) _o->datetime = _e->str(); }
}
inline flatbuffers::Offset<Capture> Capture::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CaptureT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return CreateCapture(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<Capture> CreateCapture(flatbuffers::FlatBufferBuilder &_fbb, const CaptureT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const CaptureT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _sample_start = _o->sample_start;
auto _global_index = _o->global_index;
auto _header_bytes = _o->header_bytes;
auto _frequency = _o->frequency;
auto _datetime = _o->datetime.empty() ? 0 : _fbb.CreateString(_o->datetime);
return sigmf::core::CreateCapture(
_fbb,
_sample_start,
_global_index,
_header_bytes,
_frequency,
_datetime);
}
inline AnnotationT *Annotation::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<AnnotationT>(new AnnotationT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void Annotation::UnPackTo(AnnotationT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = sample_start(); _o->sample_start = _e; }
{ auto _e = sample_count(); _o->sample_count = _e; }
{ auto _e = generator(); if (_e) _o->generator = _e->str(); }
{ auto _e = description(); if (_e) _o->description = _e->str(); }
{ auto _e = label(); if (_e) _o->label = _e->str(); }
{ auto _e = comment(); if (_e) _o->comment = _e->str(); }
{ auto _e = freq_lower_edge(); _o->freq_lower_edge = _e; }
{ auto _e = freq_upper_edge(); _o->freq_upper_edge = _e; }
{ auto _e = latitude(); _o->latitude = _e; }
{ auto _e = longitude(); _o->longitude = _e; }
}
inline flatbuffers::Offset<Annotation> Annotation::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AnnotationT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return CreateAnnotation(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<Annotation> CreateAnnotation(flatbuffers::FlatBufferBuilder &_fbb, const AnnotationT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const AnnotationT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _sample_start = _o->sample_start;
auto _sample_count = _o->sample_count;
auto _generator = _o->generator.empty() ? 0 : _fbb.CreateString(_o->generator);
auto _description = _o->description.empty() ? 0 : _fbb.CreateString(_o->description);
auto _label = _o->label.empty() ? 0 : _fbb.CreateString(_o->label);
auto _comment = _o->comment.empty() ? 0 : _fbb.CreateString(_o->comment);
auto _freq_lower_edge = _o->freq_lower_edge;
auto _freq_upper_edge = _o->freq_upper_edge;
auto _latitude = _o->latitude;
auto _longitude = _o->longitude;
return sigmf::core::CreateAnnotation(
_fbb,
_sample_start,
_sample_count,
_generator,
_description,
_label,
_comment,
_freq_lower_edge,
_freq_upper_edge,
_latitude,
_longitude);
}
inline CollectionT *Collection::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<CollectionT>(new CollectionT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void Collection::UnPackTo(CollectionT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = version(); if (_e) _o->version = _e->str(); }
{ auto _e = description(); if (_e) _o->description = _e->str(); }
{ auto _e = author(); if (_e) _o->author = _e->str(); }
{ auto _e = collection_doi(); if (_e) _o->collection_doi = _e->str(); }
{ auto _e = license(); if (_e) _o->license = _e->str(); }
{ auto _e = extensions(); if (_e) { _o->extensions.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->extensions[_i] = std::shared_ptr<sigmf::core::sigmf_extensionT>(_e->Get(_i)->UnPack(_resolver)); } } }
{ auto _e = streams(); if (_e) { _o->streams.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->streams[_i] = std::shared_ptr<sigmf::core::sigmf_streamT>(_e->Get(_i)->UnPack(_resolver)); } } }
}
inline flatbuffers::Offset<Collection> Collection::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CollectionT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return CreateCollection(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<Collection> CreateCollection(flatbuffers::FlatBufferBuilder &_fbb, const CollectionT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const CollectionT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _version = _o->version.empty() ? 0 : _fbb.CreateString(_o->version);
auto _description = _o->description.empty() ? 0 : _fbb.CreateString(_o->description);
auto _author = _o->author.empty() ? 0 : _fbb.CreateString(_o->author);
auto _collection_doi = _o->collection_doi.empty() ? 0 : _fbb.CreateString(_o->collection_doi);
auto _license = _o->license.empty() ? 0 : _fbb.CreateString(_o->license);
auto _extensions = _o->extensions.size() ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_extension>> (_o->extensions.size(), [](size_t i, _VectorArgs *__va) { return Createsigmf_extension(*__va->__fbb, __va->__o->extensions[i].get(), __va->__rehasher); }, &_va ) : 0;
auto _streams = _o->streams.size() ? _fbb.CreateVector<flatbuffers::Offset<sigmf::core::sigmf_stream>> (_o->streams.size(), [](size_t i, _VectorArgs *__va) { return Createsigmf_stream(*__va->__fbb, __va->__o->streams[i].get(), __va->__rehasher); }, &_va ) : 0;
return sigmf::core::CreateCollection(
_fbb,
_version,
_description,
_author,
_collection_doi,
_license,
_extensions,
_streams);
}
inline DescrT *Descr::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
auto _o = std::unique_ptr<DescrT>(new DescrT());
UnPackTo(_o.get(), _resolver);
return _o.release();
}
inline void Descr::UnPackTo(DescrT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = global(); if (_e) _o->global = std::shared_ptr<sigmf::core::GlobalT>(_e->UnPack(_resolver)); }
{ auto _e = annotation(); if (_e) _o->annotation = std::shared_ptr<sigmf::core::AnnotationT>(_e->UnPack(_resolver)); }
{ auto _e = capture(); if (_e) _o->capture = std::shared_ptr<sigmf::core::CaptureT>(_e->UnPack(_resolver)); }
{ auto _e = collection(); if (_e) _o->collection = std::shared_ptr<sigmf::core::CollectionT>(_e->UnPack(_resolver)); }
}
inline flatbuffers::Offset<Descr> Descr::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DescrT* _o, const flatbuffers::rehasher_function_t *_rehasher) {
return CreateDescr(_fbb, _o, _rehasher);
}
inline flatbuffers::Offset<Descr> CreateDescr(flatbuffers::FlatBufferBuilder &_fbb, const DescrT *_o, const flatbuffers::rehasher_function_t *_rehasher) {
(void)_rehasher;
(void)_o;
struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const DescrT* __o; const flatbuffers::rehasher_function_t *__rehasher; } _va = { &_fbb, _o, _rehasher}; (void)_va;
auto _global = _o->global ? CreateGlobal(_fbb, _o->global.get(), _rehasher) : 0;
auto _annotation = _o->annotation ? CreateAnnotation(_fbb, _o->annotation.get(), _rehasher) : 0;
auto _capture = _o->capture ? CreateCapture(_fbb, _o->capture.get(), _rehasher) : 0;
auto _collection = _o->collection ? CreateCollection(_fbb, _o->collection.get(), _rehasher) : 0;
return sigmf::core::CreateDescr(
_fbb,
_global,
_annotation,
_capture,
_collection);
}
inline const flatbuffers::TypeTable *sigmf_extensionTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_BOOL, 0, -1 }
};
static const char * const names[] = {
"name",
"version",
"optional"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 3, type_codes, nullptr, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *sigmf_streamTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 }
};
static const char * const names[] = {
"name",
"hash"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 2, type_codes, nullptr, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *geojson_pointTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_DOUBLE, 1, -1 }
};
static const char * const names[] = {
"type",
"coordinates"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 2, type_codes, nullptr, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *GlobalTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_BOOL, 0, -1 },
{ flatbuffers::ET_SEQUENCE, 0, 0 },
{ flatbuffers::ET_SEQUENCE, 1, 1 },
{ flatbuffers::ET_STRING, 0, -1 }
};
static const flatbuffers::TypeFunction type_refs[] = {
sigmf::core::geojson_pointTypeTable,
sigmf::core::sigmf_extensionTypeTable
};
static const char * const names[] = {
"datatype",
"sample_rate",
"version",
"num_channels",
"sha512",
"offset",
"description",
"author",
"meta_doi",
"data_doi",
"recorder",
"license",
"hw",
"dataset",
"trailing_bytes",
"metadata_only",
"geolocation",
"extensions",
"collection"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 19, type_codes, type_refs, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *CaptureTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 }
};
static const char * const names[] = {
"sample_start",
"global_index",
"header_bytes",
"frequency",
"datetime"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 5, type_codes, nullptr, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *AnnotationTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_ULONG, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 },
{ flatbuffers::ET_DOUBLE, 0, -1 }
};
static const char * const names[] = {
"sample_start",
"sample_count",
"generator",
"description",
"label",
"comment",
"freq_lower_edge",
"freq_upper_edge",
"latitude",
"longitude"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 10, type_codes, nullptr, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *CollectionTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_STRING, 0, -1 },
{ flatbuffers::ET_SEQUENCE, 1, 0 },
{ flatbuffers::ET_SEQUENCE, 1, 1 }
};
static const flatbuffers::TypeFunction type_refs[] = {
sigmf::core::sigmf_extensionTypeTable,
sigmf::core::sigmf_streamTypeTable
};
static const char * const names[] = {
"version",
"description",
"author",
"collection_doi",
"license",
"extensions",
"streams"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 7, type_codes, type_refs, nullptr, nullptr, names
};
return &tt;
}
inline const flatbuffers::TypeTable *DescrTypeTable() {
static const flatbuffers::TypeCode type_codes[] = {
{ flatbuffers::ET_SEQUENCE, 0, 0 },
{ flatbuffers::ET_SEQUENCE, 0, 1 },
{ flatbuffers::ET_SEQUENCE, 0, 2 },
{ flatbuffers::ET_SEQUENCE, 0, 3 }
};
static const flatbuffers::TypeFunction type_refs[] = {
sigmf::core::GlobalTypeTable,
sigmf::core::AnnotationTypeTable,
sigmf::core::CaptureTypeTable,
sigmf::core::CollectionTypeTable
};
static const char * const names[] = {
"global",
"annotation",
"capture",
"collection"
};
static const flatbuffers::TypeTable tt = {
flatbuffers::ST_TABLE, 4, type_codes, type_refs, nullptr, nullptr, names
};
return &tt;
}
} // namespace core
} // namespace sigmf
#endif // FLATBUFFERS_GENERATED_SIGMFCORE_SIGMF_CORE_H_
|