Skip to content

Commit f4cd43e

Browse files
Bump to v2.0.0 (#178)
* Refs #21366: Remove warning about new release Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #21366: Regenerate files with Gen v4 Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> --------- Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> Co-authored-by: JesusPoderoso <jesuspoderoso@eprosima.com>
1 parent 6ca558c commit f4cd43e

9 files changed

Lines changed: 750 additions & 15 deletions

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
[![Fast DDS Python Ubuntu CI (nightly)](https://github.com/eProsima/Fast-DDS-Python/actions/workflows/nightly-ubuntu-ci.yml/badge.svg)](https://github.com/eProsima/Fast-DDS-Python/actions/workflows/nightly-ubuntu-ci.yml)
1111
[![Fast DDS Python Windows CI (nightly)](https://github.com/eProsima/Fast-DDS-Python/actions/workflows/nightly-windows-ci.yml/badge.svg)](https://github.com/eProsima/Fast-DDS-Python/actions/workflows/nightly-windows-ci.yml)
1212

13-
<!-- TODO(eduponz): Remove this before releasing v3.0.0 -->
14-
> [!WARNING]
15-
> In preparation for v2.0.0 (bindings for Fast DDS v3.0.0), Fast DDS Python's master branch is undergoing major changes entailing **API breaks**.
16-
> Until Fast DDS Python v2.0.0 is released, it is strongly advisable to use the latest stable version, [v1.4.1](https://github.com/eProsima/Fast-DDS-python/tree/v1.4.1).
17-
1813
*eProsima Fast DDS Python* is a Python binding for the [*eProsima Fast DDS*](https://github.com/eProsima/Fast-DDS) C++ library.
1914
This is a work in progress, but ultimately the goal is having the complete *Fast DDS* API available in Python.
2015
Two packages are available in this repository: the proper Python binding, `fastdds_python`, and the examples, `fastdds_python_examples`.

fastdds_python/test/types/test_completeCdrAux.ipp

Lines changed: 355 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,43 @@ void serialize_key(
217217
eprosima::fastcdr::Cdr& scdr,
218218
const StructType& data)
219219
{
220+
extern void serialize_key(
221+
Cdr& scdr,
222+
const eprosima::test2::StructType2& data);
223+
224+
220225
static_cast<void>(scdr);
221226
static_cast<void>(data);
227+
scdr << data.char_field();
228+
229+
scdr << data.uint8_field();
230+
231+
scdr << data.int16_field();
232+
233+
scdr << data.uint16_field();
234+
235+
scdr << data.int32_field();
236+
237+
scdr << data.uint32_field();
238+
239+
scdr << data.int64_field();
240+
241+
scdr << data.uint64_field();
242+
243+
scdr << data.float_field();
244+
245+
scdr << data.double_field();
246+
247+
scdr << data.bool_field();
248+
249+
scdr << data.string_field();
250+
251+
scdr << data.enum_field();
252+
253+
scdr << data.enum2_field();
254+
255+
serialize_key(scdr, data.included_module_struct());
256+
222257
}
223258

224259

@@ -863,8 +898,262 @@ void serialize_key(
863898
eprosima::fastcdr::Cdr& scdr,
864899
const CompleteTestType& data)
865900
{
901+
extern void serialize_key(
902+
Cdr& scdr,
903+
const StructType& data);
904+
905+
906+
907+
908+
909+
910+
911+
912+
913+
914+
915+
916+
917+
918+
919+
extern void serialize_key(
920+
Cdr& scdr,
921+
const StructType& data);
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+
866966
static_cast<void>(scdr);
867967
static_cast<void>(data);
968+
scdr << data.char_field();
969+
970+
scdr << data.uint8_field();
971+
972+
scdr << data.int16_field();
973+
974+
scdr << data.uint16_field();
975+
976+
scdr << data.int32_field();
977+
978+
scdr << data.uint32_field();
979+
980+
scdr << data.int64_field();
981+
982+
scdr << data.uint64_field();
983+
984+
scdr << data.float_field();
985+
986+
scdr << data.double_field();
987+
988+
scdr << data.bool_field();
989+
990+
scdr << data.string_field();
991+
992+
scdr << data.enum_field();
993+
994+
scdr << data.enum2_field();
995+
996+
serialize_key(scdr, data.struct_field());
997+
998+
if (data.char_opt_field().has_value())
999+
{
1000+
scdr << data.char_opt_field().value();
1001+
}
1002+
1003+
if (data.uint8_opt_field().has_value())
1004+
{
1005+
scdr << data.uint8_opt_field().value();
1006+
}
1007+
1008+
if (data.int16_opt_field().has_value())
1009+
{
1010+
scdr << data.int16_opt_field().value();
1011+
}
1012+
1013+
if (data.uint16_opt_field().has_value())
1014+
{
1015+
scdr << data.uint16_opt_field().value();
1016+
}
1017+
1018+
if (data.int32_opt_field().has_value())
1019+
{
1020+
scdr << data.int32_opt_field().value();
1021+
}
1022+
1023+
if (data.uint32_opt_field().has_value())
1024+
{
1025+
scdr << data.uint32_opt_field().value();
1026+
}
1027+
1028+
if (data.int64_opt_field().has_value())
1029+
{
1030+
scdr << data.int64_opt_field().value();
1031+
}
1032+
1033+
if (data.uint64_opt_field().has_value())
1034+
{
1035+
scdr << data.uint64_opt_field().value();
1036+
}
1037+
1038+
if (data.float_opt_field().has_value())
1039+
{
1040+
scdr << data.float_opt_field().value();
1041+
}
1042+
1043+
if (data.double_opt_field().has_value())
1044+
{
1045+
scdr << data.double_opt_field().value();
1046+
}
1047+
1048+
if (data.bool_opt_field().has_value())
1049+
{
1050+
scdr << data.bool_opt_field().value();
1051+
}
1052+
1053+
if (data.string_opt_field().has_value())
1054+
{
1055+
scdr << data.string_opt_field().value();
1056+
}
1057+
1058+
if (data.enum_opt_field().has_value())
1059+
{
1060+
scdr << data.enum_opt_field().value();
1061+
}
1062+
1063+
if (data.enum2_opt_field().has_value())
1064+
{
1065+
scdr << data.enum2_opt_field().value();
1066+
}
1067+
1068+
if (data.struct_opt_field().has_value())
1069+
{
1070+
serialize_key(scdr, data.struct_opt_field().value());
1071+
}
1072+
1073+
scdr << data.array_char_field();
1074+
1075+
scdr << data.array_uint8_field();
1076+
1077+
scdr << data.array_int16_field();
1078+
1079+
scdr << data.array_uint16_field();
1080+
1081+
scdr << data.array_int32_field();
1082+
1083+
scdr << data.array_uint32_field();
1084+
1085+
scdr << data.array_int64_field();
1086+
1087+
scdr << data.array_uint64_field();
1088+
1089+
scdr << data.array_float_field();
1090+
1091+
scdr << data.array_double_field();
1092+
1093+
scdr << data.array_bool_field();
1094+
1095+
scdr << data.array_enum_field();
1096+
1097+
scdr << data.array_enum2_field();
1098+
1099+
scdr << data.array_struct_field();
1100+
1101+
scdr << data.bounded_sequence_char_field();
1102+
1103+
scdr << data.bounded_sequence_uint8_field();
1104+
1105+
scdr << data.bounded_sequence_int16_field();
1106+
1107+
scdr << data.bounded_sequence_uint16_field();
1108+
1109+
scdr << data.bounded_sequence_int32_field();
1110+
1111+
scdr << data.bounded_sequence_uint32_field();
1112+
1113+
scdr << data.bounded_sequence_int64_field();
1114+
1115+
scdr << data.bounded_sequence_uint64_field();
1116+
1117+
scdr << data.bounded_sequence_float_field();
1118+
1119+
scdr << data.bounded_sequence_double_field();
1120+
1121+
scdr << data.bounded_sequence_bool_field();
1122+
1123+
scdr << data.bounded_sequence_enum_field();
1124+
1125+
scdr << data.bounded_sequence_enum2_field();
1126+
1127+
scdr << data.bounded_sequence_struct_field();
1128+
1129+
scdr << data.unbounded_sequence_char_field();
1130+
1131+
scdr << data.unbounded_sequence_uint8_field();
1132+
1133+
scdr << data.unbounded_sequence_int16_field();
1134+
1135+
scdr << data.unbounded_sequence_uint16_field();
1136+
1137+
scdr << data.unbounded_sequence_int32_field();
1138+
1139+
scdr << data.unbounded_sequence_uint32_field();
1140+
1141+
scdr << data.unbounded_sequence_int64_field();
1142+
1143+
scdr << data.unbounded_sequence_uint64_field();
1144+
1145+
scdr << data.unbounded_sequence_float_field();
1146+
1147+
scdr << data.unbounded_sequence_double_field();
1148+
1149+
scdr << data.unbounded_sequence_bool_field();
1150+
1151+
scdr << data.unbounded_sequence_enum_field();
1152+
1153+
scdr << data.unbounded_sequence_enum2_field();
1154+
1155+
scdr << data.unbounded_sequence_struct_field();
1156+
8681157
}
8691158

8701159

@@ -1515,9 +1804,74 @@ void serialize_key(
15151804
eprosima::fastcdr::Cdr& scdr,
15161805
const KeyedCompleteTestType& data)
15171806
{
1807+
extern void serialize_key(
1808+
Cdr& scdr,
1809+
const StructType& data);
1810+
1811+
1812+
1813+
1814+
1815+
1816+
1817+
1818+
1819+
1820+
1821+
1822+
1823+
1824+
1825+
extern void serialize_key(
1826+
Cdr& scdr,
1827+
const StructType& data);
1828+
1829+
1830+
1831+
1832+
1833+
1834+
1835+
1836+
1837+
1838+
1839+
1840+
1841+
1842+
1843+
1844+
1845+
1846+
1847+
1848+
1849+
1850+
1851+
1852+
1853+
1854+
1855+
1856+
1857+
1858+
1859+
1860+
1861+
1862+
1863+
1864+
1865+
1866+
1867+
1868+
1869+
1870+
1871+
15181872
static_cast<void>(scdr);
15191873
static_cast<void>(data);
1520-
scdr << data.id();
1874+
scdr << data.id();
15211875

15221876

15231877

0 commit comments

Comments
 (0)