Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
[![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)
[![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)

<!-- TODO(eduponz): Remove this before releasing v3.0.0 -->
> [!WARNING]
> 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**.
> 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).

*eProsima Fast DDS Python* is a Python binding for the [*eProsima Fast DDS*](https://github.com/eProsima/Fast-DDS) C++ library.
This is a work in progress, but ultimately the goal is having the complete *Fast DDS* API available in Python.
Two packages are available in this repository: the proper Python binding, `fastdds_python`, and the examples, `fastdds_python_examples`.
Expand Down
356 changes: 355 additions & 1 deletion fastdds_python/test/types/test_completeCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,43 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const StructType& data)
{
extern void serialize_key(
Cdr& scdr,
const eprosima::test2::StructType2& data);


static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.char_field();

scdr << data.uint8_field();

scdr << data.int16_field();

scdr << data.uint16_field();

scdr << data.int32_field();

scdr << data.uint32_field();

scdr << data.int64_field();

scdr << data.uint64_field();

scdr << data.float_field();

scdr << data.double_field();

scdr << data.bool_field();

scdr << data.string_field();

scdr << data.enum_field();

scdr << data.enum2_field();

serialize_key(scdr, data.included_module_struct());

}


Expand Down Expand Up @@ -863,8 +898,262 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const CompleteTestType& data)
{
extern void serialize_key(
Cdr& scdr,
const StructType& data);















extern void serialize_key(
Cdr& scdr,
const StructType& data);












































static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.char_field();

scdr << data.uint8_field();

scdr << data.int16_field();

scdr << data.uint16_field();

scdr << data.int32_field();

scdr << data.uint32_field();

scdr << data.int64_field();

scdr << data.uint64_field();

scdr << data.float_field();

scdr << data.double_field();

scdr << data.bool_field();

scdr << data.string_field();

scdr << data.enum_field();

scdr << data.enum2_field();

serialize_key(scdr, data.struct_field());

if (data.char_opt_field().has_value())
{
scdr << data.char_opt_field().value();
}

if (data.uint8_opt_field().has_value())
{
scdr << data.uint8_opt_field().value();
}

if (data.int16_opt_field().has_value())
{
scdr << data.int16_opt_field().value();
}

if (data.uint16_opt_field().has_value())
{
scdr << data.uint16_opt_field().value();
}

if (data.int32_opt_field().has_value())
{
scdr << data.int32_opt_field().value();
}

if (data.uint32_opt_field().has_value())
{
scdr << data.uint32_opt_field().value();
}

if (data.int64_opt_field().has_value())
{
scdr << data.int64_opt_field().value();
}

if (data.uint64_opt_field().has_value())
{
scdr << data.uint64_opt_field().value();
}

if (data.float_opt_field().has_value())
{
scdr << data.float_opt_field().value();
}

if (data.double_opt_field().has_value())
{
scdr << data.double_opt_field().value();
}

if (data.bool_opt_field().has_value())
{
scdr << data.bool_opt_field().value();
}

if (data.string_opt_field().has_value())
{
scdr << data.string_opt_field().value();
}

if (data.enum_opt_field().has_value())
{
scdr << data.enum_opt_field().value();
}

if (data.enum2_opt_field().has_value())
{
scdr << data.enum2_opt_field().value();
}

if (data.struct_opt_field().has_value())
{
serialize_key(scdr, data.struct_opt_field().value());
}

scdr << data.array_char_field();

scdr << data.array_uint8_field();

scdr << data.array_int16_field();

scdr << data.array_uint16_field();

scdr << data.array_int32_field();

scdr << data.array_uint32_field();

scdr << data.array_int64_field();

scdr << data.array_uint64_field();

scdr << data.array_float_field();

scdr << data.array_double_field();

scdr << data.array_bool_field();

scdr << data.array_enum_field();

scdr << data.array_enum2_field();

scdr << data.array_struct_field();

scdr << data.bounded_sequence_char_field();

scdr << data.bounded_sequence_uint8_field();

scdr << data.bounded_sequence_int16_field();

scdr << data.bounded_sequence_uint16_field();

scdr << data.bounded_sequence_int32_field();

scdr << data.bounded_sequence_uint32_field();

scdr << data.bounded_sequence_int64_field();

scdr << data.bounded_sequence_uint64_field();

scdr << data.bounded_sequence_float_field();

scdr << data.bounded_sequence_double_field();

scdr << data.bounded_sequence_bool_field();

scdr << data.bounded_sequence_enum_field();

scdr << data.bounded_sequence_enum2_field();

scdr << data.bounded_sequence_struct_field();

scdr << data.unbounded_sequence_char_field();

scdr << data.unbounded_sequence_uint8_field();

scdr << data.unbounded_sequence_int16_field();

scdr << data.unbounded_sequence_uint16_field();

scdr << data.unbounded_sequence_int32_field();

scdr << data.unbounded_sequence_uint32_field();

scdr << data.unbounded_sequence_int64_field();

scdr << data.unbounded_sequence_uint64_field();

scdr << data.unbounded_sequence_float_field();

scdr << data.unbounded_sequence_double_field();

scdr << data.unbounded_sequence_bool_field();

scdr << data.unbounded_sequence_enum_field();

scdr << data.unbounded_sequence_enum2_field();

scdr << data.unbounded_sequence_struct_field();

}


Expand Down Expand Up @@ -1515,9 +1804,74 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const KeyedCompleteTestType& data)
{
extern void serialize_key(
Cdr& scdr,
const StructType& data);















extern void serialize_key(
Cdr& scdr,
const StructType& data);












































static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.id();
scdr << data.id();



Expand Down
Loading