From 61d4ad85c501c7a1a2ac27a1d88c54fd83095cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Fri, 6 Oct 2023 09:53:07 +0200 Subject: [PATCH] Refs #19659. Support of optionals. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also support of collections of enumerations Signed-off-by: Ricardo González Moreno --- .../src/swig/fastcdr/xcdr/optional.i | 19 + fastdds_python/src/swig/fastdds.i | 4 +- fastdds_python/test/api/test_datareader.py | 527 ++- fastdds_python/test/types/CMakeLists.txt | 53 +- fastdds_python/test/types/test_complete.cxx | 3794 +++++++++++------ fastdds_python/test/types/test_complete.h | 840 ++++ fastdds_python/test/types/test_complete.i | 1080 ++++- fastdds_python/test/types/test_complete.idl | 36 + .../test/types/test_completeCdrAux.hpp | 4 +- .../test/types/test_completeCdrAux.ipp | 751 ++-- .../test/types/test_included_modules.i | 28 + fastdds_python/test/types/test_modules.cxx | 3794 +++++++++++------ fastdds_python/test/types/test_modules.h | 840 ++++ fastdds_python/test/types/test_modules.i | 1083 ++++- fastdds_python/test/types/test_modules.idl | 36 + .../test/types/test_modulesCdrAux.hpp | 4 +- .../test/types/test_modulesCdrAux.ipp | 751 ++-- 17 files changed, 10268 insertions(+), 3376 deletions(-) create mode 100644 fastdds_python/src/swig/fastcdr/xcdr/optional.i diff --git a/fastdds_python/src/swig/fastcdr/xcdr/optional.i b/fastdds_python/src/swig/fastcdr/xcdr/optional.i new file mode 100644 index 00000000..144f42c5 --- /dev/null +++ b/fastdds_python/src/swig/fastcdr/xcdr/optional.i @@ -0,0 +1,19 @@ +// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +%{ +#include "fastcdr/xcdr/optional.hpp" +%} + +%include "fastcdr/xcdr/optional.hpp" diff --git a/fastdds_python/src/swig/fastdds.i b/fastdds_python/src/swig/fastdds.i index c9b0724b..0d008f99 100644 --- a/fastdds_python/src/swig/fastdds.i +++ b/fastdds_python/src/swig/fastdds.i @@ -119,6 +119,8 @@ namespace builtin { // Failing to do so will issue a warning, but will not stop the compilation. // However, the resulting derived class will **not** be considered as inheriting from the base class +%include "fastcdr/xcdr/optional.i" + %include "fastdds/rtps/common/VendorId_t.i" %include "fastdds/rtps/common/Types.i" %include "fastdds/rtps/common/Time_t.i" @@ -492,5 +494,3 @@ namespace builtin { %include "fastdds/dds/log/StdoutConsumer.i" %include "fastdds/dds/log/Colors.i" */ - - diff --git a/fastdds_python/test/api/test_datareader.py b/fastdds_python/test/api/test_datareader.py index 452dd588..2ecd251b 100644 --- a/fastdds_python/test/api/test_datareader.py +++ b/fastdds_python/test/api/test_datareader.py @@ -117,6 +117,493 @@ def datawriter(writer_participant, writer_topic, publisher): factory.delete_participant(writer_participant)) +def fill_keyed_complete_test_type(data): + # Auxiliary StructTypes + struct_type1 = pytest.dds_type.StructType() + struct_type1.char_field('\x01') + struct_type1.uint8_field(254) + struct_type1.int16_field(-10) + struct_type1.uint16_field(10) + struct_type1.int32_field(-1000) + struct_type1.uint32_field(1000) + struct_type1.int64_field(-36000) + struct_type1.uint64_field(36000) + struct_type1.float_field(1.0) + struct_type1.double_field(1200.5) + struct_type1.bool_field(False) + struct_type1.enum_field(pytest.dds_type.RED) + struct_type1.enum2_field(pytest.dds_type.STONE) + struct_type2 = pytest.dds_type.StructType() + struct_type2.char_field('\x02') + struct_type2.uint8_field(255) + struct_type2.int16_field(10) + struct_type2.uint16_field(35) + struct_type2.int32_field(1000) + struct_type2.uint32_field(200) + struct_type2.int64_field(36000) + struct_type2.uint64_field(128000) + struct_type2.float_field(2.0) + struct_type2.double_field(1202.5) + struct_type2.bool_field(True) + struct_type2.enum_field(pytest.dds_type.BLUE) + struct_type2.enum2_field(pytest.dds_type.PLASTIC) + struct_type3 = pytest.dds_type.StructType() + struct_type3.char_field('\x03') + struct_type3.uint8_field(1) + struct_type3.int16_field(-20) + struct_type3.uint16_field(60) + struct_type3.int32_field(-2000) + struct_type3.uint32_field(3000) + struct_type3.int64_field(-1) + struct_type3.uint64_field(3) + struct_type3.float_field(3.0) + struct_type3.double_field(3.5) + struct_type3.bool_field(False) + struct_type3.enum_field(pytest.dds_type.MAGENTA) + struct_type3.enum2_field(pytest.dds_type.METAL) + + data.char_field('\x01') + data.uint8_field(254) + data.int16_field(-10) + data.uint16_field(10) + data.int32_field(-1000) + data.uint32_field(1000) + data.int64_field(-36000) + data.uint64_field(36000) + data.float_field(1.0) + data.double_field(1202.5) + data.bool_field(True) + data.string_field("Test string") + data.enum_field(pytest.dds_type.MAGENTA) + data.enum2_field(pytest.dds_type.METAL) + data.struct_field().char_field('\x01') + data.struct_field().uint8_field(254) + data.struct_field().int16_field(-10) + data.struct_field().uint16_field(10) + data.struct_field().int32_field(-1000) + data.struct_field().uint32_field(1000) + data.struct_field().int64_field(-36000) + data.struct_field().uint64_field(36000) + data.struct_field().float_field(1.0) + data.struct_field().double_field(1202.5) + data.struct_field().bool_field(False) + data.struct_field().string_field("Test string") + data.struct_field().enum_field(pytest.dds_type.MAGENTA) + data.struct_field().enum2_field(pytest.dds_type.METAL) + data.char_opt_field().set_value('\x01') + data.uint8_opt_field().set_value(254) + data.int16_opt_field().set_value(-10) + data.uint16_opt_field().set_value(10) + data.int32_opt_field().set_value(-1000) + data.uint32_opt_field().set_value(1000) + data.int64_opt_field().set_value(-36000) + data.uint64_opt_field().set_value(36000) + data.float_opt_field().set_value(1.0) + data.double_opt_field().set_value(1202.5) + data.bool_opt_field().set_value(True) + data.string_opt_field().set_value("Test string") + data.enum_opt_field().set_value(pytest.dds_type.MAGENTA) + struct_field = pytest.dds_type.StructType() + struct_field.char_field('\x01') + struct_field.uint8_field(254) + struct_field.int16_field(-10) + struct_field.uint16_field(10) + struct_field.int32_field(-1000) + struct_field.uint32_field(1000) + struct_field.int64_field(-36000) + struct_field.uint64_field(36000) + struct_field.float_field(1.0) + struct_field.double_field(1202.5) + struct_field.bool_field(True) + struct_field.string_field("Test string") + struct_field.enum_field(pytest.dds_type.MAGENTA) + struct_field.enum2_field(pytest.dds_type.METAL) + data.struct_opt_field().set_value(struct_field) + data.array_char_field(['\x01', '\x02', '\x03']) + data.array_uint8_field([254, 255, 1]) + data.array_int16_field([-10, 10, -20]) + data.array_uint16_field([10, 35, 60]) + data.array_int32_field([-1000, 1000, -2000]) + data.array_uint32_field([1000, 200, 3000]) + data.array_int64_field([-36000, 36000, -1]) + data.array_uint64_field([36000, 128000, 3]) + data.array_float_field([1.0, 2.0, 3.0]) + data.array_double_field([1200.5, 1202.5, 3.5]) + data.array_bool_field([False, True, False]) + data.array_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) + data.array_enum2_field()[0] = pytest.dds_type.METAL + data.array_enum2_field()[1] = pytest.dds_type.STONE + data.array_enum2_field()[2] = pytest.dds_type.PLASTIC + data.array_struct_field([struct_type1, struct_type2, struct_type3]) + data.bounded_sequence_char_field(['\x01', '\x02', '\x03']) + data.bounded_sequence_uint8_field([254, 255, 1]) + data.bounded_sequence_int16_field([-10, 10, -20]) + data.bounded_sequence_uint16_field([10, 35, 60]) + data.bounded_sequence_int32_field([-1000, 1000, -2000]) + data.bounded_sequence_uint32_field([1000, 200, 3000]) + data.bounded_sequence_int64_field([-36000, 36000, -1]) + data.bounded_sequence_uint64_field([36000, 128000, 3]) + data.bounded_sequence_float_field([1.0, 2.0, 3.0]) + data.bounded_sequence_double_field([1200.5, 1202.5, 3.5]) + data.bounded_sequence_bool_field([False, True, False]) + data.bounded_sequence_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.METAL) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.STONE) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.PLASTIC) + data.bounded_sequence_struct_field([struct_type1, struct_type2, struct_type3]) + data.unbounded_sequence_char_field(['\x01', '\x02', '\x03']) + data.unbounded_sequence_uint8_field([254, 255, 1]) + data.unbounded_sequence_int16_field([-10, 10, -20]) + data.unbounded_sequence_uint16_field([10, 35, 60]) + data.unbounded_sequence_int32_field([-1000, 1000, -2000]) + data.unbounded_sequence_uint32_field([1000, 200, 3000]) + data.unbounded_sequence_int64_field([-36000, 36000, -1]) + data.unbounded_sequence_uint64_field([36000, 128000, 3]) + data.unbounded_sequence_float_field([1.0, 2.0, 3.0]) + data.unbounded_sequence_double_field([1200.5, 1202.5, 3.5]) + data.unbounded_sequence_bool_field([False, True, False]) + data.unbounded_sequence_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.METAL) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.STONE) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.PLASTIC) + data.unbounded_sequence_struct_field([struct_type1, struct_type2, struct_type3]) + + +def check_keyed_complete_test_type(data): + assert(data.char_field() == '\x01') + assert(data.uint8_field() == 254) + assert(data.int16_field() == -10) + assert(data.uint16_field() == 10) + assert(data.int32_field() == -1000) + assert(data.uint32_field() == 1000) + assert(data.int64_field() == -36000) + assert(data.uint64_field() == 36000) + assert(data.float_field() == 1.0) + assert(data.double_field() == 1202.5) + assert(data.bool_field() == True) + assert(data.string_field() == "Test string") + assert(data.enum_field() == pytest.dds_type.MAGENTA) + assert(data.enum2_field() == pytest.dds_type.METAL) + assert(data.struct_field().char_field() == '\x01') + assert(data.struct_field().uint8_field() == 254) + assert(data.struct_field().int16_field() == -10) + assert(data.struct_field().uint16_field() == 10) + assert(data.struct_field().int32_field() == -1000) + assert(data.struct_field().uint32_field() == 1000) + assert(data.struct_field().int64_field() == -36000) + assert(data.struct_field().uint64_field() == 36000) + assert(data.struct_field().float_field() == 1.0) + assert(data.struct_field().double_field() == 1202.5) + assert(data.struct_field().bool_field() == False) + assert(data.struct_field().string_field() == "Test string") + assert(data.struct_field().enum_field() == pytest.dds_type.MAGENTA) + assert(data.struct_field().enum2_field() == pytest.dds_type.METAL) + assert(data.char_opt_field().has_value()) + assert(data.char_opt_field().get_value() == '\x01') + assert(data.uint8_opt_field().has_value()) + assert(data.uint8_opt_field().get_value() == 254) + assert(data.int16_opt_field().has_value()) + assert(data.int16_opt_field().get_value() == -10) + assert(data.uint16_opt_field().has_value()) + assert(data.uint16_opt_field().get_value() == 10) + assert(data.int32_opt_field().has_value()) + assert(data.int32_opt_field().get_value() == -1000) + assert(data.uint32_opt_field().has_value()) + assert(data.uint32_opt_field().get_value() == 1000) + assert(data.int64_opt_field().has_value()) + assert(data.int64_opt_field().get_value() == -36000) + assert(data.uint64_opt_field().has_value()) + assert(data.uint64_opt_field().get_value() == 36000) + assert(data.float_opt_field().has_value()) + assert(data.float_opt_field().get_value() == 1.0) + assert(data.double_opt_field().has_value()) + assert(data.double_opt_field().get_value() == 1202.5) + assert(data.bool_opt_field().has_value()) + assert(data.bool_opt_field().get_value() == True) + assert(data.string_opt_field().has_value()) + assert(data.string_opt_field().get_value() == "Test string") + assert(data.enum_opt_field().has_value()) + assert(data.enum_opt_field().get_value() == pytest.dds_type.MAGENTA) + assert(not data.enum2_opt_field().has_value()) + assert(data.struct_opt_field().has_value()) + assert(data.struct_opt_field().char_field() == '\x01') + assert(data.struct_opt_field().uint8_field() == 254) + assert(data.struct_opt_field().int16_field() == -10) + assert(data.struct_opt_field().uint16_field() == 10) + assert(data.struct_opt_field().int32_field() == -1000) + assert(data.struct_opt_field().uint32_field() == 1000) + assert(data.struct_opt_field().int64_field() == -36000) + assert(data.struct_opt_field().uint64_field() == 36000) + assert(data.struct_opt_field().float_field() == 1.0) + assert(data.struct_opt_field().double_field() == 1202.5) + assert(data.struct_opt_field().bool_field() == True) + assert(data.struct_opt_field().string_field() == "Test string") + assert(data.struct_opt_field().enum_field() == pytest.dds_type.MAGENTA) + assert(data.struct_opt_field().enum2_field() == pytest.dds_type.METAL) + assert(data.array_char_field()[0] == '\x01') + assert(data.array_char_field()[1] == '\x02') + assert(data.array_char_field()[2] == '\x03') + assert(data.array_uint8_field()[0] == 254) + assert(data.array_uint8_field()[1] == 255) + assert(data.array_uint8_field()[2] == 1) + assert(data.array_int16_field()[0] == -10) + assert(data.array_int16_field()[1] == 10) + assert(data.array_int16_field()[2] == -20) + assert(data.array_uint16_field()[0] == 10) + assert(data.array_uint16_field()[1] == 35) + assert(data.array_uint16_field()[2] == 60) + assert(data.array_int32_field()[0] == -1000) + assert(data.array_int32_field()[1] == 1000) + assert(data.array_int32_field()[2] == -2000) + assert(data.array_uint32_field()[0] == 1000) + assert(data.array_uint32_field()[1] == 200) + assert(data.array_uint32_field()[2] == 3000) + assert(data.array_int64_field()[0] == -36000) + assert(data.array_int64_field()[1] == 36000) + assert(data.array_int64_field()[2] == -1) + assert(data.array_uint64_field()[0] == 36000) + assert(data.array_uint64_field()[1] == 128000) + assert(data.array_uint64_field()[2] == 3) + assert(data.array_float_field()[0] == 1.0) + assert(data.array_float_field()[1] == 2.0) + assert(data.array_float_field()[2] == 3.0) + assert(data.array_double_field()[0] == 1200.5) + assert(data.array_double_field()[1] == 1202.5) + assert(data.array_double_field()[2] == 3.5) + assert(data.array_bool_field()[0] == False) + assert(data.array_bool_field()[1] == True) + assert(data.array_bool_field()[2] == False) + assert(data.array_enum_field()[0] == pytest.dds_type.RED) + assert(data.array_enum_field()[1] == pytest.dds_type.BLUE) + assert(data.array_enum_field()[2] == pytest.dds_type.MAGENTA) + assert(data.array_enum2_field()[0] == pytest.dds_type.METAL) + assert(data.array_enum2_field()[1] == pytest.dds_type.STONE) + assert(data.array_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.array_struct_field()[0].char_field() == '\x01') + assert(data.array_struct_field()[0].uint8_field() == 254) + assert(data.array_struct_field()[0].int16_field() == -10) + assert(data.array_struct_field()[0].uint16_field() == 10) + assert(data.array_struct_field()[0].int32_field() == -1000) + assert(data.array_struct_field()[0].uint32_field() == 1000) + assert(data.array_struct_field()[0].int64_field() == -36000) + assert(data.array_struct_field()[0].uint64_field() == 36000) + assert(data.array_struct_field()[0].float_field() == 1.0) + assert(data.array_struct_field()[0].double_field() == 1200.5) + assert(data.array_struct_field()[0].bool_field() == False) + assert(data.array_struct_field()[0].enum_field() == pytest.dds_type.RED) + assert(data.array_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.array_struct_field()[1].char_field() == '\x02') + assert(data.array_struct_field()[1].uint8_field() == 255) + assert(data.array_struct_field()[1].int16_field() == 10) + assert(data.array_struct_field()[1].uint16_field() == 35) + assert(data.array_struct_field()[1].int32_field() == 1000) + assert(data.array_struct_field()[1].uint32_field() == 200) + assert(data.array_struct_field()[1].int64_field() == 36000) + assert(data.array_struct_field()[1].uint64_field() == 128000) + assert(data.array_struct_field()[1].float_field() == 2.0) + assert(data.array_struct_field()[1].double_field() == 1202.5) + assert(data.array_struct_field()[1].bool_field() == True) + assert(data.array_struct_field()[1].enum_field() == pytest.dds_type.BLUE) + assert(data.array_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.array_struct_field()[2].char_field() == '\x03') + assert(data.array_struct_field()[2].uint8_field() == 1) + assert(data.array_struct_field()[2].int16_field() == -20) + assert(data.array_struct_field()[2].uint16_field() == 60) + assert(data.array_struct_field()[2].int32_field() == -2000) + assert(data.array_struct_field()[2].uint32_field() == 3000) + assert(data.array_struct_field()[2].int64_field() == -1) + assert(data.array_struct_field()[2].uint64_field() == 3) + assert(data.array_struct_field()[2].float_field() == 3.0) + assert(data.array_struct_field()[2].double_field() == 3.5) + assert(data.array_struct_field()[2].bool_field() == False) + assert(data.array_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) + assert(data.array_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + assert(data.bounded_sequence_char_field().size() == 3) + assert(data.bounded_sequence_char_field()[0] == '\x01') + assert(data.bounded_sequence_char_field()[1] == '\x02') + assert(data.bounded_sequence_char_field()[2] == '\x03') + assert(data.bounded_sequence_uint8_field().size() == 3) + assert(data.bounded_sequence_uint8_field()[0] == 254) + assert(data.bounded_sequence_uint8_field()[1] == 255) + assert(data.bounded_sequence_uint8_field()[2] == 1) + assert(data.bounded_sequence_int16_field().size() == 3) + assert(data.bounded_sequence_int16_field()[0] == -10) + assert(data.bounded_sequence_int16_field()[1] == 10) + assert(data.bounded_sequence_int16_field()[2] == -20) + assert(data.bounded_sequence_uint16_field().size() == 3) + assert(data.bounded_sequence_uint16_field()[0] == 10) + assert(data.bounded_sequence_uint16_field()[1] == 35) + assert(data.bounded_sequence_uint16_field()[2] == 60) + assert(data.bounded_sequence_int32_field().size() == 3) + assert(data.bounded_sequence_int32_field()[0] == -1000) + assert(data.bounded_sequence_int32_field()[1] == 1000) + assert(data.bounded_sequence_int32_field()[2] == -2000) + assert(data.bounded_sequence_uint32_field().size() == 3) + assert(data.bounded_sequence_uint32_field()[0] == 1000) + assert(data.bounded_sequence_uint32_field()[1] == 200) + assert(data.bounded_sequence_uint32_field()[2] == 3000) + assert(data.bounded_sequence_int64_field().size() == 3) + assert(data.bounded_sequence_int64_field()[0] == -36000) + assert(data.bounded_sequence_int64_field()[1] == 36000) + assert(data.bounded_sequence_int64_field()[2] == -1) + assert(data.bounded_sequence_uint64_field().size() == 3) + assert(data.bounded_sequence_uint64_field()[0] == 36000) + assert(data.bounded_sequence_uint64_field()[1] == 128000) + assert(data.bounded_sequence_uint64_field()[2] == 3) + assert(data.bounded_sequence_float_field().size() == 3) + assert(data.bounded_sequence_float_field()[0] == 1.0) + assert(data.bounded_sequence_float_field()[1] == 2.0) + assert(data.bounded_sequence_float_field()[2] == 3.0) + assert(data.bounded_sequence_double_field().size() == 3) + assert(data.bounded_sequence_double_field()[0] == 1200.5) + assert(data.bounded_sequence_double_field()[1] == 1202.5) + assert(data.bounded_sequence_double_field()[2] == 3.5) + assert(data.bounded_sequence_bool_field().size() == 3) + assert(data.bounded_sequence_bool_field()[0] == False) + assert(data.bounded_sequence_bool_field()[1] == True) + assert(data.bounded_sequence_bool_field()[2] == False) + assert(data.bounded_sequence_enum_field().size() == 3) + assert(data.bounded_sequence_enum_field()[0] == pytest.dds_type.RED) + assert(data.bounded_sequence_enum_field()[1] == pytest.dds_type.BLUE) + assert(data.bounded_sequence_enum_field()[2] == pytest.dds_type.MAGENTA) + assert(data.bounded_sequence_enum2_field().size() == 3) + assert(data.bounded_sequence_enum2_field()[0] == pytest.dds_type.METAL) + assert(data.bounded_sequence_enum2_field()[1] == pytest.dds_type.STONE) + assert(data.bounded_sequence_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.bounded_sequence_struct_field().size() == 3) + assert(data.bounded_sequence_struct_field()[0].char_field() == '\x01') + assert(data.bounded_sequence_struct_field()[0].uint8_field() == 254) + assert(data.bounded_sequence_struct_field()[0].int16_field() == -10) + assert(data.bounded_sequence_struct_field()[0].uint16_field() == 10) + assert(data.bounded_sequence_struct_field()[0].int32_field() == -1000) + assert(data.bounded_sequence_struct_field()[0].uint32_field() == 1000) + assert(data.bounded_sequence_struct_field()[0].int64_field() == -36000) + assert(data.bounded_sequence_struct_field()[0].uint64_field() == 36000) + assert(data.bounded_sequence_struct_field()[0].float_field() == 1.0) + assert(data.bounded_sequence_struct_field()[0].double_field() == 1200.5) + assert(data.bounded_sequence_struct_field()[0].bool_field() == False) + assert(data.bounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.RED) + assert(data.bounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.bounded_sequence_struct_field()[1].char_field() == '\x02') + assert(data.bounded_sequence_struct_field()[1].uint8_field() == 255) + assert(data.bounded_sequence_struct_field()[1].int16_field() == 10) + assert(data.bounded_sequence_struct_field()[1].uint16_field() == 35) + assert(data.bounded_sequence_struct_field()[1].int32_field() == 1000) + assert(data.bounded_sequence_struct_field()[1].uint32_field() == 200) + assert(data.bounded_sequence_struct_field()[1].int64_field() == 36000) + assert(data.bounded_sequence_struct_field()[1].uint64_field() == 128000) + assert(data.bounded_sequence_struct_field()[1].float_field() == 2.0) + assert(data.bounded_sequence_struct_field()[1].double_field() == 1202.5) + assert(data.bounded_sequence_struct_field()[1].bool_field() == True) + assert(data.bounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.BLUE) + assert(data.bounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.bounded_sequence_struct_field()[2].char_field() == '\x03') + assert(data.bounded_sequence_struct_field()[2].uint8_field() == 1) + assert(data.bounded_sequence_struct_field()[2].int16_field() == -20) + assert(data.bounded_sequence_struct_field()[2].uint16_field() == 60) + assert(data.bounded_sequence_struct_field()[2].int32_field() == -2000) + assert(data.bounded_sequence_struct_field()[2].uint32_field() == 3000) + assert(data.bounded_sequence_struct_field()[2].int64_field() == -1) + assert(data.bounded_sequence_struct_field()[2].uint64_field() == 3) + assert(data.bounded_sequence_struct_field()[2].float_field() == 3.0) + assert(data.bounded_sequence_struct_field()[2].double_field() == 3.5) + assert(data.bounded_sequence_struct_field()[2].bool_field() == False) + assert(data.bounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) + assert(data.bounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + assert(data.unbounded_sequence_char_field().size() == 3) + assert(data.unbounded_sequence_char_field()[0] == '\x01') + assert(data.unbounded_sequence_char_field()[1] == '\x02') + assert(data.unbounded_sequence_char_field()[2] == '\x03') + assert(data.unbounded_sequence_uint8_field().size() == 3) + assert(data.unbounded_sequence_uint8_field()[0] == 254) + assert(data.unbounded_sequence_uint8_field()[1] == 255) + assert(data.unbounded_sequence_uint8_field()[2] == 1) + assert(data.unbounded_sequence_int16_field().size() == 3) + assert(data.unbounded_sequence_int16_field()[0] == -10) + assert(data.unbounded_sequence_int16_field()[1] == 10) + assert(data.unbounded_sequence_int16_field()[2] == -20) + assert(data.unbounded_sequence_uint16_field().size() == 3) + assert(data.unbounded_sequence_uint16_field()[0] == 10) + assert(data.unbounded_sequence_uint16_field()[1] == 35) + assert(data.unbounded_sequence_uint16_field()[2] == 60) + assert(data.unbounded_sequence_int32_field().size() == 3) + assert(data.unbounded_sequence_int32_field()[0] == -1000) + assert(data.unbounded_sequence_int32_field()[1] == 1000) + assert(data.unbounded_sequence_int32_field()[2] == -2000) + assert(data.unbounded_sequence_uint32_field().size() == 3) + assert(data.unbounded_sequence_uint32_field()[0] == 1000) + assert(data.unbounded_sequence_uint32_field()[1] == 200) + assert(data.unbounded_sequence_uint32_field()[2] == 3000) + assert(data.unbounded_sequence_int64_field().size() == 3) + assert(data.unbounded_sequence_int64_field()[0] == -36000) + assert(data.unbounded_sequence_int64_field()[1] == 36000) + assert(data.unbounded_sequence_int64_field()[2] == -1) + assert(data.unbounded_sequence_uint64_field().size() == 3) + assert(data.unbounded_sequence_uint64_field()[0] == 36000) + assert(data.unbounded_sequence_uint64_field()[1] == 128000) + assert(data.unbounded_sequence_uint64_field()[2] == 3) + assert(data.unbounded_sequence_float_field().size() == 3) + assert(data.unbounded_sequence_float_field()[0] == 1.0) + assert(data.unbounded_sequence_float_field()[1] == 2.0) + assert(data.unbounded_sequence_float_field()[2] == 3.0) + assert(data.unbounded_sequence_double_field().size() == 3) + assert(data.unbounded_sequence_double_field()[0] == 1200.5) + assert(data.unbounded_sequence_double_field()[1] == 1202.5) + assert(data.unbounded_sequence_double_field()[2] == 3.5) + assert(data.unbounded_sequence_bool_field().size() == 3) + assert(data.unbounded_sequence_bool_field()[0] == False) + assert(data.unbounded_sequence_bool_field()[1] == True) + assert(data.unbounded_sequence_bool_field()[2] == False) + assert(data.unbounded_sequence_enum_field().size() == 3) + assert(data.unbounded_sequence_enum_field()[0] == pytest.dds_type.RED) + assert(data.unbounded_sequence_enum_field()[1] == pytest.dds_type.BLUE) + assert(data.unbounded_sequence_enum_field()[2] == pytest.dds_type.MAGENTA) + assert(data.unbounded_sequence_enum2_field().size() == 3) + assert(data.unbounded_sequence_enum2_field()[0] == pytest.dds_type.METAL) + assert(data.unbounded_sequence_enum2_field()[1] == pytest.dds_type.STONE) + assert(data.unbounded_sequence_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.unbounded_sequence_struct_field().size() == 3) + assert(data.unbounded_sequence_struct_field()[0].char_field() == '\x01') + assert(data.unbounded_sequence_struct_field()[0].uint8_field() == 254) + assert(data.unbounded_sequence_struct_field()[0].int16_field() == -10) + assert(data.unbounded_sequence_struct_field()[0].uint16_field() == 10) + assert(data.unbounded_sequence_struct_field()[0].int32_field() == -1000) + assert(data.unbounded_sequence_struct_field()[0].uint32_field() == 1000) + assert(data.unbounded_sequence_struct_field()[0].int64_field() == -36000) + assert(data.unbounded_sequence_struct_field()[0].uint64_field() == 36000) + assert(data.unbounded_sequence_struct_field()[0].float_field() == 1.0) + assert(data.unbounded_sequence_struct_field()[0].double_field() == 1200.5) + assert(data.unbounded_sequence_struct_field()[0].bool_field() == False) + assert(data.unbounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.RED) + assert(data.unbounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.unbounded_sequence_struct_field()[1].char_field() == '\x02') + assert(data.unbounded_sequence_struct_field()[1].uint8_field() == 255) + assert(data.unbounded_sequence_struct_field()[1].int16_field() == 10) + assert(data.unbounded_sequence_struct_field()[1].uint16_field() == 35) + assert(data.unbounded_sequence_struct_field()[1].int32_field() == 1000) + assert(data.unbounded_sequence_struct_field()[1].uint32_field() == 200) + assert(data.unbounded_sequence_struct_field()[1].int64_field() == 36000) + assert(data.unbounded_sequence_struct_field()[1].uint64_field() == 128000) + assert(data.unbounded_sequence_struct_field()[1].float_field() == 2.0) + assert(data.unbounded_sequence_struct_field()[1].double_field() == 1202.5) + assert(data.unbounded_sequence_struct_field()[1].bool_field() == True) + assert(data.unbounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.BLUE) + assert(data.unbounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.unbounded_sequence_struct_field()[2].char_field() == '\x03') + assert(data.unbounded_sequence_struct_field()[2].uint8_field() == 1) + assert(data.unbounded_sequence_struct_field()[2].int16_field() == -20) + assert(data.unbounded_sequence_struct_field()[2].uint16_field() == 60) + assert(data.unbounded_sequence_struct_field()[2].int32_field() == -2000) + assert(data.unbounded_sequence_struct_field()[2].uint32_field() == 3000) + assert(data.unbounded_sequence_struct_field()[2].int64_field() == -1) + assert(data.unbounded_sequence_struct_field()[2].uint64_field() == 3) + assert(data.unbounded_sequence_struct_field()[2].float_field() == 3.0) + assert(data.unbounded_sequence_struct_field()[2].double_field() == 3.5) + assert(data.unbounded_sequence_struct_field()[2].bool_field() == False) + assert(data.unbounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) + assert(data.unbounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + + def test_create_querycondition(datareader): """ This test checks: @@ -525,7 +1012,7 @@ def test_read(transient_datareader_qos, datareader, assert(0 == len(info_seq)) sample = pytest.dds_type.CompleteTestType() - sample.int16_field(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -539,7 +1026,8 @@ def test_read(transient_datareader_qos, datareader, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.int16_field() == data_seq[0].int16_field()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -563,7 +1051,7 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - sample.id(255) + fill_keyed_complete_test_type(sample) ih = datawriter.register_instance(sample) assert(datawriter.write(sample, ih)) @@ -579,7 +1067,8 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.id() == data_seq[0].id()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -603,7 +1092,7 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - sample.id(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -618,7 +1107,8 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.id() == data_seq[0].id()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -636,7 +1126,7 @@ def test_read_next_sample(transient_datareader_qos, datareader, data, info)) sample = pytest.dds_type.CompleteTestType() - sample.int16_field(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -646,7 +1136,8 @@ def test_read_next_sample(transient_datareader_qos, datareader, assert(info.valid_data) assert(0 < info.source_timestamp.to_ns()) assert(0 < info.reception_timestamp.to_ns()) - assert(sample.int16_field() == data.int16_field()) + assert(sample == data) + check_keyed_complete_test_type(data) def test_take(transient_datareader_qos, datareader, @@ -667,7 +1158,7 @@ def test_take(transient_datareader_qos, datareader, assert(0 == len(info_seq)) sample = pytest.dds_type.CompleteTestType() - sample.int16_field(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -681,7 +1172,8 @@ def test_take(transient_datareader_qos, datareader, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.int16_field() == data_seq[0].int16_field()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -705,7 +1197,7 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - sample.id(255) + fill_keyed_complete_test_type(sample) ih = datawriter.register_instance(sample) assert(datawriter.write(sample, ih)) @@ -721,7 +1213,8 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.id() == data_seq[0].id()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -745,7 +1238,7 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - sample.id(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -760,7 +1253,8 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(info_seq[0].valid_data is True) assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) - assert(sample.id() == data_seq[0].id()) + assert(sample == data_seq[0]) + check_keyed_complete_test_type(data_seq[0]) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -778,7 +1272,7 @@ def test_take_next_sample(transient_datareader_qos, datareader, data, info)) sample = pytest.dds_type.CompleteTestType() - sample.int16_field(255) + fill_keyed_complete_test_type(sample) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -788,7 +1282,8 @@ def test_take_next_sample(transient_datareader_qos, datareader, assert(info.valid_data) assert(0 < info.source_timestamp.to_ns()) assert(0 < info.reception_timestamp.to_ns()) - assert(sample.int16_field() == data.int16_field()) + assert(sample == data) + check_keyed_complete_test_type(data) def test_get_type(test_type, datareader): diff --git a/fastdds_python/test/types/CMakeLists.txt b/fastdds_python/test/types/CMakeLists.txt index 59fc7add..dbd644ce 100644 --- a/fastdds_python/test/types/CMakeLists.txt +++ b/fastdds_python/test/types/CMakeLists.txt @@ -31,8 +31,6 @@ set(${PROJECT_NAME}_FILES test_included_modulesPubSubTypes.cxx ) -include_directories() - set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types @@ -40,7 +38,15 @@ add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_FILES}) if(WIN32) target_compile_definitions(${PROJECT_NAME} PRIVATE EPROSIMA_USER_DLL_EXPORT) endif(WIN32) -target_link_libraries(${PROJECT_NAME} PUBLIC fastcdr fastrtps) +set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11) +target_include_directories(${PROJECT_NAME} PUBLIC + ${PROJECT_SOURCE_DIR} + ) +target_link_libraries(${PROJECT_NAME} + PUBLIC + fastcdr + fastrtps + ) ############################################################################### # Python bindings for type @@ -70,10 +76,6 @@ SET_SOURCE_FILES_PROPERTIES( USE_TARGET_INCLUDE_DIRECTORIES TRUE ) -include_directories( - ${PROJECT_SOURCE_DIR} - ) - set_property(SOURCE ${PROJECT_NAME}.i PROPERTY OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/eprosima/test2") SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} @@ -81,6 +83,7 @@ SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} LANGUAGE python SOURCES ${${PROJECT_NAME}_MODULE_FILES}) +set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY CXX_STANDARD 11) if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 8) set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY SWIG_COMPILE_DEFINITIONS SWIGWORDSIZE64) endif() @@ -138,8 +141,6 @@ set(${PROJECT_NAME}_FILES test_modulesPubSubTypes.cxx ) -include_directories() - set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types @@ -147,7 +148,15 @@ add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_FILES}) if(WIN32) target_compile_definitions(${PROJECT_NAME} PRIVATE EPROSIMA_USER_DLL_EXPORT) endif(WIN32) -target_link_libraries(${PROJECT_NAME} PUBLIC fastcdr fastrtps) +set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11) +target_include_directories(${PROJECT_NAME} PUBLIC + ${PROJECT_SOURCE_DIR} + ) +target_link_libraries(${PROJECT_NAME} + PUBLIC + fastcdr + fastrtps + ) ############################################################################### # Python bindings for type @@ -177,10 +186,6 @@ SET_SOURCE_FILES_PROPERTIES( USE_TARGET_INCLUDE_DIRECTORIES TRUE ) -include_directories( - ${PROJECT_SOURCE_DIR} - ) - set_property(SOURCE ${PROJECT_NAME}.i PROPERTY OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/eprosima/test") SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} @@ -188,6 +193,7 @@ SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} LANGUAGE python SOURCES ${${PROJECT_NAME}_MODULE_FILES}) +set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY CXX_STANDARD 11) if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 8) set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY SWIG_COMPILE_DEFINITIONS SWIGWORDSIZE64) endif() @@ -245,8 +251,6 @@ set(${PROJECT_NAME}_FILES test_completePubSubTypes.cxx ) -include_directories() - set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types @@ -254,7 +258,16 @@ add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_FILES}) if(WIN32) target_compile_definitions(${PROJECT_NAME} PRIVATE EPROSIMA_USER_DLL_EXPORT) endif(WIN32) -target_link_libraries(${PROJECT_NAME} PUBLIC fastcdr fastrtps test_included_modules) +set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11) +target_include_directories(${PROJECT_NAME} PUBLIC + ${PROJECT_SOURCE_DIR} + ) +target_link_libraries(${PROJECT_NAME} + PUBLIC + fastcdr + fastrtps + test_included_modules + ) ############################################################################### # Python bindings for type @@ -284,10 +297,6 @@ SET_SOURCE_FILES_PROPERTIES( USE_TARGET_INCLUDE_DIRECTORIES TRUE ) -include_directories( - ${PROJECT_SOURCE_DIR} - ) - set_property(SOURCE ${PROJECT_NAME}.i PROPERTY OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/") SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} @@ -295,6 +304,7 @@ SWIG_ADD_LIBRARY(${${PROJECT_NAME}_MODULE} LANGUAGE python SOURCES ${${PROJECT_NAME}_MODULE_FILES}) +set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY CXX_STANDARD 11) if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 8) set_property(TARGET ${${PROJECT_NAME}_MODULE} PROPERTY SWIG_COMPILE_DEFINITIONS SWIGWORDSIZE64) endif() @@ -303,7 +313,6 @@ target_link_libraries(${${PROJECT_NAME}_MODULE} Python3::Module fastrtps ${PROJECT_NAME} - test_included_modules ) set_target_properties(${${PROJECT_NAME}_MODULE} diff --git a/fastdds_python/test/types/test_complete.cxx b/fastdds_python/test/types/test_complete.cxx index 6b0c374e..5085c12e 100644 --- a/fastdds_python/test/types/test_complete.cxx +++ b/fastdds_python/test/types/test_complete.cxx @@ -641,6 +641,21 @@ CompleteTestType::CompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -703,6 +718,21 @@ CompleteTestType::CompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); m_array_char_field = std::move(x.m_array_char_field); m_array_uint8_field = std::move(x.m_array_uint8_field); m_array_int16_field = std::move(x.m_array_int16_field); @@ -766,6 +796,21 @@ CompleteTestType& CompleteTestType::operator =( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -831,6 +876,21 @@ CompleteTestType& CompleteTestType::operator =( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); m_array_char_field = std::move(x.m_array_char_field); m_array_uint8_field = std::move(x.m_array_uint8_field); m_array_int16_field = std::move(x.m_array_int16_field); @@ -895,6 +955,21 @@ bool CompleteTestType::operator ==( m_enum_field == x.m_enum_field && m_enum2_field == x.m_enum2_field && m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && m_array_char_field == x.m_array_char_field && m_array_uint8_field == x.m_array_uint8_field && m_array_int16_field == x.m_array_int16_field && @@ -1401,1662 +1476,2404 @@ StructType& CompleteTestType::struct_field() /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field */ -void CompleteTestType::array_char_field( - const std::array& _array_char_field) +void CompleteTestType::char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field) { - m_array_char_field = _array_char_field; + m_char_opt_field = _char_opt_field; } /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field */ -void CompleteTestType::array_char_field( - std::array&& _array_char_field) +void CompleteTestType::char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field) { - m_array_char_field = std::move(_array_char_field); + m_char_opt_field = std::move(_char_opt_field); } /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field */ -const std::array& CompleteTestType::array_char_field() const +const eprosima::fastcdr::optional& CompleteTestType::char_opt_field() const { - return m_array_char_field; + return m_char_opt_field; } /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field */ -std::array& CompleteTestType::array_char_field() +eprosima::fastcdr::optional& CompleteTestType::char_opt_field() { - return m_array_char_field; + return m_char_opt_field; } /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ -void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) +void CompleteTestType::uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field) { - m_array_uint8_field = _array_uint8_field; + m_uint8_opt_field = _uint8_opt_field; } /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ -void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) +void CompleteTestType::uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field) { - m_array_uint8_field = std::move(_array_uint8_field); + m_uint8_opt_field = std::move(_uint8_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field */ -const std::array& CompleteTestType::array_uint8_field() const +const eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() const { - return m_array_uint8_field; + return m_uint8_opt_field; } /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field */ -std::array& CompleteTestType::array_uint8_field() +eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() { - return m_array_uint8_field; + return m_uint8_opt_field; } /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field */ -void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) +void CompleteTestType::int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field) { - m_array_int16_field = _array_int16_field; + m_int16_opt_field = _int16_opt_field; } /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field */ -void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) +void CompleteTestType::int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field) { - m_array_int16_field = std::move(_array_int16_field); + m_int16_opt_field = std::move(_int16_opt_field); } /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field */ -const std::array& CompleteTestType::array_int16_field() const +const eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() const { - return m_array_int16_field; + return m_int16_opt_field; } /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field */ -std::array& CompleteTestType::array_int16_field() +eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() { - return m_array_int16_field; + return m_int16_opt_field; } /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ -void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) +void CompleteTestType::uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field) { - m_array_uint16_field = _array_uint16_field; + m_uint16_opt_field = _uint16_opt_field; } /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ -void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) +void CompleteTestType::uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field) { - m_array_uint16_field = std::move(_array_uint16_field); + m_uint16_opt_field = std::move(_uint16_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field */ -const std::array& CompleteTestType::array_uint16_field() const +const eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() const { - return m_array_uint16_field; + return m_uint16_opt_field; } /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field */ -std::array& CompleteTestType::array_uint16_field() +eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() { - return m_array_uint16_field; + return m_uint16_opt_field; } /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field */ -void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) +void CompleteTestType::int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field) { - m_array_int32_field = _array_int32_field; + m_int32_opt_field = _int32_opt_field; } /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field */ -void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) +void CompleteTestType::int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field) { - m_array_int32_field = std::move(_array_int32_field); + m_int32_opt_field = std::move(_int32_opt_field); } /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field */ -const std::array& CompleteTestType::array_int32_field() const +const eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() const { - return m_array_int32_field; + return m_int32_opt_field; } /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field */ -std::array& CompleteTestType::array_int32_field() +eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() { - return m_array_int32_field; + return m_int32_opt_field; } /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ -void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) +void CompleteTestType::uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field) { - m_array_uint32_field = _array_uint32_field; + m_uint32_opt_field = _uint32_opt_field; } /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ -void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) +void CompleteTestType::uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field) { - m_array_uint32_field = std::move(_array_uint32_field); + m_uint32_opt_field = std::move(_uint32_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field */ -const std::array& CompleteTestType::array_uint32_field() const +const eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() const { - return m_array_uint32_field; + return m_uint32_opt_field; } /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field */ -std::array& CompleteTestType::array_uint32_field() +eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() { - return m_array_uint32_field; + return m_uint32_opt_field; } /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field */ -void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) +void CompleteTestType::int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field) { - m_array_int64_field = _array_int64_field; + m_int64_opt_field = _int64_opt_field; } /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field */ -void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) +void CompleteTestType::int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field) { - m_array_int64_field = std::move(_array_int64_field); + m_int64_opt_field = std::move(_int64_opt_field); } /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field */ -const std::array& CompleteTestType::array_int64_field() const +const eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() const { - return m_array_int64_field; + return m_int64_opt_field; } /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field */ -std::array& CompleteTestType::array_int64_field() +eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() { - return m_array_int64_field; + return m_int64_opt_field; } /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ -void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) +void CompleteTestType::uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field) { - m_array_uint64_field = _array_uint64_field; + m_uint64_opt_field = _uint64_opt_field; } /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ -void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) +void CompleteTestType::uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field) { - m_array_uint64_field = std::move(_array_uint64_field); + m_uint64_opt_field = std::move(_uint64_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field */ -const std::array& CompleteTestType::array_uint64_field() const +const eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() const { - return m_array_uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field */ -std::array& CompleteTestType::array_uint64_field() +eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() { - return m_array_uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field */ -void CompleteTestType::array_float_field( - const std::array& _array_float_field) +void CompleteTestType::float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field) { - m_array_float_field = _array_float_field; + m_float_opt_field = _float_opt_field; } /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field */ -void CompleteTestType::array_float_field( - std::array&& _array_float_field) +void CompleteTestType::float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field) { - m_array_float_field = std::move(_array_float_field); + m_float_opt_field = std::move(_float_opt_field); } /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field */ -const std::array& CompleteTestType::array_float_field() const +const eprosima::fastcdr::optional& CompleteTestType::float_opt_field() const { - return m_array_float_field; + return m_float_opt_field; } /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field */ -std::array& CompleteTestType::array_float_field() +eprosima::fastcdr::optional& CompleteTestType::float_opt_field() { - return m_array_float_field; + return m_float_opt_field; } /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field */ -void CompleteTestType::array_double_field( - const std::array& _array_double_field) +void CompleteTestType::double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field) { - m_array_double_field = _array_double_field; + m_double_opt_field = _double_opt_field; } /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field */ -void CompleteTestType::array_double_field( - std::array&& _array_double_field) +void CompleteTestType::double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field) { - m_array_double_field = std::move(_array_double_field); + m_double_opt_field = std::move(_double_opt_field); } /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field */ -const std::array& CompleteTestType::array_double_field() const +const eprosima::fastcdr::optional& CompleteTestType::double_opt_field() const { - return m_array_double_field; + return m_double_opt_field; } /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field */ -std::array& CompleteTestType::array_double_field() +eprosima::fastcdr::optional& CompleteTestType::double_opt_field() { - return m_array_double_field; + return m_double_opt_field; } /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field */ -void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) +void CompleteTestType::bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field) { - m_array_bool_field = _array_bool_field; + m_bool_opt_field = _bool_opt_field; } /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field */ -void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) +void CompleteTestType::bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field) { - m_array_bool_field = std::move(_array_bool_field); + m_bool_opt_field = std::move(_bool_opt_field); } /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field */ -const std::array& CompleteTestType::array_bool_field() const +const eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() const { - return m_array_bool_field; + return m_bool_opt_field; } /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field */ -std::array& CompleteTestType::array_bool_field() +eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() { - return m_array_bool_field; + return m_bool_opt_field; } /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field */ -void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) +void CompleteTestType::string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field) { - m_array_enum_field = _array_enum_field; + m_string_opt_field = _string_opt_field; } /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field */ -void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) +void CompleteTestType::string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field) { - m_array_enum_field = std::move(_array_enum_field); + m_string_opt_field = std::move(_string_opt_field); } /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field */ -const std::array& CompleteTestType::array_enum_field() const +const eprosima::fastcdr::optional& CompleteTestType::string_opt_field() const { - return m_array_enum_field; + return m_string_opt_field; } /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field */ -std::array& CompleteTestType::array_enum_field() +eprosima::fastcdr::optional& CompleteTestType::string_opt_field() { - return m_array_enum_field; + return m_string_opt_field; } /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field */ -void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) +void CompleteTestType::enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field) { - m_array_enum2_field = _array_enum2_field; + m_enum_opt_field = _enum_opt_field; } /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field */ -void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) +void CompleteTestType::enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field) { - m_array_enum2_field = std::move(_array_enum2_field); + m_enum_opt_field = std::move(_enum_opt_field); } /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field */ -const std::array& CompleteTestType::array_enum2_field() const +const eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() const { - return m_array_enum2_field; + return m_enum_opt_field; } /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field */ -std::array& CompleteTestType::array_enum2_field() +eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() { - return m_array_enum2_field; + return m_enum_opt_field; } /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ -void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) +void CompleteTestType::enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field) { - m_array_struct_field = _array_struct_field; + m_enum2_opt_field = _enum2_opt_field; } /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ -void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) +void CompleteTestType::enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field) { - m_array_struct_field = std::move(_array_struct_field); + m_enum2_opt_field = std::move(_enum2_opt_field); } /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field */ -const std::array& CompleteTestType::array_struct_field() const +const eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() const { - return m_array_struct_field; + return m_enum2_opt_field; } /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field */ -std::array& CompleteTestType::array_struct_field() +eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() { - return m_array_struct_field; + return m_enum2_opt_field; } /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field */ -void CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) +void CompleteTestType::struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field) { - m_bounded_sequence_char_field = _bounded_sequence_char_field; + m_struct_opt_field = _struct_opt_field; } /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field */ -void CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) +void CompleteTestType::struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field) { - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + m_struct_opt_field = std::move(_struct_opt_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field */ -const std::vector& CompleteTestType::bounded_sequence_char_field() const +const eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() const { - return m_bounded_sequence_char_field; + return m_struct_opt_field; } /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field */ -std::vector& CompleteTestType::bounded_sequence_char_field() +eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() { - return m_bounded_sequence_char_field; + return m_struct_opt_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field + * @brief This function copies the value in member array_char_field + * @param _array_char_field New value to be copied in member array_char_field */ -void CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) +void CompleteTestType::array_char_field( + const std::array& _array_char_field) { - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + m_array_char_field = _array_char_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field + * @brief This function moves the value in member array_char_field + * @param _array_char_field New value to be moved in member array_char_field */ -void CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) +void CompleteTestType::array_char_field( + std::array&& _array_char_field) { - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + m_array_char_field = std::move(_array_char_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field + * @brief This function returns a constant reference to member array_char_field + * @return Constant reference to member array_char_field */ -const std::vector& CompleteTestType::bounded_sequence_uint8_field() const +const std::array& CompleteTestType::array_char_field() const { - return m_bounded_sequence_uint8_field; + return m_array_char_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field + * @brief This function returns a reference to member array_char_field + * @return Reference to member array_char_field */ -std::vector& CompleteTestType::bounded_sequence_uint8_field() +std::array& CompleteTestType::array_char_field() { - return m_bounded_sequence_uint8_field; + return m_array_char_field; } /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field + * @brief This function copies the value in member array_uint8_field + * @param _array_uint8_field New value to be copied in member array_uint8_field */ -void CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) +void CompleteTestType::array_uint8_field( + const std::array& _array_uint8_field) { - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + m_array_uint8_field = _array_uint8_field; } /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field + * @brief This function moves the value in member array_uint8_field + * @param _array_uint8_field New value to be moved in member array_uint8_field */ -void CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) +void CompleteTestType::array_uint8_field( + std::array&& _array_uint8_field) { - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + m_array_uint8_field = std::move(_array_uint8_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field + * @brief This function returns a constant reference to member array_uint8_field + * @return Constant reference to member array_uint8_field */ -const std::vector& CompleteTestType::bounded_sequence_int16_field() const +const std::array& CompleteTestType::array_uint8_field() const { - return m_bounded_sequence_int16_field; + return m_array_uint8_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field + * @brief This function returns a reference to member array_uint8_field + * @return Reference to member array_uint8_field */ -std::vector& CompleteTestType::bounded_sequence_int16_field() +std::array& CompleteTestType::array_uint8_field() { - return m_bounded_sequence_int16_field; + return m_array_uint8_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field + * @brief This function copies the value in member array_int16_field + * @param _array_int16_field New value to be copied in member array_int16_field */ -void CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) +void CompleteTestType::array_int16_field( + const std::array& _array_int16_field) { - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + m_array_int16_field = _array_int16_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field + * @brief This function moves the value in member array_int16_field + * @param _array_int16_field New value to be moved in member array_int16_field */ -void CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) +void CompleteTestType::array_int16_field( + std::array&& _array_int16_field) { - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + m_array_int16_field = std::move(_array_int16_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field + * @brief This function returns a constant reference to member array_int16_field + * @return Constant reference to member array_int16_field */ -const std::vector& CompleteTestType::bounded_sequence_uint16_field() const +const std::array& CompleteTestType::array_int16_field() const { - return m_bounded_sequence_uint16_field; + return m_array_int16_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field + * @brief This function returns a reference to member array_int16_field + * @return Reference to member array_int16_field */ -std::vector& CompleteTestType::bounded_sequence_uint16_field() +std::array& CompleteTestType::array_int16_field() { - return m_bounded_sequence_uint16_field; + return m_array_int16_field; } /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field + * @brief This function copies the value in member array_uint16_field + * @param _array_uint16_field New value to be copied in member array_uint16_field */ -void CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) +void CompleteTestType::array_uint16_field( + const std::array& _array_uint16_field) { - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + m_array_uint16_field = _array_uint16_field; } /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field + * @brief This function moves the value in member array_uint16_field + * @param _array_uint16_field New value to be moved in member array_uint16_field */ -void CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) +void CompleteTestType::array_uint16_field( + std::array&& _array_uint16_field) { - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + m_array_uint16_field = std::move(_array_uint16_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field + * @brief This function returns a constant reference to member array_uint16_field + * @return Constant reference to member array_uint16_field */ -const std::vector& CompleteTestType::bounded_sequence_int32_field() const +const std::array& CompleteTestType::array_uint16_field() const { - return m_bounded_sequence_int32_field; + return m_array_uint16_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field + * @brief This function returns a reference to member array_uint16_field + * @return Reference to member array_uint16_field */ -std::vector& CompleteTestType::bounded_sequence_int32_field() +std::array& CompleteTestType::array_uint16_field() { - return m_bounded_sequence_int32_field; + return m_array_uint16_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field + * @brief This function copies the value in member array_int32_field + * @param _array_int32_field New value to be copied in member array_int32_field */ -void CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) +void CompleteTestType::array_int32_field( + const std::array& _array_int32_field) { - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + m_array_int32_field = _array_int32_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field + * @brief This function moves the value in member array_int32_field + * @param _array_int32_field New value to be moved in member array_int32_field */ -void CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) +void CompleteTestType::array_int32_field( + std::array&& _array_int32_field) { - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + m_array_int32_field = std::move(_array_int32_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field + * @brief This function returns a constant reference to member array_int32_field + * @return Constant reference to member array_int32_field */ -const std::vector& CompleteTestType::bounded_sequence_uint32_field() const +const std::array& CompleteTestType::array_int32_field() const { - return m_bounded_sequence_uint32_field; + return m_array_int32_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field + * @brief This function returns a reference to member array_int32_field + * @return Reference to member array_int32_field */ -std::vector& CompleteTestType::bounded_sequence_uint32_field() +std::array& CompleteTestType::array_int32_field() { - return m_bounded_sequence_uint32_field; + return m_array_int32_field; } /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field + * @brief This function copies the value in member array_uint32_field + * @param _array_uint32_field New value to be copied in member array_uint32_field */ -void CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) +void CompleteTestType::array_uint32_field( + const std::array& _array_uint32_field) { - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + m_array_uint32_field = _array_uint32_field; } /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field + * @brief This function moves the value in member array_uint32_field + * @param _array_uint32_field New value to be moved in member array_uint32_field */ -void CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) +void CompleteTestType::array_uint32_field( + std::array&& _array_uint32_field) { - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + m_array_uint32_field = std::move(_array_uint32_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field + * @brief This function returns a constant reference to member array_uint32_field + * @return Constant reference to member array_uint32_field */ -const std::vector& CompleteTestType::bounded_sequence_int64_field() const +const std::array& CompleteTestType::array_uint32_field() const { - return m_bounded_sequence_int64_field; + return m_array_uint32_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field + * @brief This function returns a reference to member array_uint32_field + * @return Reference to member array_uint32_field */ -std::vector& CompleteTestType::bounded_sequence_int64_field() +std::array& CompleteTestType::array_uint32_field() { - return m_bounded_sequence_int64_field; + return m_array_uint32_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field + * @brief This function copies the value in member array_int64_field + * @param _array_int64_field New value to be copied in member array_int64_field */ -void CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) +void CompleteTestType::array_int64_field( + const std::array& _array_int64_field) { - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + m_array_int64_field = _array_int64_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field + * @brief This function moves the value in member array_int64_field + * @param _array_int64_field New value to be moved in member array_int64_field */ -void CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) +void CompleteTestType::array_int64_field( + std::array&& _array_int64_field) { - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + m_array_int64_field = std::move(_array_int64_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field + * @brief This function returns a constant reference to member array_int64_field + * @return Constant reference to member array_int64_field */ -const std::vector& CompleteTestType::bounded_sequence_uint64_field() const +const std::array& CompleteTestType::array_int64_field() const { - return m_bounded_sequence_uint64_field; + return m_array_int64_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field + * @brief This function returns a reference to member array_int64_field + * @return Reference to member array_int64_field */ -std::vector& CompleteTestType::bounded_sequence_uint64_field() +std::array& CompleteTestType::array_int64_field() { - return m_bounded_sequence_uint64_field; + return m_array_int64_field; } /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field + * @brief This function copies the value in member array_uint64_field + * @param _array_uint64_field New value to be copied in member array_uint64_field */ -void CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) +void CompleteTestType::array_uint64_field( + const std::array& _array_uint64_field) { - m_bounded_sequence_float_field = _bounded_sequence_float_field; + m_array_uint64_field = _array_uint64_field; } /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field + * @brief This function moves the value in member array_uint64_field + * @param _array_uint64_field New value to be moved in member array_uint64_field */ -void CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) +void CompleteTestType::array_uint64_field( + std::array&& _array_uint64_field) { - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + m_array_uint64_field = std::move(_array_uint64_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field + * @brief This function returns a constant reference to member array_uint64_field + * @return Constant reference to member array_uint64_field */ -const std::vector& CompleteTestType::bounded_sequence_float_field() const +const std::array& CompleteTestType::array_uint64_field() const { - return m_bounded_sequence_float_field; + return m_array_uint64_field; } /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field + * @brief This function returns a reference to member array_uint64_field + * @return Reference to member array_uint64_field */ -std::vector& CompleteTestType::bounded_sequence_float_field() +std::array& CompleteTestType::array_uint64_field() { - return m_bounded_sequence_float_field; + return m_array_uint64_field; } /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field + * @brief This function copies the value in member array_float_field + * @param _array_float_field New value to be copied in member array_float_field */ -void CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) +void CompleteTestType::array_float_field( + const std::array& _array_float_field) { - m_bounded_sequence_double_field = _bounded_sequence_double_field; + m_array_float_field = _array_float_field; } /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field + * @brief This function moves the value in member array_float_field + * @param _array_float_field New value to be moved in member array_float_field */ -void CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) +void CompleteTestType::array_float_field( + std::array&& _array_float_field) { - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + m_array_float_field = std::move(_array_float_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field + * @brief This function returns a constant reference to member array_float_field + * @return Constant reference to member array_float_field */ -const std::vector& CompleteTestType::bounded_sequence_double_field() const +const std::array& CompleteTestType::array_float_field() const { - return m_bounded_sequence_double_field; + return m_array_float_field; } /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field + * @brief This function returns a reference to member array_float_field + * @return Reference to member array_float_field */ -std::vector& CompleteTestType::bounded_sequence_double_field() +std::array& CompleteTestType::array_float_field() { - return m_bounded_sequence_double_field; + return m_array_float_field; } /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field + * @brief This function copies the value in member array_double_field + * @param _array_double_field New value to be copied in member array_double_field */ -void CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) +void CompleteTestType::array_double_field( + const std::array& _array_double_field) { - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + m_array_double_field = _array_double_field; } /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field + * @brief This function moves the value in member array_double_field + * @param _array_double_field New value to be moved in member array_double_field */ -void CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) +void CompleteTestType::array_double_field( + std::array&& _array_double_field) { - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + m_array_double_field = std::move(_array_double_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field + * @brief This function returns a constant reference to member array_double_field + * @return Constant reference to member array_double_field */ -const std::vector& CompleteTestType::bounded_sequence_bool_field() const +const std::array& CompleteTestType::array_double_field() const { - return m_bounded_sequence_bool_field; + return m_array_double_field; } /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field + * @brief This function returns a reference to member array_double_field + * @return Reference to member array_double_field */ -std::vector& CompleteTestType::bounded_sequence_bool_field() +std::array& CompleteTestType::array_double_field() { - return m_bounded_sequence_bool_field; + return m_array_double_field; } /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field + * @brief This function copies the value in member array_bool_field + * @param _array_bool_field New value to be copied in member array_bool_field */ -void CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) +void CompleteTestType::array_bool_field( + const std::array& _array_bool_field) { - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + m_array_bool_field = _array_bool_field; } /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field + * @brief This function moves the value in member array_bool_field + * @param _array_bool_field New value to be moved in member array_bool_field */ -void CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) +void CompleteTestType::array_bool_field( + std::array&& _array_bool_field) { - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + m_array_bool_field = std::move(_array_bool_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field + * @brief This function returns a constant reference to member array_bool_field + * @return Constant reference to member array_bool_field */ -const std::vector& CompleteTestType::bounded_sequence_enum_field() const +const std::array& CompleteTestType::array_bool_field() const { - return m_bounded_sequence_enum_field; + return m_array_bool_field; } /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field + * @brief This function returns a reference to member array_bool_field + * @return Reference to member array_bool_field */ -std::vector& CompleteTestType::bounded_sequence_enum_field() +std::array& CompleteTestType::array_bool_field() { - return m_bounded_sequence_enum_field; + return m_array_bool_field; } /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field + * @brief This function copies the value in member array_enum_field + * @param _array_enum_field New value to be copied in member array_enum_field */ -void CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) +void CompleteTestType::array_enum_field( + const std::array& _array_enum_field) { - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + m_array_enum_field = _array_enum_field; } /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field + * @brief This function moves the value in member array_enum_field + * @param _array_enum_field New value to be moved in member array_enum_field */ -void CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) +void CompleteTestType::array_enum_field( + std::array&& _array_enum_field) { - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + m_array_enum_field = std::move(_array_enum_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field + * @brief This function returns a constant reference to member array_enum_field + * @return Constant reference to member array_enum_field */ -const std::vector& CompleteTestType::bounded_sequence_enum2_field() const +const std::array& CompleteTestType::array_enum_field() const { - return m_bounded_sequence_enum2_field; + return m_array_enum_field; } /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field + * @brief This function returns a reference to member array_enum_field + * @return Reference to member array_enum_field */ -std::vector& CompleteTestType::bounded_sequence_enum2_field() +std::array& CompleteTestType::array_enum_field() { - return m_bounded_sequence_enum2_field; + return m_array_enum_field; } /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field + * @brief This function copies the value in member array_enum2_field + * @param _array_enum2_field New value to be copied in member array_enum2_field */ -void CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) +void CompleteTestType::array_enum2_field( + const std::array& _array_enum2_field) { - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + m_array_enum2_field = _array_enum2_field; } /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field + * @brief This function moves the value in member array_enum2_field + * @param _array_enum2_field New value to be moved in member array_enum2_field */ -void CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) +void CompleteTestType::array_enum2_field( + std::array&& _array_enum2_field) { - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + m_array_enum2_field = std::move(_array_enum2_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field + * @brief This function returns a constant reference to member array_enum2_field + * @return Constant reference to member array_enum2_field */ -const std::vector& CompleteTestType::bounded_sequence_struct_field() const +const std::array& CompleteTestType::array_enum2_field() const { - return m_bounded_sequence_struct_field; + return m_array_enum2_field; } /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field + * @brief This function returns a reference to member array_enum2_field + * @return Reference to member array_enum2_field */ -std::vector& CompleteTestType::bounded_sequence_struct_field() +std::array& CompleteTestType::array_enum2_field() { - return m_bounded_sequence_struct_field; + return m_array_enum2_field; } /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field + * @brief This function copies the value in member array_struct_field + * @param _array_struct_field New value to be copied in member array_struct_field */ -void CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) +void CompleteTestType::array_struct_field( + const std::array& _array_struct_field) { - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + m_array_struct_field = _array_struct_field; } /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field + * @brief This function moves the value in member array_struct_field + * @param _array_struct_field New value to be moved in member array_struct_field */ -void CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) +void CompleteTestType::array_struct_field( + std::array&& _array_struct_field) { - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + m_array_struct_field = std::move(_array_struct_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field + * @brief This function returns a constant reference to member array_struct_field + * @return Constant reference to member array_struct_field */ -const std::vector& CompleteTestType::unbounded_sequence_char_field() const +const std::array& CompleteTestType::array_struct_field() const { - return m_unbounded_sequence_char_field; + return m_array_struct_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field + * @brief This function returns a reference to member array_struct_field + * @return Reference to member array_struct_field */ -std::vector& CompleteTestType::unbounded_sequence_char_field() +std::array& CompleteTestType::array_struct_field() { - return m_unbounded_sequence_char_field; + return m_array_struct_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field + * @brief This function copies the value in member bounded_sequence_char_field + * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ -void CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) +void CompleteTestType::bounded_sequence_char_field( + const std::vector& _bounded_sequence_char_field) { - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + m_bounded_sequence_char_field = _bounded_sequence_char_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field + * @brief This function moves the value in member bounded_sequence_char_field + * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ -void CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) +void CompleteTestType::bounded_sequence_char_field( + std::vector&& _bounded_sequence_char_field) { - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field + * @brief This function returns a constant reference to member bounded_sequence_char_field + * @return Constant reference to member bounded_sequence_char_field */ -const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const +const std::vector& CompleteTestType::bounded_sequence_char_field() const { - return m_unbounded_sequence_uint8_field; + return m_bounded_sequence_char_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field + * @brief This function returns a reference to member bounded_sequence_char_field + * @return Reference to member bounded_sequence_char_field */ -std::vector& CompleteTestType::unbounded_sequence_uint8_field() +std::vector& CompleteTestType::bounded_sequence_char_field() { - return m_unbounded_sequence_uint8_field; + return m_bounded_sequence_char_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field + * @brief This function copies the value in member bounded_sequence_uint8_field + * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ -void CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) +void CompleteTestType::bounded_sequence_uint8_field( + const std::vector& _bounded_sequence_uint8_field) { - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field + * @brief This function moves the value in member bounded_sequence_uint8_field + * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ -void CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) +void CompleteTestType::bounded_sequence_uint8_field( + std::vector&& _bounded_sequence_uint8_field) { - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field + * @brief This function returns a constant reference to member bounded_sequence_uint8_field + * @return Constant reference to member bounded_sequence_uint8_field */ -const std::vector& CompleteTestType::unbounded_sequence_int16_field() const +const std::vector& CompleteTestType::bounded_sequence_uint8_field() const { - return m_unbounded_sequence_int16_field; + return m_bounded_sequence_uint8_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field + * @brief This function returns a reference to member bounded_sequence_uint8_field + * @return Reference to member bounded_sequence_uint8_field */ -std::vector& CompleteTestType::unbounded_sequence_int16_field() +std::vector& CompleteTestType::bounded_sequence_uint8_field() { - return m_unbounded_sequence_int16_field; + return m_bounded_sequence_uint8_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field + * @brief This function copies the value in member bounded_sequence_int16_field + * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ -void CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) +void CompleteTestType::bounded_sequence_int16_field( + const std::vector& _bounded_sequence_int16_field) { - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field + * @brief This function moves the value in member bounded_sequence_int16_field + * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ -void CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) +void CompleteTestType::bounded_sequence_int16_field( + std::vector&& _bounded_sequence_int16_field) { - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field + * @brief This function returns a constant reference to member bounded_sequence_int16_field + * @return Constant reference to member bounded_sequence_int16_field */ -const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const +const std::vector& CompleteTestType::bounded_sequence_int16_field() const { - return m_unbounded_sequence_uint16_field; + return m_bounded_sequence_int16_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field + * @brief This function returns a reference to member bounded_sequence_int16_field + * @return Reference to member bounded_sequence_int16_field */ -std::vector& CompleteTestType::unbounded_sequence_uint16_field() +std::vector& CompleteTestType::bounded_sequence_int16_field() { - return m_unbounded_sequence_uint16_field; + return m_bounded_sequence_int16_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field + * @brief This function copies the value in member bounded_sequence_uint16_field + * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ -void CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) +void CompleteTestType::bounded_sequence_uint16_field( + const std::vector& _bounded_sequence_uint16_field) { - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field + * @brief This function moves the value in member bounded_sequence_uint16_field + * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ -void CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) +void CompleteTestType::bounded_sequence_uint16_field( + std::vector&& _bounded_sequence_uint16_field) { - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field + * @brief This function returns a constant reference to member bounded_sequence_uint16_field + * @return Constant reference to member bounded_sequence_uint16_field */ -const std::vector& CompleteTestType::unbounded_sequence_int32_field() const +const std::vector& CompleteTestType::bounded_sequence_uint16_field() const { - return m_unbounded_sequence_int32_field; + return m_bounded_sequence_uint16_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field + * @brief This function returns a reference to member bounded_sequence_uint16_field + * @return Reference to member bounded_sequence_uint16_field */ -std::vector& CompleteTestType::unbounded_sequence_int32_field() +std::vector& CompleteTestType::bounded_sequence_uint16_field() { - return m_unbounded_sequence_int32_field; + return m_bounded_sequence_uint16_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field + * @brief This function copies the value in member bounded_sequence_int32_field + * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ -void CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) +void CompleteTestType::bounded_sequence_int32_field( + const std::vector& _bounded_sequence_int32_field) { - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field + * @brief This function moves the value in member bounded_sequence_int32_field + * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ -void CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) +void CompleteTestType::bounded_sequence_int32_field( + std::vector&& _bounded_sequence_int32_field) { - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field + * @brief This function returns a constant reference to member bounded_sequence_int32_field + * @return Constant reference to member bounded_sequence_int32_field */ -const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const +const std::vector& CompleteTestType::bounded_sequence_int32_field() const { - return m_unbounded_sequence_uint32_field; + return m_bounded_sequence_int32_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field + * @brief This function returns a reference to member bounded_sequence_int32_field + * @return Reference to member bounded_sequence_int32_field */ -std::vector& CompleteTestType::unbounded_sequence_uint32_field() +std::vector& CompleteTestType::bounded_sequence_int32_field() { - return m_unbounded_sequence_uint32_field; + return m_bounded_sequence_int32_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field + * @brief This function copies the value in member bounded_sequence_uint32_field + * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ -void CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) +void CompleteTestType::bounded_sequence_uint32_field( + const std::vector& _bounded_sequence_uint32_field) { - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field + * @brief This function moves the value in member bounded_sequence_uint32_field + * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ -void CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) +void CompleteTestType::bounded_sequence_uint32_field( + std::vector&& _bounded_sequence_uint32_field) { - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field + * @brief This function returns a constant reference to member bounded_sequence_uint32_field + * @return Constant reference to member bounded_sequence_uint32_field */ -const std::vector& CompleteTestType::unbounded_sequence_int64_field() const +const std::vector& CompleteTestType::bounded_sequence_uint32_field() const { - return m_unbounded_sequence_int64_field; + return m_bounded_sequence_uint32_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field + * @brief This function returns a reference to member bounded_sequence_uint32_field + * @return Reference to member bounded_sequence_uint32_field */ -std::vector& CompleteTestType::unbounded_sequence_int64_field() +std::vector& CompleteTestType::bounded_sequence_uint32_field() { - return m_unbounded_sequence_int64_field; + return m_bounded_sequence_uint32_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field + * @brief This function copies the value in member bounded_sequence_int64_field + * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ -void CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) +void CompleteTestType::bounded_sequence_int64_field( + const std::vector& _bounded_sequence_int64_field) { - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field + * @brief This function moves the value in member bounded_sequence_int64_field + * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ -void CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) +void CompleteTestType::bounded_sequence_int64_field( + std::vector&& _bounded_sequence_int64_field) { - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field + * @brief This function returns a constant reference to member bounded_sequence_int64_field + * @return Constant reference to member bounded_sequence_int64_field */ -const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const +const std::vector& CompleteTestType::bounded_sequence_int64_field() const { - return m_unbounded_sequence_uint64_field; + return m_bounded_sequence_int64_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field + * @brief This function returns a reference to member bounded_sequence_int64_field + * @return Reference to member bounded_sequence_int64_field */ -std::vector& CompleteTestType::unbounded_sequence_uint64_field() +std::vector& CompleteTestType::bounded_sequence_int64_field() { - return m_unbounded_sequence_uint64_field; + return m_bounded_sequence_int64_field; } /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field + * @brief This function copies the value in member bounded_sequence_uint64_field + * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ -void CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) +void CompleteTestType::bounded_sequence_uint64_field( + const std::vector& _bounded_sequence_uint64_field) { - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; } /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field + * @brief This function moves the value in member bounded_sequence_uint64_field + * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ -void CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) +void CompleteTestType::bounded_sequence_uint64_field( + std::vector&& _bounded_sequence_uint64_field) { - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field + * @brief This function returns a constant reference to member bounded_sequence_uint64_field + * @return Constant reference to member bounded_sequence_uint64_field */ -const std::vector& CompleteTestType::unbounded_sequence_float_field() const +const std::vector& CompleteTestType::bounded_sequence_uint64_field() const { - return m_unbounded_sequence_float_field; + return m_bounded_sequence_uint64_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field + * @brief This function returns a reference to member bounded_sequence_uint64_field + * @return Reference to member bounded_sequence_uint64_field */ -std::vector& CompleteTestType::unbounded_sequence_float_field() +std::vector& CompleteTestType::bounded_sequence_uint64_field() { - return m_unbounded_sequence_float_field; + return m_bounded_sequence_uint64_field; } /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field + * @brief This function copies the value in member bounded_sequence_float_field + * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ -void CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) +void CompleteTestType::bounded_sequence_float_field( + const std::vector& _bounded_sequence_float_field) { - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + m_bounded_sequence_float_field = _bounded_sequence_float_field; } /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field + * @brief This function moves the value in member bounded_sequence_float_field + * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ -void CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) +void CompleteTestType::bounded_sequence_float_field( + std::vector&& _bounded_sequence_float_field) { - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field + * @brief This function returns a constant reference to member bounded_sequence_float_field + * @return Constant reference to member bounded_sequence_float_field */ -const std::vector& CompleteTestType::unbounded_sequence_double_field() const +const std::vector& CompleteTestType::bounded_sequence_float_field() const { - return m_unbounded_sequence_double_field; + return m_bounded_sequence_float_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field + * @brief This function returns a reference to member bounded_sequence_float_field + * @return Reference to member bounded_sequence_float_field */ -std::vector& CompleteTestType::unbounded_sequence_double_field() +std::vector& CompleteTestType::bounded_sequence_float_field() { - return m_unbounded_sequence_double_field; + return m_bounded_sequence_float_field; } /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field + * @brief This function copies the value in member bounded_sequence_double_field + * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ -void CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) +void CompleteTestType::bounded_sequence_double_field( + const std::vector& _bounded_sequence_double_field) { - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + m_bounded_sequence_double_field = _bounded_sequence_double_field; } /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field + * @brief This function moves the value in member bounded_sequence_double_field + * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ -void CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) +void CompleteTestType::bounded_sequence_double_field( + std::vector&& _bounded_sequence_double_field) { - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field + * @brief This function returns a constant reference to member bounded_sequence_double_field + * @return Constant reference to member bounded_sequence_double_field */ -const std::vector& CompleteTestType::unbounded_sequence_bool_field() const +const std::vector& CompleteTestType::bounded_sequence_double_field() const { - return m_unbounded_sequence_bool_field; + return m_bounded_sequence_double_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field + * @brief This function returns a reference to member bounded_sequence_double_field + * @return Reference to member bounded_sequence_double_field */ -std::vector& CompleteTestType::unbounded_sequence_bool_field() +std::vector& CompleteTestType::bounded_sequence_double_field() { - return m_unbounded_sequence_bool_field; + return m_bounded_sequence_double_field; } /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field + * @brief This function copies the value in member bounded_sequence_bool_field + * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ -void CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) +void CompleteTestType::bounded_sequence_bool_field( + const std::vector& _bounded_sequence_bool_field) { - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; } /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field + * @brief This function moves the value in member bounded_sequence_bool_field + * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ -void CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) +void CompleteTestType::bounded_sequence_bool_field( + std::vector&& _bounded_sequence_bool_field) { - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field + * @brief This function returns a constant reference to member bounded_sequence_bool_field + * @return Constant reference to member bounded_sequence_bool_field */ -const std::vector& CompleteTestType::unbounded_sequence_enum_field() const +const std::vector& CompleteTestType::bounded_sequence_bool_field() const { - return m_unbounded_sequence_enum_field; + return m_bounded_sequence_bool_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field + * @brief This function returns a reference to member bounded_sequence_bool_field + * @return Reference to member bounded_sequence_bool_field */ -std::vector& CompleteTestType::unbounded_sequence_enum_field() +std::vector& CompleteTestType::bounded_sequence_bool_field() { - return m_unbounded_sequence_enum_field; + return m_bounded_sequence_bool_field; } /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field + * @brief This function copies the value in member bounded_sequence_enum_field + * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ -void CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) +void CompleteTestType::bounded_sequence_enum_field( + const std::vector& _bounded_sequence_enum_field) { - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; } /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field + * @brief This function moves the value in member bounded_sequence_enum_field + * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ -void CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) +void CompleteTestType::bounded_sequence_enum_field( + std::vector&& _bounded_sequence_enum_field) { - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field + * @brief This function returns a constant reference to member bounded_sequence_enum_field + * @return Constant reference to member bounded_sequence_enum_field */ -const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const +const std::vector& CompleteTestType::bounded_sequence_enum_field() const { - return m_unbounded_sequence_enum2_field; + return m_bounded_sequence_enum_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field + * @brief This function returns a reference to member bounded_sequence_enum_field + * @return Reference to member bounded_sequence_enum_field */ -std::vector& CompleteTestType::unbounded_sequence_enum2_field() +std::vector& CompleteTestType::bounded_sequence_enum_field() { - return m_unbounded_sequence_enum2_field; + return m_bounded_sequence_enum_field; } /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field + * @brief This function copies the value in member bounded_sequence_enum2_field + * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ -void CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) +void CompleteTestType::bounded_sequence_enum2_field( + const std::vector& _bounded_sequence_enum2_field) { - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; } /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field + * @brief This function moves the value in member bounded_sequence_enum2_field + * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ -void CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) +void CompleteTestType::bounded_sequence_enum2_field( + std::vector&& _bounded_sequence_enum2_field) { - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field + * @brief This function returns a constant reference to member bounded_sequence_enum2_field + * @return Constant reference to member bounded_sequence_enum2_field */ -const std::vector& CompleteTestType::unbounded_sequence_struct_field() const +const std::vector& CompleteTestType::bounded_sequence_enum2_field() const { - return m_unbounded_sequence_struct_field; + return m_bounded_sequence_enum2_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field + * @brief This function returns a reference to member bounded_sequence_enum2_field + * @return Reference to member bounded_sequence_enum2_field */ -std::vector& CompleteTestType::unbounded_sequence_struct_field() +std::vector& CompleteTestType::bounded_sequence_enum2_field() { - return m_unbounded_sequence_struct_field; + return m_bounded_sequence_enum2_field; } -KeyedCompleteTestType::KeyedCompleteTestType() +/*! + * @brief This function copies the value in member bounded_sequence_struct_field + * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field + */ +void CompleteTestType::bounded_sequence_struct_field( + const std::vector& _bounded_sequence_struct_field) { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; +} +/*! + * @brief This function moves the value in member bounded_sequence_struct_field + * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field + */ +void CompleteTestType::bounded_sequence_struct_field( + std::vector&& _bounded_sequence_struct_field) +{ + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); } -KeyedCompleteTestType::~KeyedCompleteTestType() +/*! + * @brief This function returns a constant reference to member bounded_sequence_struct_field + * @return Constant reference to member bounded_sequence_struct_field + */ +const std::vector& CompleteTestType::bounded_sequence_struct_field() const { + return m_bounded_sequence_struct_field; } -KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) +/*! + * @brief This function returns a reference to member bounded_sequence_struct_field + * @return Reference to member bounded_sequence_struct_field + */ +std::vector& CompleteTestType::bounded_sequence_struct_field() { - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; + return m_bounded_sequence_struct_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_char_field + * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field + */ +void CompleteTestType::unbounded_sequence_char_field( + const std::vector& _unbounded_sequence_char_field) +{ + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_char_field + * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field + */ +void CompleteTestType::unbounded_sequence_char_field( + std::vector&& _unbounded_sequence_char_field) +{ + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_char_field + * @return Constant reference to member unbounded_sequence_char_field + */ +const std::vector& CompleteTestType::unbounded_sequence_char_field() const +{ + return m_unbounded_sequence_char_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_char_field + * @return Reference to member unbounded_sequence_char_field + */ +std::vector& CompleteTestType::unbounded_sequence_char_field() +{ + return m_unbounded_sequence_char_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint8_field + * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field + */ +void CompleteTestType::unbounded_sequence_uint8_field( + const std::vector& _unbounded_sequence_uint8_field) +{ + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint8_field + * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field + */ +void CompleteTestType::unbounded_sequence_uint8_field( + std::vector&& _unbounded_sequence_uint8_field) +{ + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint8_field + * @return Constant reference to member unbounded_sequence_uint8_field + */ +const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const +{ + return m_unbounded_sequence_uint8_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint8_field + * @return Reference to member unbounded_sequence_uint8_field + */ +std::vector& CompleteTestType::unbounded_sequence_uint8_field() +{ + return m_unbounded_sequence_uint8_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int16_field + * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field + */ +void CompleteTestType::unbounded_sequence_int16_field( + const std::vector& _unbounded_sequence_int16_field) +{ + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int16_field + * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field + */ +void CompleteTestType::unbounded_sequence_int16_field( + std::vector&& _unbounded_sequence_int16_field) +{ + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int16_field + * @return Constant reference to member unbounded_sequence_int16_field + */ +const std::vector& CompleteTestType::unbounded_sequence_int16_field() const +{ + return m_unbounded_sequence_int16_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int16_field + * @return Reference to member unbounded_sequence_int16_field + */ +std::vector& CompleteTestType::unbounded_sequence_int16_field() +{ + return m_unbounded_sequence_int16_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint16_field + * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field + */ +void CompleteTestType::unbounded_sequence_uint16_field( + const std::vector& _unbounded_sequence_uint16_field) +{ + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint16_field + * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field + */ +void CompleteTestType::unbounded_sequence_uint16_field( + std::vector&& _unbounded_sequence_uint16_field) +{ + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint16_field + * @return Constant reference to member unbounded_sequence_uint16_field + */ +const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const +{ + return m_unbounded_sequence_uint16_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint16_field + * @return Reference to member unbounded_sequence_uint16_field + */ +std::vector& CompleteTestType::unbounded_sequence_uint16_field() +{ + return m_unbounded_sequence_uint16_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int32_field + * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field + */ +void CompleteTestType::unbounded_sequence_int32_field( + const std::vector& _unbounded_sequence_int32_field) +{ + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int32_field + * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field + */ +void CompleteTestType::unbounded_sequence_int32_field( + std::vector&& _unbounded_sequence_int32_field) +{ + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int32_field + * @return Constant reference to member unbounded_sequence_int32_field + */ +const std::vector& CompleteTestType::unbounded_sequence_int32_field() const +{ + return m_unbounded_sequence_int32_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int32_field + * @return Reference to member unbounded_sequence_int32_field + */ +std::vector& CompleteTestType::unbounded_sequence_int32_field() +{ + return m_unbounded_sequence_int32_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint32_field + * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field + */ +void CompleteTestType::unbounded_sequence_uint32_field( + const std::vector& _unbounded_sequence_uint32_field) +{ + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint32_field + * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field + */ +void CompleteTestType::unbounded_sequence_uint32_field( + std::vector&& _unbounded_sequence_uint32_field) +{ + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint32_field + * @return Constant reference to member unbounded_sequence_uint32_field + */ +const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const +{ + return m_unbounded_sequence_uint32_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint32_field + * @return Reference to member unbounded_sequence_uint32_field + */ +std::vector& CompleteTestType::unbounded_sequence_uint32_field() +{ + return m_unbounded_sequence_uint32_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int64_field + * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field + */ +void CompleteTestType::unbounded_sequence_int64_field( + const std::vector& _unbounded_sequence_int64_field) +{ + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int64_field + * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field + */ +void CompleteTestType::unbounded_sequence_int64_field( + std::vector&& _unbounded_sequence_int64_field) +{ + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int64_field + * @return Constant reference to member unbounded_sequence_int64_field + */ +const std::vector& CompleteTestType::unbounded_sequence_int64_field() const +{ + return m_unbounded_sequence_int64_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int64_field + * @return Reference to member unbounded_sequence_int64_field + */ +std::vector& CompleteTestType::unbounded_sequence_int64_field() +{ + return m_unbounded_sequence_int64_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint64_field + * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field + */ +void CompleteTestType::unbounded_sequence_uint64_field( + const std::vector& _unbounded_sequence_uint64_field) +{ + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint64_field + * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field + */ +void CompleteTestType::unbounded_sequence_uint64_field( + std::vector&& _unbounded_sequence_uint64_field) +{ + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint64_field + * @return Constant reference to member unbounded_sequence_uint64_field + */ +const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const +{ + return m_unbounded_sequence_uint64_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint64_field + * @return Reference to member unbounded_sequence_uint64_field + */ +std::vector& CompleteTestType::unbounded_sequence_uint64_field() +{ + return m_unbounded_sequence_uint64_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_float_field + * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field + */ +void CompleteTestType::unbounded_sequence_float_field( + const std::vector& _unbounded_sequence_float_field) +{ + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_float_field + * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field + */ +void CompleteTestType::unbounded_sequence_float_field( + std::vector&& _unbounded_sequence_float_field) +{ + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_float_field + * @return Constant reference to member unbounded_sequence_float_field + */ +const std::vector& CompleteTestType::unbounded_sequence_float_field() const +{ + return m_unbounded_sequence_float_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_float_field + * @return Reference to member unbounded_sequence_float_field + */ +std::vector& CompleteTestType::unbounded_sequence_float_field() +{ + return m_unbounded_sequence_float_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_double_field + * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field + */ +void CompleteTestType::unbounded_sequence_double_field( + const std::vector& _unbounded_sequence_double_field) +{ + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_double_field + * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field + */ +void CompleteTestType::unbounded_sequence_double_field( + std::vector&& _unbounded_sequence_double_field) +{ + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_double_field + * @return Constant reference to member unbounded_sequence_double_field + */ +const std::vector& CompleteTestType::unbounded_sequence_double_field() const +{ + return m_unbounded_sequence_double_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_double_field + * @return Reference to member unbounded_sequence_double_field + */ +std::vector& CompleteTestType::unbounded_sequence_double_field() +{ + return m_unbounded_sequence_double_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_bool_field + * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field + */ +void CompleteTestType::unbounded_sequence_bool_field( + const std::vector& _unbounded_sequence_bool_field) +{ + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_bool_field + * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field + */ +void CompleteTestType::unbounded_sequence_bool_field( + std::vector&& _unbounded_sequence_bool_field) +{ + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_bool_field + * @return Constant reference to member unbounded_sequence_bool_field + */ +const std::vector& CompleteTestType::unbounded_sequence_bool_field() const +{ + return m_unbounded_sequence_bool_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_bool_field + * @return Reference to member unbounded_sequence_bool_field + */ +std::vector& CompleteTestType::unbounded_sequence_bool_field() +{ + return m_unbounded_sequence_bool_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_enum_field + * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field + */ +void CompleteTestType::unbounded_sequence_enum_field( + const std::vector& _unbounded_sequence_enum_field) +{ + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_enum_field + * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field + */ +void CompleteTestType::unbounded_sequence_enum_field( + std::vector&& _unbounded_sequence_enum_field) +{ + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_enum_field + * @return Constant reference to member unbounded_sequence_enum_field + */ +const std::vector& CompleteTestType::unbounded_sequence_enum_field() const +{ + return m_unbounded_sequence_enum_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_enum_field + * @return Reference to member unbounded_sequence_enum_field + */ +std::vector& CompleteTestType::unbounded_sequence_enum_field() +{ + return m_unbounded_sequence_enum_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_enum2_field + * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field + */ +void CompleteTestType::unbounded_sequence_enum2_field( + const std::vector& _unbounded_sequence_enum2_field) +{ + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_enum2_field + * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field + */ +void CompleteTestType::unbounded_sequence_enum2_field( + std::vector&& _unbounded_sequence_enum2_field) +{ + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_enum2_field + * @return Constant reference to member unbounded_sequence_enum2_field + */ +const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const +{ + return m_unbounded_sequence_enum2_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_enum2_field + * @return Reference to member unbounded_sequence_enum2_field + */ +std::vector& CompleteTestType::unbounded_sequence_enum2_field() +{ + return m_unbounded_sequence_enum2_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_struct_field + * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field + */ +void CompleteTestType::unbounded_sequence_struct_field( + const std::vector& _unbounded_sequence_struct_field) +{ + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_struct_field + * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field + */ +void CompleteTestType::unbounded_sequence_struct_field( + std::vector&& _unbounded_sequence_struct_field) +{ + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_struct_field + * @return Constant reference to member unbounded_sequence_struct_field + */ +const std::vector& CompleteTestType::unbounded_sequence_struct_field() const +{ + return m_unbounded_sequence_struct_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_struct_field + * @return Reference to member unbounded_sequence_struct_field + */ +std::vector& CompleteTestType::unbounded_sequence_struct_field() +{ + return m_unbounded_sequence_struct_field; +} + + +KeyedCompleteTestType::KeyedCompleteTestType() +{ + +} + +KeyedCompleteTestType::~KeyedCompleteTestType() +{ +} + +KeyedCompleteTestType::KeyedCompleteTestType( + const KeyedCompleteTestType& x) +{ + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = x.m_string_field; + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; + m_array_char_field = x.m_array_char_field; + m_array_uint8_field = x.m_array_uint8_field; + m_array_int16_field = x.m_array_int16_field; + m_array_uint16_field = x.m_array_uint16_field; + m_array_int32_field = x.m_array_int32_field; + m_array_uint32_field = x.m_array_uint32_field; + m_array_int64_field = x.m_array_int64_field; + m_array_uint64_field = x.m_array_uint64_field; + m_array_float_field = x.m_array_float_field; + m_array_double_field = x.m_array_double_field; + m_array_bool_field = x.m_array_bool_field; + m_array_enum_field = x.m_array_enum_field; + m_array_enum2_field = x.m_array_enum2_field; + m_array_struct_field = x.m_array_struct_field; + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; +} + +KeyedCompleteTestType::KeyedCompleteTestType( + KeyedCompleteTestType&& x) noexcept +{ + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); +} + +KeyedCompleteTestType& KeyedCompleteTestType::operator =( + const KeyedCompleteTestType& x) +{ + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; m_int64_field = x.m_int64_field; m_uint64_field = x.m_uint64_field; m_float_field = x.m_float_field; @@ -3066,6 +3883,21 @@ KeyedCompleteTestType::KeyedCompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -3108,753 +3940,1241 @@ KeyedCompleteTestType::KeyedCompleteTestType( m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; +} + +KeyedCompleteTestType& KeyedCompleteTestType::operator =( + KeyedCompleteTestType&& x) noexcept +{ + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + + return *this; +} + +bool KeyedCompleteTestType::operator ==( + const KeyedCompleteTestType& x) const +{ + return (m_id == x.m_id && + m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); +} + +bool KeyedCompleteTestType::operator !=( + const KeyedCompleteTestType& x) const +{ + return !(*this == x); +} + +/*! + * @brief This function sets a value in member id + * @param _id New value for member id + */ +void KeyedCompleteTestType::id( + int32_t _id) +{ + m_id = _id; +} + +/*! + * @brief This function returns the value of member id + * @return Value of member id + */ +int32_t KeyedCompleteTestType::id() const +{ + return m_id; +} + +/*! + * @brief This function returns a reference to member id + * @return Reference to member id + */ +int32_t& KeyedCompleteTestType::id() +{ + return m_id; +} + + +/*! + * @brief This function sets a value in member char_field + * @param _char_field New value for member char_field + */ +void KeyedCompleteTestType::char_field( + char _char_field) +{ + m_char_field = _char_field; +} + +/*! + * @brief This function returns the value of member char_field + * @return Value of member char_field + */ +char KeyedCompleteTestType::char_field() const +{ + return m_char_field; +} + +/*! + * @brief This function returns a reference to member char_field + * @return Reference to member char_field + */ +char& KeyedCompleteTestType::char_field() +{ + return m_char_field; +} + + +/*! + * @brief This function sets a value in member uint8_field + * @param _uint8_field New value for member uint8_field + */ +void KeyedCompleteTestType::uint8_field( + uint8_t _uint8_field) +{ + m_uint8_field = _uint8_field; +} + +/*! + * @brief This function returns the value of member uint8_field + * @return Value of member uint8_field + */ +uint8_t KeyedCompleteTestType::uint8_field() const +{ + return m_uint8_field; +} + +/*! + * @brief This function returns a reference to member uint8_field + * @return Reference to member uint8_field + */ +uint8_t& KeyedCompleteTestType::uint8_field() +{ + return m_uint8_field; +} + + +/*! + * @brief This function sets a value in member int16_field + * @param _int16_field New value for member int16_field + */ +void KeyedCompleteTestType::int16_field( + int16_t _int16_field) +{ + m_int16_field = _int16_field; +} + +/*! + * @brief This function returns the value of member int16_field + * @return Value of member int16_field + */ +int16_t KeyedCompleteTestType::int16_field() const +{ + return m_int16_field; +} + +/*! + * @brief This function returns a reference to member int16_field + * @return Reference to member int16_field + */ +int16_t& KeyedCompleteTestType::int16_field() +{ + return m_int16_field; +} + + +/*! + * @brief This function sets a value in member uint16_field + * @param _uint16_field New value for member uint16_field + */ +void KeyedCompleteTestType::uint16_field( + uint16_t _uint16_field) +{ + m_uint16_field = _uint16_field; +} + +/*! + * @brief This function returns the value of member uint16_field + * @return Value of member uint16_field + */ +uint16_t KeyedCompleteTestType::uint16_field() const +{ + return m_uint16_field; +} + +/*! + * @brief This function returns a reference to member uint16_field + * @return Reference to member uint16_field + */ +uint16_t& KeyedCompleteTestType::uint16_field() +{ + return m_uint16_field; +} + + +/*! + * @brief This function sets a value in member int32_field + * @param _int32_field New value for member int32_field + */ +void KeyedCompleteTestType::int32_field( + int32_t _int32_field) +{ + m_int32_field = _int32_field; +} + +/*! + * @brief This function returns the value of member int32_field + * @return Value of member int32_field + */ +int32_t KeyedCompleteTestType::int32_field() const +{ + return m_int32_field; +} + +/*! + * @brief This function returns a reference to member int32_field + * @return Reference to member int32_field + */ +int32_t& KeyedCompleteTestType::int32_field() +{ + return m_int32_field; +} + + +/*! + * @brief This function sets a value in member uint32_field + * @param _uint32_field New value for member uint32_field + */ +void KeyedCompleteTestType::uint32_field( + uint32_t _uint32_field) +{ + m_uint32_field = _uint32_field; +} + +/*! + * @brief This function returns the value of member uint32_field + * @return Value of member uint32_field + */ +uint32_t KeyedCompleteTestType::uint32_field() const +{ + return m_uint32_field; +} + +/*! + * @brief This function returns a reference to member uint32_field + * @return Reference to member uint32_field + */ +uint32_t& KeyedCompleteTestType::uint32_field() +{ + return m_uint32_field; +} + + +/*! + * @brief This function sets a value in member int64_field + * @param _int64_field New value for member int64_field + */ +void KeyedCompleteTestType::int64_field( + int64_t _int64_field) +{ + m_int64_field = _int64_field; +} + +/*! + * @brief This function returns the value of member int64_field + * @return Value of member int64_field + */ +int64_t KeyedCompleteTestType::int64_field() const +{ + return m_int64_field; +} + +/*! + * @brief This function returns a reference to member int64_field + * @return Reference to member int64_field + */ +int64_t& KeyedCompleteTestType::int64_field() +{ + return m_int64_field; } -KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept + +/*! + * @brief This function sets a value in member uint64_field + * @param _uint64_field New value for member uint64_field + */ +void KeyedCompleteTestType::uint64_field( + uint64_t _uint64_field) { - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + m_uint64_field = _uint64_field; +} + +/*! + * @brief This function returns the value of member uint64_field + * @return Value of member uint64_field + */ +uint64_t KeyedCompleteTestType::uint64_field() const +{ + return m_uint64_field; +} + +/*! + * @brief This function returns a reference to member uint64_field + * @return Reference to member uint64_field + */ +uint64_t& KeyedCompleteTestType::uint64_field() +{ + return m_uint64_field; +} + + +/*! + * @brief This function sets a value in member float_field + * @param _float_field New value for member float_field + */ +void KeyedCompleteTestType::float_field( + float _float_field) +{ + m_float_field = _float_field; +} + +/*! + * @brief This function returns the value of member float_field + * @return Value of member float_field + */ +float KeyedCompleteTestType::float_field() const +{ + return m_float_field; +} + +/*! + * @brief This function returns a reference to member float_field + * @return Reference to member float_field + */ +float& KeyedCompleteTestType::float_field() +{ + return m_float_field; +} + + +/*! + * @brief This function sets a value in member double_field + * @param _double_field New value for member double_field + */ +void KeyedCompleteTestType::double_field( + double _double_field) +{ + m_double_field = _double_field; +} + +/*! + * @brief This function returns the value of member double_field + * @return Value of member double_field + */ +double KeyedCompleteTestType::double_field() const +{ + return m_double_field; +} + +/*! + * @brief This function returns a reference to member double_field + * @return Reference to member double_field + */ +double& KeyedCompleteTestType::double_field() +{ + return m_double_field; +} + + +/*! + * @brief This function sets a value in member bool_field + * @param _bool_field New value for member bool_field + */ +void KeyedCompleteTestType::bool_field( + bool _bool_field) +{ + m_bool_field = _bool_field; +} + +/*! + * @brief This function returns the value of member bool_field + * @return Value of member bool_field + */ +bool KeyedCompleteTestType::bool_field() const +{ + return m_bool_field; +} + +/*! + * @brief This function returns a reference to member bool_field + * @return Reference to member bool_field + */ +bool& KeyedCompleteTestType::bool_field() +{ + return m_bool_field; +} + + +/*! + * @brief This function copies the value in member string_field + * @param _string_field New value to be copied in member string_field + */ +void KeyedCompleteTestType::string_field( + const std::string& _string_field) +{ + m_string_field = _string_field; +} + +/*! + * @brief This function moves the value in member string_field + * @param _string_field New value to be moved in member string_field + */ +void KeyedCompleteTestType::string_field( + std::string&& _string_field) +{ + m_string_field = std::move(_string_field); +} + +/*! + * @brief This function returns a constant reference to member string_field + * @return Constant reference to member string_field + */ +const std::string& KeyedCompleteTestType::string_field() const +{ + return m_string_field; +} + +/*! + * @brief This function returns a reference to member string_field + * @return Reference to member string_field + */ +std::string& KeyedCompleteTestType::string_field() +{ + return m_string_field; +} + + +/*! + * @brief This function sets a value in member enum_field + * @param _enum_field New value for member enum_field + */ +void KeyedCompleteTestType::enum_field( + Color _enum_field) +{ + m_enum_field = _enum_field; +} + +/*! + * @brief This function returns the value of member enum_field + * @return Value of member enum_field + */ +Color KeyedCompleteTestType::enum_field() const +{ + return m_enum_field; +} + +/*! + * @brief This function returns a reference to member enum_field + * @return Reference to member enum_field + */ +Color& KeyedCompleteTestType::enum_field() +{ + return m_enum_field; +} + + +/*! + * @brief This function sets a value in member enum2_field + * @param _enum2_field New value for member enum2_field + */ +void KeyedCompleteTestType::enum2_field( + Material _enum2_field) +{ + m_enum2_field = _enum2_field; } -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) +/*! + * @brief This function returns the value of member enum2_field + * @return Value of member enum2_field + */ +Material KeyedCompleteTestType::enum2_field() const { + return m_enum2_field; +} - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; +/*! + * @brief This function returns a reference to member enum2_field + * @return Reference to member enum2_field + */ +Material& KeyedCompleteTestType::enum2_field() +{ + return m_enum2_field; +} - return *this; + +/*! + * @brief This function copies the value in member struct_field + * @param _struct_field New value to be copied in member struct_field + */ +void KeyedCompleteTestType::struct_field( + const StructType& _struct_field) +{ + m_struct_field = _struct_field; } -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept +/*! + * @brief This function moves the value in member struct_field + * @param _struct_field New value to be moved in member struct_field + */ +void KeyedCompleteTestType::struct_field( + StructType&& _struct_field) { + m_struct_field = std::move(_struct_field); +} - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); +/*! + * @brief This function returns a constant reference to member struct_field + * @return Constant reference to member struct_field + */ +const StructType& KeyedCompleteTestType::struct_field() const +{ + return m_struct_field; +} - return *this; +/*! + * @brief This function returns a reference to member struct_field + * @return Reference to member struct_field + */ +StructType& KeyedCompleteTestType::struct_field() +{ + return m_struct_field; } -bool KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const + +/*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ +void KeyedCompleteTestType::char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field) { - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + m_char_opt_field = _char_opt_field; +} + +/*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ +void KeyedCompleteTestType::char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field) +{ + m_char_opt_field = std::move(_char_opt_field); +} + +/*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ +const eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() const +{ + return m_char_opt_field; +} + +/*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ +eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() +{ + return m_char_opt_field; +} + + +/*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ +void KeyedCompleteTestType::uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field) +{ + m_uint8_opt_field = _uint8_opt_field; } -bool KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const +/*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ +void KeyedCompleteTestType::uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field) { - return !(*this == x); + m_uint8_opt_field = std::move(_uint8_opt_field); } /*! - * @brief This function sets a value in member id - * @param _id New value for member id + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field */ -void KeyedCompleteTestType::id( - int32_t _id) +const eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() const { - m_id = _id; + return m_uint8_opt_field; } /*! - * @brief This function returns the value of member id - * @return Value of member id + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field */ -int32_t KeyedCompleteTestType::id() const +eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() { - return m_id; + return m_uint8_opt_field; } + /*! - * @brief This function returns a reference to member id - * @return Reference to member id + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field */ -int32_t& KeyedCompleteTestType::id() +void KeyedCompleteTestType::int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field) { - return m_id; + m_int16_opt_field = _int16_opt_field; } - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field */ -void KeyedCompleteTestType::char_field( - char _char_field) +void KeyedCompleteTestType::int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field) { - m_char_field = _char_field; + m_int16_opt_field = std::move(_int16_opt_field); } /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field */ -char KeyedCompleteTestType::char_field() const +const eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() const { - return m_char_field; + return m_int16_opt_field; } /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field */ -char& KeyedCompleteTestType::char_field() +eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() { - return m_char_field; + return m_int16_opt_field; } /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ -void KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) +void KeyedCompleteTestType::uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field) { - m_uint8_field = _uint8_field; + m_uint16_opt_field = _uint16_opt_field; } /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ -uint8_t KeyedCompleteTestType::uint8_field() const +void KeyedCompleteTestType::uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field) { - return m_uint8_field; + m_uint16_opt_field = std::move(_uint16_opt_field); } /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field */ -uint8_t& KeyedCompleteTestType::uint8_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() const { - return m_uint8_field; + return m_uint16_opt_field; } - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field */ -void KeyedCompleteTestType::int16_field( - int16_t _int16_field) +eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() { - m_int16_field = _int16_field; + return m_uint16_opt_field; } + /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field */ -int16_t KeyedCompleteTestType::int16_field() const +void KeyedCompleteTestType::int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field) { - return m_int16_field; + m_int32_opt_field = _int32_opt_field; } /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field */ -int16_t& KeyedCompleteTestType::int16_field() +void KeyedCompleteTestType::int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field) { - return m_int16_field; + m_int32_opt_field = std::move(_int32_opt_field); } - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field */ -void KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) +const eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() const { - m_uint16_field = _uint16_field; + return m_int32_opt_field; } /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field */ -uint16_t KeyedCompleteTestType::uint16_field() const +eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() { - return m_uint16_field; + return m_int32_opt_field; } + /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ -uint16_t& KeyedCompleteTestType::uint16_field() +void KeyedCompleteTestType::uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field) { - return m_uint16_field; + m_uint32_opt_field = _uint32_opt_field; } - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ -void KeyedCompleteTestType::int32_field( - int32_t _int32_field) +void KeyedCompleteTestType::uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field) { - m_int32_field = _int32_field; + m_uint32_opt_field = std::move(_uint32_opt_field); } /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field */ -int32_t KeyedCompleteTestType::int32_field() const +const eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() const { - return m_int32_field; + return m_uint32_opt_field; } /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field */ -int32_t& KeyedCompleteTestType::int32_field() +eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() { - return m_int32_field; + return m_uint32_opt_field; } /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field */ -void KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) +void KeyedCompleteTestType::int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field) { - m_uint32_field = _uint32_field; + m_int64_opt_field = _int64_opt_field; } /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field */ -uint32_t KeyedCompleteTestType::uint32_field() const +void KeyedCompleteTestType::int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field) { - return m_uint32_field; + m_int64_opt_field = std::move(_int64_opt_field); } /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field */ -uint32_t& KeyedCompleteTestType::uint32_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() const { - return m_uint32_field; + return m_int64_opt_field; } - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field */ -void KeyedCompleteTestType::int64_field( - int64_t _int64_field) +eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() { - m_int64_field = _int64_field; + return m_int64_opt_field; } + /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ -int64_t KeyedCompleteTestType::int64_field() const +void KeyedCompleteTestType::uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field) { - return m_int64_field; + m_uint64_opt_field = _uint64_opt_field; } /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ -int64_t& KeyedCompleteTestType::int64_field() +void KeyedCompleteTestType::uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field) { - return m_int64_field; + m_uint64_opt_field = std::move(_uint64_opt_field); } - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field */ -void KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) +const eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() const { - m_uint64_field = _uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field */ -uint64_t KeyedCompleteTestType::uint64_field() const +eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() { - return m_uint64_field; + return m_uint64_opt_field; } + /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field */ -uint64_t& KeyedCompleteTestType::uint64_field() +void KeyedCompleteTestType::float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field) { - return m_uint64_field; + m_float_opt_field = _float_opt_field; } - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field */ -void KeyedCompleteTestType::float_field( - float _float_field) +void KeyedCompleteTestType::float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field) { - m_float_field = _float_field; + m_float_opt_field = std::move(_float_opt_field); } /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field */ -float KeyedCompleteTestType::float_field() const +const eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() const { - return m_float_field; + return m_float_opt_field; } /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field */ -float& KeyedCompleteTestType::float_field() +eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() { - return m_float_field; + return m_float_opt_field; } /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field */ -void KeyedCompleteTestType::double_field( - double _double_field) +void KeyedCompleteTestType::double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field) { - m_double_field = _double_field; + m_double_opt_field = _double_opt_field; } /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field */ -double KeyedCompleteTestType::double_field() const +void KeyedCompleteTestType::double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field) { - return m_double_field; + m_double_opt_field = std::move(_double_opt_field); } /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field */ -double& KeyedCompleteTestType::double_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() const { - return m_double_field; + return m_double_opt_field; +} + +/*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ +eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() +{ + return m_double_opt_field; } /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field */ -void KeyedCompleteTestType::bool_field( - bool _bool_field) +void KeyedCompleteTestType::bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field) { - m_bool_field = _bool_field; + m_bool_opt_field = _bool_opt_field; } /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field */ -bool KeyedCompleteTestType::bool_field() const +void KeyedCompleteTestType::bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field) { - return m_bool_field; + m_bool_opt_field = std::move(_bool_opt_field); } /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field */ -bool& KeyedCompleteTestType::bool_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() const { - return m_bool_field; + return m_bool_opt_field; +} + +/*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ +eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() +{ + return m_bool_opt_field; } /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field */ -void KeyedCompleteTestType::string_field( - const std::string& _string_field) +void KeyedCompleteTestType::string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field) { - m_string_field = _string_field; + m_string_opt_field = _string_opt_field; } /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field */ -void KeyedCompleteTestType::string_field( - std::string&& _string_field) +void KeyedCompleteTestType::string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field) { - m_string_field = std::move(_string_field); + m_string_opt_field = std::move(_string_opt_field); } /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field */ -const std::string& KeyedCompleteTestType::string_field() const +const eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() const { - return m_string_field; + return m_string_opt_field; } /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field */ -std::string& KeyedCompleteTestType::string_field() +eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() { - return m_string_field; + return m_string_opt_field; } /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field */ -void KeyedCompleteTestType::enum_field( - Color _enum_field) +void KeyedCompleteTestType::enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field) { - m_enum_field = _enum_field; + m_enum_opt_field = _enum_opt_field; } /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field */ -Color KeyedCompleteTestType::enum_field() const +void KeyedCompleteTestType::enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field) { - return m_enum_field; + m_enum_opt_field = std::move(_enum_opt_field); } /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field */ -Color& KeyedCompleteTestType::enum_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() const { - return m_enum_field; + return m_enum_opt_field; +} + +/*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ +eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() +{ + return m_enum_opt_field; } /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ -void KeyedCompleteTestType::enum2_field( - Material _enum2_field) +void KeyedCompleteTestType::enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field) { - m_enum2_field = _enum2_field; + m_enum2_opt_field = _enum2_opt_field; } /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ -Material KeyedCompleteTestType::enum2_field() const +void KeyedCompleteTestType::enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field) { - return m_enum2_field; + m_enum2_opt_field = std::move(_enum2_opt_field); } /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field */ -Material& KeyedCompleteTestType::enum2_field() +const eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() const { - return m_enum2_field; + return m_enum2_opt_field; +} + +/*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ +eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() +{ + return m_enum2_opt_field; } /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field */ -void KeyedCompleteTestType::struct_field( - const StructType& _struct_field) +void KeyedCompleteTestType::struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field) { - m_struct_field = _struct_field; + m_struct_opt_field = _struct_opt_field; } /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field */ -void KeyedCompleteTestType::struct_field( - StructType&& _struct_field) +void KeyedCompleteTestType::struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field) { - m_struct_field = std::move(_struct_field); + m_struct_opt_field = std::move(_struct_opt_field); } /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field */ -const StructType& KeyedCompleteTestType::struct_field() const +const eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() const { - return m_struct_field; + return m_struct_opt_field; } /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field */ -StructType& KeyedCompleteTestType::struct_field() +eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() { - return m_struct_field; + return m_struct_opt_field; } diff --git a/fastdds_python/test/types/test_complete.h b/fastdds_python/test/types/test_complete.h index fc2437c6..cdb0c5ed 100644 --- a/fastdds_python/test/types/test_complete.h +++ b/fastdds_python/test/types/test_complete.h @@ -860,6 +860,411 @@ class CompleteTestType eProsima_user_DllExport StructType& struct_field(); + /*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field); + + /*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field); + + /*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + + /*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + + + /*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field); + + /*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field); + + /*! + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + + /*! + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + + + /*! + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field); + + /*! + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field); + + /*! + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + + /*! + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + + + /*! + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field); + + /*! + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field); + + /*! + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + + /*! + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + + + /*! + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field); + + /*! + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field); + + /*! + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + + /*! + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + + + /*! + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field); + + /*! + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field); + + /*! + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + + /*! + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + + + /*! + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field); + + /*! + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field); + + /*! + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + + /*! + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + + + /*! + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field); + + /*! + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field); + + /*! + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + + /*! + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + + + /*! + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field); + + /*! + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field); + + /*! + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + + /*! + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + + + /*! + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field); + + /*! + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field); + + /*! + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + + /*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + + + /*! + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field); + + /*! + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field); + + /*! + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + + /*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + + + /*! + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field); + + /*! + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field); + + /*! + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + + /*! + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + + + /*! + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field); + + /*! + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field); + + /*! + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + + /*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + + + /*! + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field); + + /*! + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field); + + /*! + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + + /*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + + + /*! + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field); + + /*! + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field); + + /*! + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + + /*! + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + + /*! * @brief This function copies the value in member array_char_field * @param _array_char_field New value to be copied in member array_char_field @@ -2010,6 +2415,21 @@ class CompleteTestType Color m_enum_field{::RED}; Material m_enum2_field{::WOOD}; StructType m_struct_field; + eprosima::fastcdr::optional m_char_opt_field; + eprosima::fastcdr::optional m_uint8_opt_field; + eprosima::fastcdr::optional m_int16_opt_field; + eprosima::fastcdr::optional m_uint16_opt_field; + eprosima::fastcdr::optional m_int32_opt_field; + eprosima::fastcdr::optional m_uint32_opt_field; + eprosima::fastcdr::optional m_int64_opt_field; + eprosima::fastcdr::optional m_uint64_opt_field; + eprosima::fastcdr::optional m_float_opt_field; + eprosima::fastcdr::optional m_double_opt_field; + eprosima::fastcdr::optional m_bool_opt_field; + eprosima::fastcdr::optional m_string_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; @@ -2448,6 +2868,411 @@ class KeyedCompleteTestType eProsima_user_DllExport StructType& struct_field(); + /*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field); + + /*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field); + + /*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + + /*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + + + /*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field); + + /*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field); + + /*! + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + + /*! + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + + + /*! + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field); + + /*! + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field); + + /*! + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + + /*! + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + + + /*! + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field); + + /*! + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field); + + /*! + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + + /*! + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + + + /*! + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field); + + /*! + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field); + + /*! + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + + /*! + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + + + /*! + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field); + + /*! + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field); + + /*! + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + + /*! + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + + + /*! + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field); + + /*! + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field); + + /*! + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + + /*! + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + + + /*! + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field); + + /*! + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field); + + /*! + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + + /*! + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + + + /*! + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field); + + /*! + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field); + + /*! + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + + /*! + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + + + /*! + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field); + + /*! + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field); + + /*! + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + + /*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + + + /*! + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field); + + /*! + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field); + + /*! + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + + /*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + + + /*! + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field); + + /*! + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field); + + /*! + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + + /*! + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + + + /*! + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field); + + /*! + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field); + + /*! + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + + /*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + + + /*! + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field); + + /*! + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field); + + /*! + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + + /*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + + + /*! + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field); + + /*! + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field); + + /*! + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + + /*! + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + + /*! * @brief This function copies the value in member array_char_field * @param _array_char_field New value to be copied in member array_char_field @@ -3599,6 +4424,21 @@ class KeyedCompleteTestType Color m_enum_field{::RED}; Material m_enum2_field{::WOOD}; StructType m_struct_field; + eprosima::fastcdr::optional m_char_opt_field; + eprosima::fastcdr::optional m_uint8_opt_field; + eprosima::fastcdr::optional m_int16_opt_field; + eprosima::fastcdr::optional m_uint16_opt_field; + eprosima::fastcdr::optional m_int32_opt_field; + eprosima::fastcdr::optional m_uint32_opt_field; + eprosima::fastcdr::optional m_int64_opt_field; + eprosima::fastcdr::optional m_uint64_opt_field; + eprosima::fastcdr::optional m_float_opt_field; + eprosima::fastcdr::optional m_double_opt_field; + eprosima::fastcdr::optional m_bool_opt_field; + eprosima::fastcdr::optional m_string_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; diff --git a/fastdds_python/test/types/test_complete.i b/fastdds_python/test/types/test_complete.i index 79b3aa0e..df969478 100644 --- a/fastdds_python/test/types/test_complete.i +++ b/fastdds_python/test/types/test_complete.i @@ -46,10 +46,25 @@ #include %} +%import(module="fastdds") "fastcdr/xcdr/optional.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp" +%define %traits_penumn(Type...) + %fragment(SWIG_Traits_frag(Type),"header", + fragment="StdTraits") { +namespace swig { + template <> struct traits< Type > { + typedef value_category category; + static const char* type_name() { return #Type; } + }; +} +} +%enddef + +%traits_penumn(enum Color); +%traits_penumn(enum Material); //////////////////////////////////////////////////////// // Binding for class StructType //////////////////////////////////////////////////////// @@ -69,6 +84,7 @@ %rename("%s") StructType::char_field() const; + %ignore StructType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -78,6 +94,7 @@ %rename("%s") StructType::uint8_field() const; + %ignore StructType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -87,6 +104,7 @@ %rename("%s") StructType::int16_field() const; + %ignore StructType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -96,6 +114,7 @@ %rename("%s") StructType::uint16_field() const; + %ignore StructType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -105,6 +124,7 @@ %rename("%s") StructType::int32_field() const; + %ignore StructType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -114,6 +134,7 @@ %rename("%s") StructType::uint32_field() const; + %ignore StructType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -123,6 +144,7 @@ %rename("%s") StructType::int64_field() const; + %ignore StructType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -132,6 +154,7 @@ %rename("%s") StructType::uint64_field() const; + %ignore StructType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -141,6 +164,7 @@ %rename("%s") StructType::float_field() const; + %ignore StructType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -150,6 +174,7 @@ %rename("%s") StructType::double_field() const; + %ignore StructType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -159,6 +184,7 @@ %rename("%s") StructType::bool_field() const; + %ignore StructType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -168,6 +194,7 @@ %rename("%s") StructType::string_field() const; + %ignore StructType::enum_field(Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -177,6 +204,7 @@ %rename("%s") StructType::enum_field() const; + %ignore StructType::enum2_field(Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -186,6 +214,7 @@ %rename("%s") StructType::enum2_field() const; + %ignore StructType::included_module_struct(eprosima::test2::StructType2&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -232,6 +261,7 @@ %rename("%s") CompleteTestType::char_field() const; + %ignore CompleteTestType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -241,6 +271,7 @@ %rename("%s") CompleteTestType::uint8_field() const; + %ignore CompleteTestType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -250,6 +281,7 @@ %rename("%s") CompleteTestType::int16_field() const; + %ignore CompleteTestType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -259,6 +291,7 @@ %rename("%s") CompleteTestType::uint16_field() const; + %ignore CompleteTestType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -268,6 +301,7 @@ %rename("%s") CompleteTestType::int32_field() const; + %ignore CompleteTestType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -277,6 +311,7 @@ %rename("%s") CompleteTestType::uint32_field() const; + %ignore CompleteTestType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -286,6 +321,7 @@ %rename("%s") CompleteTestType::int64_field() const; + %ignore CompleteTestType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -295,6 +331,7 @@ %rename("%s") CompleteTestType::uint64_field() const; + %ignore CompleteTestType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -304,6 +341,7 @@ %rename("%s") CompleteTestType::float_field() const; + %ignore CompleteTestType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -313,6 +351,7 @@ %rename("%s") CompleteTestType::double_field() const; + %ignore CompleteTestType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -322,6 +361,7 @@ %rename("%s") CompleteTestType::bool_field() const; + %ignore CompleteTestType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -331,6 +371,7 @@ %rename("%s") CompleteTestType::string_field() const; + %ignore CompleteTestType::enum_field(Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -340,6 +381,7 @@ %rename("%s") CompleteTestType::enum_field() const; + %ignore CompleteTestType::enum2_field(Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -349,6 +391,7 @@ %rename("%s") CompleteTestType::enum2_field() const; + %ignore CompleteTestType::struct_field(StructType&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -358,6 +401,352 @@ %rename("%s") CompleteTestType::struct_field() const; + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(charOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + char get_value() const { + return $self->value(); + } + + void set_value(const char& value) { + *$self = value; + } +} + +%ignore CompleteTestType::char_opt_field(char&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::char_opt_field(); +%rename("%s") CompleteTestType::char_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint8_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint8_t get_value() const { + return $self->value(); + } + + void set_value(const uint8_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::uint8_opt_field(uint8_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::uint8_opt_field(); +%rename("%s") CompleteTestType::uint8_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int16_t get_value() const { + return $self->value(); + } + + void set_value(const int16_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::int16_opt_field(int16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::int16_opt_field(); +%rename("%s") CompleteTestType::int16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint16_t get_value() const { + return $self->value(); + } + + void set_value(const uint16_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::uint16_opt_field(uint16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::uint16_opt_field(); +%rename("%s") CompleteTestType::uint16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int32_t get_value() const { + return $self->value(); + } + + void set_value(const int32_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::int32_opt_field(int32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::int32_opt_field(); +%rename("%s") CompleteTestType::int32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint32_t get_value() const { + return $self->value(); + } + + void set_value(const uint32_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::uint32_opt_field(uint32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::uint32_opt_field(); +%rename("%s") CompleteTestType::uint32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int64_t get_value() const { + return $self->value(); + } + + void set_value(const int64_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::int64_opt_field(int64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::int64_opt_field(); +%rename("%s") CompleteTestType::int64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint64_t get_value() const { + return $self->value(); + } + + void set_value(const uint64_t& value) { + *$self = value; + } +} + +%ignore CompleteTestType::uint64_opt_field(uint64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::uint64_opt_field(); +%rename("%s") CompleteTestType::uint64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(floatOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + float get_value() const { + return $self->value(); + } + + void set_value(const float& value) { + *$self = value; + } +} + +%ignore CompleteTestType::float_opt_field(float&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::float_opt_field(); +%rename("%s") CompleteTestType::float_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(doubleOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + double get_value() const { + return $self->value(); + } + + void set_value(const double& value) { + *$self = value; + } +} + +%ignore CompleteTestType::double_opt_field(double&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::double_opt_field(); +%rename("%s") CompleteTestType::double_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(boolOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + bool get_value() const { + return $self->value(); + } + + void set_value(const bool& value) { + *$self = value; + } +} + +%ignore CompleteTestType::bool_opt_field(bool&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::bool_opt_field(); +%rename("%s") CompleteTestType::bool_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(stringOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + std::string get_value() const { + return $self->value(); + } + + void set_value(const std::string& value) { + *$self = value; + } +} + +%ignore CompleteTestType::string_opt_field(std::string&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::string_opt_field(); +%rename("%s") CompleteTestType::string_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(ColorOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + Color get_value() const { + return $self->value(); + } + + void set_value(const Color& value) { + *$self = value; + } +} + +%ignore CompleteTestType::enum_opt_field(Color&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::enum_opt_field(); +%rename("%s") CompleteTestType::enum_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(MaterialOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + Material get_value() const { + return $self->value(); + } + + void set_value(const Material& value) { + *$self = value; + } +} + +%ignore CompleteTestType::enum2_opt_field(Material&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::enum2_opt_field(); +%rename("%s") CompleteTestType::enum2_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(StructTypeOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + StructType get_value() const { + return $self->value(); + } + + void set_value(const StructType& value) { + *$self = value; + } +} + +%ignore CompleteTestType::struct_opt_field(StructType&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore CompleteTestType::struct_opt_field(); +%rename("%s") CompleteTestType::struct_opt_field() const; + + + %ignore CompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -373,6 +762,7 @@ } } + %ignore CompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -388,6 +778,7 @@ } } + %ignore CompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -403,6 +794,7 @@ } } + %ignore CompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -418,6 +810,7 @@ } } + %ignore CompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -433,6 +826,7 @@ } } + %ignore CompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -448,6 +842,7 @@ } } + %ignore CompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -463,6 +858,7 @@ } } + %ignore CompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -478,6 +874,7 @@ } } + %ignore CompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -493,6 +890,7 @@ } } + %ignore CompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -508,6 +906,7 @@ } } + %ignore CompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -523,36 +922,39 @@ } } + %ignore CompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { - const Color* get_buffer() const + const enum Color* get_buffer() const { return self->data(); } } + %ignore CompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { - const Material* get_buffer() const + const enum Material* get_buffer() const { return self->data(); } } + %ignore CompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -561,6 +963,7 @@ %ignore CompleteTestType::array_struct_field() const; %template(StructType_3_array) std::array; + %ignore CompleteTestType::bounded_sequence_char_field(std::vector&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -575,9 +978,8 @@ } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_uint8_field(std::vector&&); @@ -593,9 +995,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_int16_field(std::vector&&); @@ -611,9 +1012,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_uint16_field(std::vector&&); @@ -629,9 +1029,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_int32_field(std::vector&&); @@ -647,9 +1046,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_uint32_field(std::vector&&); @@ -665,9 +1063,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_int64_field(std::vector&&); @@ -683,9 +1080,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_uint64_field(std::vector&&); @@ -701,9 +1097,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_float_field(std::vector&&); @@ -719,9 +1114,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_double_field(std::vector&&); @@ -737,9 +1131,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_bool_field(std::vector&&); @@ -747,9 +1140,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::bounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_enum_field(std::vector&&); @@ -765,9 +1157,8 @@ bool_vector } } -%template( -Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_enum2_field(std::vector&&); @@ -783,9 +1174,8 @@ Color_vector } } -%template( -Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore CompleteTestType::bounded_sequence_struct_field(std::vector&&); @@ -793,9 +1183,8 @@ Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::bounded_sequence_struct_field() const; -%template( -StructType_vector -) std::vector; +%template(StructType_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_char_field(std::vector&&); @@ -811,9 +1200,8 @@ StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_uint8_field(std::vector&&); @@ -829,9 +1217,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_int16_field(std::vector&&); @@ -847,9 +1234,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_uint16_field(std::vector&&); @@ -865,9 +1251,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_int32_field(std::vector&&); @@ -883,9 +1268,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_uint32_field(std::vector&&); @@ -901,9 +1285,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_int64_field(std::vector&&); @@ -919,9 +1302,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_uint64_field(std::vector&&); @@ -937,9 +1319,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_float_field(std::vector&&); @@ -955,9 +1336,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_double_field(std::vector&&); @@ -973,9 +1353,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_bool_field(std::vector&&); @@ -983,9 +1362,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::unbounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_enum_field(std::vector&&); @@ -1001,9 +1379,8 @@ bool_vector } } -%template( -Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_enum2_field(std::vector&&); @@ -1019,9 +1396,8 @@ Color_vector } } -%template( -Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore CompleteTestType::unbounded_sequence_struct_field(std::vector&&); @@ -1029,9 +1405,7 @@ Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::unbounded_sequence_struct_field() const; -%template( -StructType_vector -) std::vector; +%template(StructType_vector) std::vector; %template(_CompleteTestTypeSeq) eprosima::fastdds::dds::LoanableTypedCollection; @@ -1068,6 +1442,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::id() const; + %ignore KeyedCompleteTestType::char_field(char&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1077,6 +1452,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::char_field() const; + %ignore KeyedCompleteTestType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1086,6 +1462,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::uint8_field() const; + %ignore KeyedCompleteTestType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1095,6 +1472,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::int16_field() const; + %ignore KeyedCompleteTestType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1104,6 +1482,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::uint16_field() const; + %ignore KeyedCompleteTestType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1113,6 +1492,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::int32_field() const; + %ignore KeyedCompleteTestType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1122,6 +1502,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::uint32_field() const; + %ignore KeyedCompleteTestType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1131,6 +1512,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::int64_field() const; + %ignore KeyedCompleteTestType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1140,6 +1522,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::uint64_field() const; + %ignore KeyedCompleteTestType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1149,6 +1532,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::float_field() const; + %ignore KeyedCompleteTestType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1158,6 +1542,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::double_field() const; + %ignore KeyedCompleteTestType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1167,6 +1552,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::bool_field() const; + %ignore KeyedCompleteTestType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1176,6 +1562,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::string_field() const; + %ignore KeyedCompleteTestType::enum_field(Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1185,6 +1572,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::enum_field() const; + %ignore KeyedCompleteTestType::enum2_field(Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1194,6 +1582,7 @@ StructType_vector %rename("%s") KeyedCompleteTestType::enum2_field() const; + %ignore KeyedCompleteTestType::struct_field(StructType&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1203,6 +1592,352 @@ StructType_vector %rename("%s") KeyedCompleteTestType::struct_field() const; + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(charOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + char get_value() const { + return $self->value(); + } + + void set_value(const char& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::char_opt_field(char&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::char_opt_field(); +%rename("%s") KeyedCompleteTestType::char_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint8_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint8_t get_value() const { + return $self->value(); + } + + void set_value(const uint8_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::uint8_opt_field(uint8_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::uint8_opt_field(); +%rename("%s") KeyedCompleteTestType::uint8_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int16_t get_value() const { + return $self->value(); + } + + void set_value(const int16_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::int16_opt_field(int16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::int16_opt_field(); +%rename("%s") KeyedCompleteTestType::int16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint16_t get_value() const { + return $self->value(); + } + + void set_value(const uint16_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::uint16_opt_field(uint16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::uint16_opt_field(); +%rename("%s") KeyedCompleteTestType::uint16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int32_t get_value() const { + return $self->value(); + } + + void set_value(const int32_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::int32_opt_field(int32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::int32_opt_field(); +%rename("%s") KeyedCompleteTestType::int32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint32_t get_value() const { + return $self->value(); + } + + void set_value(const uint32_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::uint32_opt_field(uint32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::uint32_opt_field(); +%rename("%s") KeyedCompleteTestType::uint32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int64_t get_value() const { + return $self->value(); + } + + void set_value(const int64_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::int64_opt_field(int64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::int64_opt_field(); +%rename("%s") KeyedCompleteTestType::int64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint64_t get_value() const { + return $self->value(); + } + + void set_value(const uint64_t& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::uint64_opt_field(uint64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::uint64_opt_field(); +%rename("%s") KeyedCompleteTestType::uint64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(floatOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + float get_value() const { + return $self->value(); + } + + void set_value(const float& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::float_opt_field(float&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::float_opt_field(); +%rename("%s") KeyedCompleteTestType::float_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(doubleOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + double get_value() const { + return $self->value(); + } + + void set_value(const double& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::double_opt_field(double&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::double_opt_field(); +%rename("%s") KeyedCompleteTestType::double_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(boolOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + bool get_value() const { + return $self->value(); + } + + void set_value(const bool& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::bool_opt_field(bool&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::bool_opt_field(); +%rename("%s") KeyedCompleteTestType::bool_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(stringOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + std::string get_value() const { + return $self->value(); + } + + void set_value(const std::string& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::string_opt_field(std::string&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::string_opt_field(); +%rename("%s") KeyedCompleteTestType::string_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(ColorOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + Color get_value() const { + return $self->value(); + } + + void set_value(const Color& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::enum_opt_field(Color&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::enum_opt_field(); +%rename("%s") KeyedCompleteTestType::enum_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(MaterialOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + Material get_value() const { + return $self->value(); + } + + void set_value(const Material& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::enum2_opt_field(Material&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::enum2_opt_field(); +%rename("%s") KeyedCompleteTestType::enum2_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(StructTypeOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + StructType get_value() const { + return $self->value(); + } + + void set_value(const StructType& value) { + *$self = value; + } +} + +%ignore KeyedCompleteTestType::struct_opt_field(StructType&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore KeyedCompleteTestType::struct_opt_field(); +%rename("%s") KeyedCompleteTestType::struct_opt_field() const; + + + %ignore KeyedCompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1218,6 +1953,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1233,6 +1969,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1248,6 +1985,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1263,6 +2001,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1278,6 +2017,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1293,6 +2033,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1308,6 +2049,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1323,6 +2065,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1338,6 +2081,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1353,6 +2097,7 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1368,36 +2113,39 @@ StructType_vector } } + %ignore KeyedCompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { - const Color* get_buffer() const + const enum Color* get_buffer() const { return self->data(); } } + %ignore KeyedCompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { - const Material* get_buffer() const + const enum Material* get_buffer() const { return self->data(); } } + %ignore KeyedCompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1406,6 +2154,7 @@ StructType_vector %ignore KeyedCompleteTestType::array_struct_field() const; %template(StructType_3_array) std::array; + %ignore KeyedCompleteTestType::bounded_sequence_char_field(std::vector&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1420,9 +2169,8 @@ StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_uint8_field(std::vector&&); @@ -1438,9 +2186,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_int16_field(std::vector&&); @@ -1456,9 +2203,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_uint16_field(std::vector&&); @@ -1474,9 +2220,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_int32_field(std::vector&&); @@ -1492,9 +2237,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_uint32_field(std::vector&&); @@ -1510,9 +2254,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_int64_field(std::vector&&); @@ -1528,9 +2271,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_uint64_field(std::vector&&); @@ -1546,9 +2288,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_float_field(std::vector&&); @@ -1564,9 +2305,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_double_field(std::vector&&); @@ -1582,9 +2322,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_bool_field(std::vector&&); @@ -1592,9 +2331,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::bounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_enum_field(std::vector&&); @@ -1610,9 +2348,8 @@ bool_vector } } -%template( -Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_enum2_field(std::vector&&); @@ -1628,9 +2365,8 @@ Color_vector } } -%template( -Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore KeyedCompleteTestType::bounded_sequence_struct_field(std::vector&&); @@ -1638,9 +2374,8 @@ Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::bounded_sequence_struct_field() const; -%template( -StructType_vector -) std::vector; +%template(StructType_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_char_field(std::vector&&); @@ -1656,9 +2391,8 @@ StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_uint8_field(std::vector&&); @@ -1674,9 +2408,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_int16_field(std::vector&&); @@ -1692,9 +2425,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_uint16_field(std::vector&&); @@ -1710,9 +2442,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_int32_field(std::vector&&); @@ -1728,9 +2459,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_uint32_field(std::vector&&); @@ -1746,9 +2476,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_int64_field(std::vector&&); @@ -1764,9 +2493,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_uint64_field(std::vector&&); @@ -1782,9 +2510,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_float_field(std::vector&&); @@ -1800,9 +2527,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_double_field(std::vector&&); @@ -1818,9 +2544,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_bool_field(std::vector&&); @@ -1828,9 +2553,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::unbounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_enum_field(std::vector&&); @@ -1846,9 +2570,8 @@ bool_vector } } -%template( -Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_enum2_field(std::vector&&); @@ -1864,9 +2587,8 @@ Color_vector } } -%template( -Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore KeyedCompleteTestType::unbounded_sequence_struct_field(std::vector&&); @@ -1874,9 +2596,7 @@ Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::unbounded_sequence_struct_field() const; -%template( -StructType_vector -) std::vector; +%template(StructType_vector) std::vector; %template(_KeyedCompleteTestTypeSeq) eprosima::fastdds::dds::LoanableTypedCollection; diff --git a/fastdds_python/test/types/test_complete.idl b/fastdds_python/test/types/test_complete.idl index 3fb6c161..2089a597 100644 --- a/fastdds_python/test/types/test_complete.idl +++ b/fastdds_python/test/types/test_complete.idl @@ -61,6 +61,24 @@ struct CompleteTestType Material enum2_field; StructType struct_field; + // Optional fields + @optional char char_opt_field; + @optional octet uint8_opt_field; + @optional short int16_opt_field; + @optional unsigned short uint16_opt_field; + @optional long int32_opt_field; + @optional unsigned long uint32_opt_field; + @optional long long int64_opt_field; + @optional unsigned long long uint64_opt_field; + @optional float float_opt_field; + @optional double double_opt_field; + //@optional long double long_double_opt_field; + @optional boolean bool_opt_field; + @optional string string_opt_field; + @optional Color enum_opt_field; + @optional Material enum2_opt_field; + @optional StructType struct_opt_field; + // Array fields char array_char_field[max_array_size]; octet array_uint8_field[max_array_size]; @@ -139,6 +157,24 @@ struct KeyedCompleteTestType Material enum2_field; StructType struct_field; + // Optional fields + @optional char char_opt_field; + @optional octet uint8_opt_field; + @optional short int16_opt_field; + @optional unsigned short uint16_opt_field; + @optional long int32_opt_field; + @optional unsigned long uint32_opt_field; + @optional long long int64_opt_field; + @optional unsigned long long uint64_opt_field; + @optional float float_opt_field; + @optional double double_opt_field; + // @optional long double long_double_opt_field; + @optional boolean bool_opt_field; + @optional string string_opt_field; + @optional Color enum_opt_field; + @optional Material enum2_opt_field; + @optional StructType struct_opt_field; + // Array fields char array_char_field[max_array_size]; octet array_uint8_field[max_array_size]; diff --git a/fastdds_python/test/types/test_completeCdrAux.hpp b/fastdds_python/test/types/test_completeCdrAux.hpp index 92b33d9d..43ac38ac 100644 --- a/fastdds_python/test/types/test_completeCdrAux.hpp +++ b/fastdds_python/test/types/test_completeCdrAux.hpp @@ -24,7 +24,7 @@ #include "test_complete.h" -constexpr uint32_t CompleteTestType_max_cdr_typesize {77504UL}; +constexpr uint32_t CompleteTestType_max_cdr_typesize {78608UL}; constexpr uint32_t CompleteTestType_max_key_cdr_typesize {0UL}; @@ -34,7 +34,7 @@ constexpr uint32_t StructType_max_key_cdr_typesize {0UL}; -constexpr uint32_t KeyedCompleteTestType_max_cdr_typesize {77504UL}; +constexpr uint32_t KeyedCompleteTestType_max_cdr_typesize {78608UL}; constexpr uint32_t KeyedCompleteTestType_max_key_cdr_typesize {4UL}; diff --git a/fastdds_python/test/types/test_completeCdrAux.ipp b/fastdds_python/test/types/test_completeCdrAux.ipp index 482c4a0e..ad4fd971 100644 --- a/fastdds_python/test/types/test_completeCdrAux.ipp +++ b/fastdds_python/test/types/test_completeCdrAux.ipp @@ -287,129 +287,174 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(15), - data.array_char_field(), current_alignment); + data.char_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(16), - data.array_uint8_field(), current_alignment); + data.uint8_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(17), - data.array_int16_field(), current_alignment); + data.int16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(18), - data.array_uint16_field(), current_alignment); + data.uint16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(19), - data.array_int32_field(), current_alignment); + data.int32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(20), - data.array_uint32_field(), current_alignment); + data.uint32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(21), - data.array_int64_field(), current_alignment); + data.int64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(22), - data.array_uint64_field(), current_alignment); + data.uint64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(23), - data.array_float_field(), current_alignment); + data.float_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(24), - data.array_double_field(), current_alignment); + data.double_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(25), - data.array_bool_field(), current_alignment); + data.bool_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(26), - data.array_enum_field(), current_alignment); + data.string_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(27), - data.array_enum2_field(), current_alignment); + data.enum_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(28), - data.array_struct_field(), current_alignment); + data.enum2_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(29), - data.bounded_sequence_char_field(), current_alignment); + data.struct_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(30), - data.bounded_sequence_uint8_field(), current_alignment); + data.array_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(31), - data.bounded_sequence_int16_field(), current_alignment); + data.array_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(32), - data.bounded_sequence_uint16_field(), current_alignment); + data.array_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(33), - data.bounded_sequence_int32_field(), current_alignment); + data.array_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(34), - data.bounded_sequence_uint32_field(), current_alignment); + data.array_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(35), - data.bounded_sequence_int64_field(), current_alignment); + data.array_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(36), - data.bounded_sequence_uint64_field(), current_alignment); + data.array_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(37), - data.bounded_sequence_float_field(), current_alignment); + data.array_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(38), - data.bounded_sequence_double_field(), current_alignment); + data.array_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(39), - data.bounded_sequence_bool_field(), current_alignment); + data.array_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(40), - data.bounded_sequence_enum_field(), current_alignment); + data.array_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(41), - data.bounded_sequence_enum2_field(), current_alignment); + data.array_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(42), - data.bounded_sequence_struct_field(), current_alignment); + data.array_enum2_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(43), - data.unbounded_sequence_char_field(), current_alignment); + data.array_struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(44), - data.unbounded_sequence_uint8_field(), current_alignment); + data.bounded_sequence_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(45), - data.unbounded_sequence_int16_field(), current_alignment); + data.bounded_sequence_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(46), - data.unbounded_sequence_uint16_field(), current_alignment); + data.bounded_sequence_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(47), - data.unbounded_sequence_int32_field(), current_alignment); + data.bounded_sequence_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(48), - data.unbounded_sequence_uint32_field(), current_alignment); + data.bounded_sequence_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(49), - data.unbounded_sequence_int64_field(), current_alignment); + data.bounded_sequence_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(50), - data.unbounded_sequence_uint64_field(), current_alignment); + data.bounded_sequence_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(51), - data.unbounded_sequence_float_field(), current_alignment); + data.bounded_sequence_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(52), - data.unbounded_sequence_double_field(), current_alignment); + data.bounded_sequence_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(53), - data.unbounded_sequence_bool_field(), current_alignment); + data.bounded_sequence_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(54), - data.unbounded_sequence_enum_field(), current_alignment); + data.bounded_sequence_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(55), - data.unbounded_sequence_enum2_field(), current_alignment); + data.bounded_sequence_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(56), + data.bounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(57), + data.bounded_sequence_struct_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(58), + data.unbounded_sequence_char_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(59), + data.unbounded_sequence_uint8_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(60), + data.unbounded_sequence_int16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(61), + data.unbounded_sequence_uint16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(62), + data.unbounded_sequence_int32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(63), + data.unbounded_sequence_uint32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(64), + data.unbounded_sequence_int64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(65), + data.unbounded_sequence_uint64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(66), + data.unbounded_sequence_float_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(67), + data.unbounded_sequence_double_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(68), + data.unbounded_sequence_bool_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(69), + data.unbounded_sequence_enum_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(70), + data.unbounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(71), data.unbounded_sequence_struct_field(), current_alignment); @@ -445,48 +490,63 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(12) << data.enum_field() << eprosima::fastcdr::MemberId(13) << data.enum2_field() << eprosima::fastcdr::MemberId(14) << data.struct_field() - << eprosima::fastcdr::MemberId(15) << data.array_char_field() - << eprosima::fastcdr::MemberId(16) << data.array_uint8_field() - << eprosima::fastcdr::MemberId(17) << data.array_int16_field() - << eprosima::fastcdr::MemberId(18) << data.array_uint16_field() - << eprosima::fastcdr::MemberId(19) << data.array_int32_field() - << eprosima::fastcdr::MemberId(20) << data.array_uint32_field() - << eprosima::fastcdr::MemberId(21) << data.array_int64_field() - << eprosima::fastcdr::MemberId(22) << data.array_uint64_field() - << eprosima::fastcdr::MemberId(23) << data.array_float_field() - << eprosima::fastcdr::MemberId(24) << data.array_double_field() - << eprosima::fastcdr::MemberId(25) << data.array_bool_field() - << eprosima::fastcdr::MemberId(26) << data.array_enum_field() - << eprosima::fastcdr::MemberId(27) << data.array_enum2_field() - << eprosima::fastcdr::MemberId(28) << data.array_struct_field() - << eprosima::fastcdr::MemberId(29) << data.bounded_sequence_char_field() - << eprosima::fastcdr::MemberId(30) << data.bounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(31) << data.bounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(32) << data.bounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(33) << data.bounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(34) << data.bounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(35) << data.bounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(36) << data.bounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(37) << data.bounded_sequence_float_field() - << eprosima::fastcdr::MemberId(38) << data.bounded_sequence_double_field() - << eprosima::fastcdr::MemberId(39) << data.bounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(40) << data.bounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(41) << data.bounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(42) << data.bounded_sequence_struct_field() - << eprosima::fastcdr::MemberId(43) << data.unbounded_sequence_char_field() - << eprosima::fastcdr::MemberId(44) << data.unbounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(45) << data.unbounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(46) << data.unbounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(47) << data.unbounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(48) << data.unbounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(49) << data.unbounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(50) << data.unbounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(51) << data.unbounded_sequence_float_field() - << eprosima::fastcdr::MemberId(52) << data.unbounded_sequence_double_field() - << eprosima::fastcdr::MemberId(53) << data.unbounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(54) << data.unbounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(55) << data.unbounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(56) << data.unbounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(15) << data.char_opt_field() + << eprosima::fastcdr::MemberId(16) << data.uint8_opt_field() + << eprosima::fastcdr::MemberId(17) << data.int16_opt_field() + << eprosima::fastcdr::MemberId(18) << data.uint16_opt_field() + << eprosima::fastcdr::MemberId(19) << data.int32_opt_field() + << eprosima::fastcdr::MemberId(20) << data.uint32_opt_field() + << eprosima::fastcdr::MemberId(21) << data.int64_opt_field() + << eprosima::fastcdr::MemberId(22) << data.uint64_opt_field() + << eprosima::fastcdr::MemberId(23) << data.float_opt_field() + << eprosima::fastcdr::MemberId(24) << data.double_opt_field() + << eprosima::fastcdr::MemberId(25) << data.bool_opt_field() + << eprosima::fastcdr::MemberId(26) << data.string_opt_field() + << eprosima::fastcdr::MemberId(27) << data.enum_opt_field() + << eprosima::fastcdr::MemberId(28) << data.enum2_opt_field() + << eprosima::fastcdr::MemberId(29) << data.struct_opt_field() + << eprosima::fastcdr::MemberId(30) << data.array_char_field() + << eprosima::fastcdr::MemberId(31) << data.array_uint8_field() + << eprosima::fastcdr::MemberId(32) << data.array_int16_field() + << eprosima::fastcdr::MemberId(33) << data.array_uint16_field() + << eprosima::fastcdr::MemberId(34) << data.array_int32_field() + << eprosima::fastcdr::MemberId(35) << data.array_uint32_field() + << eprosima::fastcdr::MemberId(36) << data.array_int64_field() + << eprosima::fastcdr::MemberId(37) << data.array_uint64_field() + << eprosima::fastcdr::MemberId(38) << data.array_float_field() + << eprosima::fastcdr::MemberId(39) << data.array_double_field() + << eprosima::fastcdr::MemberId(40) << data.array_bool_field() + << eprosima::fastcdr::MemberId(41) << data.array_enum_field() + << eprosima::fastcdr::MemberId(42) << data.array_enum2_field() + << eprosima::fastcdr::MemberId(43) << data.array_struct_field() + << eprosima::fastcdr::MemberId(44) << data.bounded_sequence_char_field() + << eprosima::fastcdr::MemberId(45) << data.bounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(46) << data.bounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(47) << data.bounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(48) << data.bounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(49) << data.bounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(50) << data.bounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(51) << data.bounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(52) << data.bounded_sequence_float_field() + << eprosima::fastcdr::MemberId(53) << data.bounded_sequence_double_field() + << eprosima::fastcdr::MemberId(54) << data.bounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(55) << data.bounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(56) << data.bounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(57) << data.bounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(58) << data.unbounded_sequence_char_field() + << eprosima::fastcdr::MemberId(59) << data.unbounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(60) << data.unbounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(61) << data.unbounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(62) << data.unbounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(63) << data.unbounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(64) << data.unbounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(65) << data.unbounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(66) << data.unbounded_sequence_float_field() + << eprosima::fastcdr::MemberId(67) << data.unbounded_sequence_double_field() + << eprosima::fastcdr::MemberId(68) << data.unbounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(69) << data.unbounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(70) << data.unbounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(71) << data.unbounded_sequence_struct_field() ; scdr.end_serialize_type(current_state); @@ -566,170 +626,230 @@ eProsima_user_DllExport void deserialize( break; case 15: - dcdr >> data.array_char_field(); + dcdr >> data.char_opt_field(); break; case 16: - dcdr >> data.array_uint8_field(); + dcdr >> data.uint8_opt_field(); break; case 17: - dcdr >> data.array_int16_field(); + dcdr >> data.int16_opt_field(); break; case 18: - dcdr >> data.array_uint16_field(); + dcdr >> data.uint16_opt_field(); break; case 19: - dcdr >> data.array_int32_field(); + dcdr >> data.int32_opt_field(); break; case 20: - dcdr >> data.array_uint32_field(); + dcdr >> data.uint32_opt_field(); break; case 21: - dcdr >> data.array_int64_field(); + dcdr >> data.int64_opt_field(); break; case 22: - dcdr >> data.array_uint64_field(); + dcdr >> data.uint64_opt_field(); break; case 23: - dcdr >> data.array_float_field(); + dcdr >> data.float_opt_field(); break; case 24: - dcdr >> data.array_double_field(); + dcdr >> data.double_opt_field(); break; case 25: - dcdr >> data.array_bool_field(); + dcdr >> data.bool_opt_field(); break; case 26: - dcdr >> data.array_enum_field(); + dcdr >> data.string_opt_field(); break; case 27: - dcdr >> data.array_enum2_field(); + dcdr >> data.enum_opt_field(); break; case 28: - dcdr >> data.array_struct_field(); + dcdr >> data.enum2_opt_field(); break; case 29: - dcdr >> data.bounded_sequence_char_field(); + dcdr >> data.struct_opt_field(); break; case 30: - dcdr >> data.bounded_sequence_uint8_field(); + dcdr >> data.array_char_field(); break; case 31: - dcdr >> data.bounded_sequence_int16_field(); + dcdr >> data.array_uint8_field(); break; case 32: - dcdr >> data.bounded_sequence_uint16_field(); + dcdr >> data.array_int16_field(); break; case 33: - dcdr >> data.bounded_sequence_int32_field(); + dcdr >> data.array_uint16_field(); break; case 34: - dcdr >> data.bounded_sequence_uint32_field(); + dcdr >> data.array_int32_field(); break; case 35: - dcdr >> data.bounded_sequence_int64_field(); + dcdr >> data.array_uint32_field(); break; case 36: - dcdr >> data.bounded_sequence_uint64_field(); + dcdr >> data.array_int64_field(); break; case 37: - dcdr >> data.bounded_sequence_float_field(); + dcdr >> data.array_uint64_field(); break; case 38: - dcdr >> data.bounded_sequence_double_field(); + dcdr >> data.array_float_field(); break; case 39: - dcdr >> data.bounded_sequence_bool_field(); + dcdr >> data.array_double_field(); break; case 40: - dcdr >> data.bounded_sequence_enum_field(); + dcdr >> data.array_bool_field(); break; case 41: - dcdr >> data.bounded_sequence_enum2_field(); + dcdr >> data.array_enum_field(); break; case 42: - dcdr >> data.bounded_sequence_struct_field(); + dcdr >> data.array_enum2_field(); break; case 43: - dcdr >> data.unbounded_sequence_char_field(); + dcdr >> data.array_struct_field(); break; case 44: - dcdr >> data.unbounded_sequence_uint8_field(); + dcdr >> data.bounded_sequence_char_field(); break; case 45: - dcdr >> data.unbounded_sequence_int16_field(); + dcdr >> data.bounded_sequence_uint8_field(); break; case 46: - dcdr >> data.unbounded_sequence_uint16_field(); + dcdr >> data.bounded_sequence_int16_field(); break; case 47: - dcdr >> data.unbounded_sequence_int32_field(); + dcdr >> data.bounded_sequence_uint16_field(); break; case 48: - dcdr >> data.unbounded_sequence_uint32_field(); + dcdr >> data.bounded_sequence_int32_field(); break; case 49: - dcdr >> data.unbounded_sequence_int64_field(); + dcdr >> data.bounded_sequence_uint32_field(); break; case 50: - dcdr >> data.unbounded_sequence_uint64_field(); + dcdr >> data.bounded_sequence_int64_field(); break; case 51: - dcdr >> data.unbounded_sequence_float_field(); + dcdr >> data.bounded_sequence_uint64_field(); break; case 52: - dcdr >> data.unbounded_sequence_double_field(); + dcdr >> data.bounded_sequence_float_field(); break; case 53: - dcdr >> data.unbounded_sequence_bool_field(); + dcdr >> data.bounded_sequence_double_field(); break; case 54: - dcdr >> data.unbounded_sequence_enum_field(); + dcdr >> data.bounded_sequence_bool_field(); break; case 55: - dcdr >> data.unbounded_sequence_enum2_field(); + dcdr >> data.bounded_sequence_enum_field(); break; case 56: + dcdr >> data.bounded_sequence_enum2_field(); + break; + + case 57: + dcdr >> data.bounded_sequence_struct_field(); + break; + + case 58: + dcdr >> data.unbounded_sequence_char_field(); + break; + + case 59: + dcdr >> data.unbounded_sequence_uint8_field(); + break; + + case 60: + dcdr >> data.unbounded_sequence_int16_field(); + break; + + case 61: + dcdr >> data.unbounded_sequence_uint16_field(); + break; + + case 62: + dcdr >> data.unbounded_sequence_int32_field(); + break; + + case 63: + dcdr >> data.unbounded_sequence_uint32_field(); + break; + + case 64: + dcdr >> data.unbounded_sequence_int64_field(); + break; + + case 65: + dcdr >> data.unbounded_sequence_uint64_field(); + break; + + case 66: + dcdr >> data.unbounded_sequence_float_field(); + break; + + case 67: + dcdr >> data.unbounded_sequence_double_field(); + break; + + case 68: + dcdr >> data.unbounded_sequence_bool_field(); + break; + + case 69: + dcdr >> data.unbounded_sequence_enum_field(); + break; + + case 70: + dcdr >> data.unbounded_sequence_enum2_field(); + break; + + case 71: dcdr >> data.unbounded_sequence_struct_field(); break; @@ -815,129 +935,174 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(16), - data.array_char_field(), current_alignment); + data.char_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(17), - data.array_uint8_field(), current_alignment); + data.uint8_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(18), - data.array_int16_field(), current_alignment); + data.int16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(19), - data.array_uint16_field(), current_alignment); + data.uint16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(20), - data.array_int32_field(), current_alignment); + data.int32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(21), - data.array_uint32_field(), current_alignment); + data.uint32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(22), - data.array_int64_field(), current_alignment); + data.int64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(23), - data.array_uint64_field(), current_alignment); + data.uint64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(24), - data.array_float_field(), current_alignment); + data.float_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(25), - data.array_double_field(), current_alignment); + data.double_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(26), - data.array_bool_field(), current_alignment); + data.bool_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(27), - data.array_enum_field(), current_alignment); + data.string_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(28), - data.array_enum2_field(), current_alignment); + data.enum_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(29), - data.array_struct_field(), current_alignment); + data.enum2_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(30), - data.bounded_sequence_char_field(), current_alignment); + data.struct_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(31), - data.bounded_sequence_uint8_field(), current_alignment); + data.array_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(32), - data.bounded_sequence_int16_field(), current_alignment); + data.array_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(33), - data.bounded_sequence_uint16_field(), current_alignment); + data.array_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(34), - data.bounded_sequence_int32_field(), current_alignment); + data.array_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(35), - data.bounded_sequence_uint32_field(), current_alignment); + data.array_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(36), - data.bounded_sequence_int64_field(), current_alignment); + data.array_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(37), - data.bounded_sequence_uint64_field(), current_alignment); + data.array_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(38), - data.bounded_sequence_float_field(), current_alignment); + data.array_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(39), - data.bounded_sequence_double_field(), current_alignment); + data.array_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(40), - data.bounded_sequence_bool_field(), current_alignment); + data.array_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(41), - data.bounded_sequence_enum_field(), current_alignment); + data.array_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(42), - data.bounded_sequence_enum2_field(), current_alignment); + data.array_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(43), - data.bounded_sequence_struct_field(), current_alignment); + data.array_enum2_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(44), - data.unbounded_sequence_char_field(), current_alignment); + data.array_struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(45), - data.unbounded_sequence_uint8_field(), current_alignment); + data.bounded_sequence_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(46), - data.unbounded_sequence_int16_field(), current_alignment); + data.bounded_sequence_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(47), - data.unbounded_sequence_uint16_field(), current_alignment); + data.bounded_sequence_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(48), - data.unbounded_sequence_int32_field(), current_alignment); + data.bounded_sequence_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(49), - data.unbounded_sequence_uint32_field(), current_alignment); + data.bounded_sequence_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(50), - data.unbounded_sequence_int64_field(), current_alignment); + data.bounded_sequence_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(51), - data.unbounded_sequence_uint64_field(), current_alignment); + data.bounded_sequence_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(52), - data.unbounded_sequence_float_field(), current_alignment); + data.bounded_sequence_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(53), - data.unbounded_sequence_double_field(), current_alignment); + data.bounded_sequence_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(54), - data.unbounded_sequence_bool_field(), current_alignment); + data.bounded_sequence_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(55), - data.unbounded_sequence_enum_field(), current_alignment); + data.bounded_sequence_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(56), - data.unbounded_sequence_enum2_field(), current_alignment); + data.bounded_sequence_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(57), + data.bounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(58), + data.bounded_sequence_struct_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(59), + data.unbounded_sequence_char_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(60), + data.unbounded_sequence_uint8_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(61), + data.unbounded_sequence_int16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(62), + data.unbounded_sequence_uint16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(63), + data.unbounded_sequence_int32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(64), + data.unbounded_sequence_uint32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(65), + data.unbounded_sequence_int64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(66), + data.unbounded_sequence_uint64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(67), + data.unbounded_sequence_float_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(68), + data.unbounded_sequence_double_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(69), + data.unbounded_sequence_bool_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(70), + data.unbounded_sequence_enum_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(71), + data.unbounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(72), data.unbounded_sequence_struct_field(), current_alignment); @@ -974,48 +1139,63 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(13) << data.enum_field() << eprosima::fastcdr::MemberId(14) << data.enum2_field() << eprosima::fastcdr::MemberId(15) << data.struct_field() - << eprosima::fastcdr::MemberId(16) << data.array_char_field() - << eprosima::fastcdr::MemberId(17) << data.array_uint8_field() - << eprosima::fastcdr::MemberId(18) << data.array_int16_field() - << eprosima::fastcdr::MemberId(19) << data.array_uint16_field() - << eprosima::fastcdr::MemberId(20) << data.array_int32_field() - << eprosima::fastcdr::MemberId(21) << data.array_uint32_field() - << eprosima::fastcdr::MemberId(22) << data.array_int64_field() - << eprosima::fastcdr::MemberId(23) << data.array_uint64_field() - << eprosima::fastcdr::MemberId(24) << data.array_float_field() - << eprosima::fastcdr::MemberId(25) << data.array_double_field() - << eprosima::fastcdr::MemberId(26) << data.array_bool_field() - << eprosima::fastcdr::MemberId(27) << data.array_enum_field() - << eprosima::fastcdr::MemberId(28) << data.array_enum2_field() - << eprosima::fastcdr::MemberId(29) << data.array_struct_field() - << eprosima::fastcdr::MemberId(30) << data.bounded_sequence_char_field() - << eprosima::fastcdr::MemberId(31) << data.bounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(32) << data.bounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(33) << data.bounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(34) << data.bounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(35) << data.bounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(36) << data.bounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(37) << data.bounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(38) << data.bounded_sequence_float_field() - << eprosima::fastcdr::MemberId(39) << data.bounded_sequence_double_field() - << eprosima::fastcdr::MemberId(40) << data.bounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(41) << data.bounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(42) << data.bounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(43) << data.bounded_sequence_struct_field() - << eprosima::fastcdr::MemberId(44) << data.unbounded_sequence_char_field() - << eprosima::fastcdr::MemberId(45) << data.unbounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(46) << data.unbounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(47) << data.unbounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(48) << data.unbounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(49) << data.unbounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(50) << data.unbounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(51) << data.unbounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(52) << data.unbounded_sequence_float_field() - << eprosima::fastcdr::MemberId(53) << data.unbounded_sequence_double_field() - << eprosima::fastcdr::MemberId(54) << data.unbounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(55) << data.unbounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(56) << data.unbounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(57) << data.unbounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(16) << data.char_opt_field() + << eprosima::fastcdr::MemberId(17) << data.uint8_opt_field() + << eprosima::fastcdr::MemberId(18) << data.int16_opt_field() + << eprosima::fastcdr::MemberId(19) << data.uint16_opt_field() + << eprosima::fastcdr::MemberId(20) << data.int32_opt_field() + << eprosima::fastcdr::MemberId(21) << data.uint32_opt_field() + << eprosima::fastcdr::MemberId(22) << data.int64_opt_field() + << eprosima::fastcdr::MemberId(23) << data.uint64_opt_field() + << eprosima::fastcdr::MemberId(24) << data.float_opt_field() + << eprosima::fastcdr::MemberId(25) << data.double_opt_field() + << eprosima::fastcdr::MemberId(26) << data.bool_opt_field() + << eprosima::fastcdr::MemberId(27) << data.string_opt_field() + << eprosima::fastcdr::MemberId(28) << data.enum_opt_field() + << eprosima::fastcdr::MemberId(29) << data.enum2_opt_field() + << eprosima::fastcdr::MemberId(30) << data.struct_opt_field() + << eprosima::fastcdr::MemberId(31) << data.array_char_field() + << eprosima::fastcdr::MemberId(32) << data.array_uint8_field() + << eprosima::fastcdr::MemberId(33) << data.array_int16_field() + << eprosima::fastcdr::MemberId(34) << data.array_uint16_field() + << eprosima::fastcdr::MemberId(35) << data.array_int32_field() + << eprosima::fastcdr::MemberId(36) << data.array_uint32_field() + << eprosima::fastcdr::MemberId(37) << data.array_int64_field() + << eprosima::fastcdr::MemberId(38) << data.array_uint64_field() + << eprosima::fastcdr::MemberId(39) << data.array_float_field() + << eprosima::fastcdr::MemberId(40) << data.array_double_field() + << eprosima::fastcdr::MemberId(41) << data.array_bool_field() + << eprosima::fastcdr::MemberId(42) << data.array_enum_field() + << eprosima::fastcdr::MemberId(43) << data.array_enum2_field() + << eprosima::fastcdr::MemberId(44) << data.array_struct_field() + << eprosima::fastcdr::MemberId(45) << data.bounded_sequence_char_field() + << eprosima::fastcdr::MemberId(46) << data.bounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(47) << data.bounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(48) << data.bounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(49) << data.bounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(50) << data.bounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(51) << data.bounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(52) << data.bounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(53) << data.bounded_sequence_float_field() + << eprosima::fastcdr::MemberId(54) << data.bounded_sequence_double_field() + << eprosima::fastcdr::MemberId(55) << data.bounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(56) << data.bounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(57) << data.bounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(58) << data.bounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(59) << data.unbounded_sequence_char_field() + << eprosima::fastcdr::MemberId(60) << data.unbounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(61) << data.unbounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(62) << data.unbounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(63) << data.unbounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(64) << data.unbounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(65) << data.unbounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(66) << data.unbounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(67) << data.unbounded_sequence_float_field() + << eprosima::fastcdr::MemberId(68) << data.unbounded_sequence_double_field() + << eprosima::fastcdr::MemberId(69) << data.unbounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(70) << data.unbounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(71) << data.unbounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(72) << data.unbounded_sequence_struct_field() ; scdr.end_serialize_type(current_state); @@ -1099,170 +1279,230 @@ eProsima_user_DllExport void deserialize( break; case 16: - dcdr >> data.array_char_field(); + dcdr >> data.char_opt_field(); break; case 17: - dcdr >> data.array_uint8_field(); + dcdr >> data.uint8_opt_field(); break; case 18: - dcdr >> data.array_int16_field(); + dcdr >> data.int16_opt_field(); break; case 19: - dcdr >> data.array_uint16_field(); + dcdr >> data.uint16_opt_field(); break; case 20: - dcdr >> data.array_int32_field(); + dcdr >> data.int32_opt_field(); break; case 21: - dcdr >> data.array_uint32_field(); + dcdr >> data.uint32_opt_field(); break; case 22: - dcdr >> data.array_int64_field(); + dcdr >> data.int64_opt_field(); break; case 23: - dcdr >> data.array_uint64_field(); + dcdr >> data.uint64_opt_field(); break; case 24: - dcdr >> data.array_float_field(); + dcdr >> data.float_opt_field(); break; case 25: - dcdr >> data.array_double_field(); + dcdr >> data.double_opt_field(); break; case 26: - dcdr >> data.array_bool_field(); + dcdr >> data.bool_opt_field(); break; case 27: - dcdr >> data.array_enum_field(); + dcdr >> data.string_opt_field(); break; case 28: - dcdr >> data.array_enum2_field(); + dcdr >> data.enum_opt_field(); break; case 29: - dcdr >> data.array_struct_field(); + dcdr >> data.enum2_opt_field(); break; case 30: - dcdr >> data.bounded_sequence_char_field(); + dcdr >> data.struct_opt_field(); break; case 31: - dcdr >> data.bounded_sequence_uint8_field(); + dcdr >> data.array_char_field(); break; case 32: - dcdr >> data.bounded_sequence_int16_field(); + dcdr >> data.array_uint8_field(); break; case 33: - dcdr >> data.bounded_sequence_uint16_field(); + dcdr >> data.array_int16_field(); break; case 34: - dcdr >> data.bounded_sequence_int32_field(); + dcdr >> data.array_uint16_field(); break; case 35: - dcdr >> data.bounded_sequence_uint32_field(); + dcdr >> data.array_int32_field(); break; case 36: - dcdr >> data.bounded_sequence_int64_field(); + dcdr >> data.array_uint32_field(); break; case 37: - dcdr >> data.bounded_sequence_uint64_field(); + dcdr >> data.array_int64_field(); break; case 38: - dcdr >> data.bounded_sequence_float_field(); + dcdr >> data.array_uint64_field(); break; case 39: - dcdr >> data.bounded_sequence_double_field(); + dcdr >> data.array_float_field(); break; case 40: - dcdr >> data.bounded_sequence_bool_field(); + dcdr >> data.array_double_field(); break; case 41: - dcdr >> data.bounded_sequence_enum_field(); + dcdr >> data.array_bool_field(); break; case 42: - dcdr >> data.bounded_sequence_enum2_field(); + dcdr >> data.array_enum_field(); break; case 43: - dcdr >> data.bounded_sequence_struct_field(); + dcdr >> data.array_enum2_field(); break; case 44: - dcdr >> data.unbounded_sequence_char_field(); + dcdr >> data.array_struct_field(); break; case 45: - dcdr >> data.unbounded_sequence_uint8_field(); + dcdr >> data.bounded_sequence_char_field(); break; case 46: - dcdr >> data.unbounded_sequence_int16_field(); + dcdr >> data.bounded_sequence_uint8_field(); break; case 47: - dcdr >> data.unbounded_sequence_uint16_field(); + dcdr >> data.bounded_sequence_int16_field(); break; case 48: - dcdr >> data.unbounded_sequence_int32_field(); + dcdr >> data.bounded_sequence_uint16_field(); break; case 49: - dcdr >> data.unbounded_sequence_uint32_field(); + dcdr >> data.bounded_sequence_int32_field(); break; case 50: - dcdr >> data.unbounded_sequence_int64_field(); + dcdr >> data.bounded_sequence_uint32_field(); break; case 51: - dcdr >> data.unbounded_sequence_uint64_field(); + dcdr >> data.bounded_sequence_int64_field(); break; case 52: - dcdr >> data.unbounded_sequence_float_field(); + dcdr >> data.bounded_sequence_uint64_field(); break; case 53: - dcdr >> data.unbounded_sequence_double_field(); + dcdr >> data.bounded_sequence_float_field(); break; case 54: - dcdr >> data.unbounded_sequence_bool_field(); + dcdr >> data.bounded_sequence_double_field(); break; case 55: - dcdr >> data.unbounded_sequence_enum_field(); + dcdr >> data.bounded_sequence_bool_field(); break; case 56: - dcdr >> data.unbounded_sequence_enum2_field(); + dcdr >> data.bounded_sequence_enum_field(); break; case 57: + dcdr >> data.bounded_sequence_enum2_field(); + break; + + case 58: + dcdr >> data.bounded_sequence_struct_field(); + break; + + case 59: + dcdr >> data.unbounded_sequence_char_field(); + break; + + case 60: + dcdr >> data.unbounded_sequence_uint8_field(); + break; + + case 61: + dcdr >> data.unbounded_sequence_int16_field(); + break; + + case 62: + dcdr >> data.unbounded_sequence_uint16_field(); + break; + + case 63: + dcdr >> data.unbounded_sequence_int32_field(); + break; + + case 64: + dcdr >> data.unbounded_sequence_uint32_field(); + break; + + case 65: + dcdr >> data.unbounded_sequence_int64_field(); + break; + + case 66: + dcdr >> data.unbounded_sequence_uint64_field(); + break; + + case 67: + dcdr >> data.unbounded_sequence_float_field(); + break; + + case 68: + dcdr >> data.unbounded_sequence_double_field(); + break; + + case 69: + dcdr >> data.unbounded_sequence_bool_field(); + break; + + case 70: + dcdr >> data.unbounded_sequence_enum_field(); + break; + + case 71: + dcdr >> data.unbounded_sequence_enum2_field(); + break; + + case 72: dcdr >> data.unbounded_sequence_struct_field(); break; @@ -1323,6 +1563,21 @@ void serialize_key( + + + + + + + + + + + + + + + diff --git a/fastdds_python/test/types/test_included_modules.i b/fastdds_python/test/types/test_included_modules.i index 59acca05..79869472 100644 --- a/fastdds_python/test/types/test_included_modules.i +++ b/fastdds_python/test/types/test_included_modules.i @@ -45,10 +45,25 @@ #include %} +%import(module="fastdds") "fastcdr/xcdr/optional.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp" +%define %traits_penumn(Type...) + %fragment(SWIG_Traits_frag(Type),"header", + fragment="StdTraits") { +namespace swig { + template <> struct traits< Type > { + typedef value_category category; + static const char* type_name() { return #Type; } + }; +} +} +%enddef + +%traits_penumn(enum eprosima::test2::Color2); +%traits_penumn(enum eprosima::test2::Material2); //////////////////////////////////////////////////////// // Binding for class eprosima::test2::StructType2 //////////////////////////////////////////////////////// @@ -68,6 +83,7 @@ %rename("%s") eprosima::test2::StructType2::char_field() const; + %ignore eprosima::test2::StructType2::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -77,6 +93,7 @@ %rename("%s") eprosima::test2::StructType2::uint8_field() const; + %ignore eprosima::test2::StructType2::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -86,6 +103,7 @@ %rename("%s") eprosima::test2::StructType2::int16_field() const; + %ignore eprosima::test2::StructType2::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -95,6 +113,7 @@ %rename("%s") eprosima::test2::StructType2::uint16_field() const; + %ignore eprosima::test2::StructType2::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -104,6 +123,7 @@ %rename("%s") eprosima::test2::StructType2::int32_field() const; + %ignore eprosima::test2::StructType2::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -113,6 +133,7 @@ %rename("%s") eprosima::test2::StructType2::uint32_field() const; + %ignore eprosima::test2::StructType2::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -122,6 +143,7 @@ %rename("%s") eprosima::test2::StructType2::int64_field() const; + %ignore eprosima::test2::StructType2::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -131,6 +153,7 @@ %rename("%s") eprosima::test2::StructType2::uint64_field() const; + %ignore eprosima::test2::StructType2::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -140,6 +163,7 @@ %rename("%s") eprosima::test2::StructType2::float_field() const; + %ignore eprosima::test2::StructType2::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -149,6 +173,7 @@ %rename("%s") eprosima::test2::StructType2::double_field() const; + %ignore eprosima::test2::StructType2::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -158,6 +183,7 @@ %rename("%s") eprosima::test2::StructType2::bool_field() const; + %ignore eprosima::test2::StructType2::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -167,6 +193,7 @@ %rename("%s") eprosima::test2::StructType2::string_field() const; + %ignore eprosima::test2::StructType2::enum_field(eprosima::test2::Color2&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -176,6 +203,7 @@ %rename("%s") eprosima::test2::StructType2::enum_field() const; + %ignore eprosima::test2::StructType2::enum2_field(eprosima::test2::Material2&&); // Overloaded getter methods shadow each other and are equivalent in python diff --git a/fastdds_python/test/types/test_modules.cxx b/fastdds_python/test/types/test_modules.cxx index 82eb8096..84cc2102 100644 --- a/fastdds_python/test/types/test_modules.cxx +++ b/fastdds_python/test/types/test_modules.cxx @@ -597,6 +597,21 @@ eprosima::test::CompleteTestType::CompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -659,6 +674,21 @@ eprosima::test::CompleteTestType::CompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); m_array_char_field = std::move(x.m_array_char_field); m_array_uint8_field = std::move(x.m_array_uint8_field); m_array_int16_field = std::move(x.m_array_int16_field); @@ -722,6 +752,21 @@ eprosima::test::CompleteTestType& eprosima::test::CompleteTestType::operator =( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -787,6 +832,21 @@ eprosima::test::CompleteTestType& eprosima::test::CompleteTestType::operator =( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); m_array_char_field = std::move(x.m_array_char_field); m_array_uint8_field = std::move(x.m_array_uint8_field); m_array_int16_field = std::move(x.m_array_int16_field); @@ -851,6 +911,21 @@ bool eprosima::test::CompleteTestType::operator ==( m_enum_field == x.m_enum_field && m_enum2_field == x.m_enum2_field && m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && m_array_char_field == x.m_array_char_field && m_array_uint8_field == x.m_array_uint8_field && m_array_int16_field == x.m_array_int16_field && @@ -1357,1662 +1432,2404 @@ eprosima::test::StructType& eprosima::test::CompleteTestType::struct_field() /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field */ -void eprosima::test::CompleteTestType::array_char_field( - const std::array& _array_char_field) +void eprosima::test::CompleteTestType::char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field) { - m_array_char_field = _array_char_field; + m_char_opt_field = _char_opt_field; } /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field */ -void eprosima::test::CompleteTestType::array_char_field( - std::array&& _array_char_field) +void eprosima::test::CompleteTestType::char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field) { - m_array_char_field = std::move(_array_char_field); + m_char_opt_field = std::move(_char_opt_field); } /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_char_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::char_opt_field() const { - return m_array_char_field; + return m_char_opt_field; } /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field */ -std::array& eprosima::test::CompleteTestType::array_char_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::char_opt_field() { - return m_array_char_field; + return m_char_opt_field; } /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ -void eprosima::test::CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) +void eprosima::test::CompleteTestType::uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field) { - m_array_uint8_field = _array_uint8_field; + m_uint8_opt_field = _uint8_opt_field; } /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ -void eprosima::test::CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) +void eprosima::test::CompleteTestType::uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field) { - m_array_uint8_field = std::move(_array_uint8_field); + m_uint8_opt_field = std::move(_uint8_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_uint8_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint8_opt_field() const { - return m_array_uint8_field; + return m_uint8_opt_field; } /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field */ -std::array& eprosima::test::CompleteTestType::array_uint8_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint8_opt_field() { - return m_array_uint8_field; + return m_uint8_opt_field; } /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field */ -void eprosima::test::CompleteTestType::array_int16_field( - const std::array& _array_int16_field) +void eprosima::test::CompleteTestType::int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field) { - m_array_int16_field = _array_int16_field; + m_int16_opt_field = _int16_opt_field; } /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field */ -void eprosima::test::CompleteTestType::array_int16_field( - std::array&& _array_int16_field) +void eprosima::test::CompleteTestType::int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field) { - m_array_int16_field = std::move(_array_int16_field); + m_int16_opt_field = std::move(_int16_opt_field); } /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_int16_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int16_opt_field() const { - return m_array_int16_field; + return m_int16_opt_field; } /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field */ -std::array& eprosima::test::CompleteTestType::array_int16_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int16_opt_field() { - return m_array_int16_field; + return m_int16_opt_field; } /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ -void eprosima::test::CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) +void eprosima::test::CompleteTestType::uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field) { - m_array_uint16_field = _array_uint16_field; + m_uint16_opt_field = _uint16_opt_field; } /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ -void eprosima::test::CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) +void eprosima::test::CompleteTestType::uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field) { - m_array_uint16_field = std::move(_array_uint16_field); + m_uint16_opt_field = std::move(_uint16_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_uint16_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint16_opt_field() const { - return m_array_uint16_field; + return m_uint16_opt_field; } /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field */ -std::array& eprosima::test::CompleteTestType::array_uint16_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint16_opt_field() { - return m_array_uint16_field; + return m_uint16_opt_field; } /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field */ -void eprosima::test::CompleteTestType::array_int32_field( - const std::array& _array_int32_field) +void eprosima::test::CompleteTestType::int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field) { - m_array_int32_field = _array_int32_field; + m_int32_opt_field = _int32_opt_field; } /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field */ -void eprosima::test::CompleteTestType::array_int32_field( - std::array&& _array_int32_field) +void eprosima::test::CompleteTestType::int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field) { - m_array_int32_field = std::move(_array_int32_field); + m_int32_opt_field = std::move(_int32_opt_field); } /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_int32_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int32_opt_field() const { - return m_array_int32_field; + return m_int32_opt_field; } /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field */ -std::array& eprosima::test::CompleteTestType::array_int32_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int32_opt_field() { - return m_array_int32_field; + return m_int32_opt_field; } /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ -void eprosima::test::CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) +void eprosima::test::CompleteTestType::uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field) { - m_array_uint32_field = _array_uint32_field; + m_uint32_opt_field = _uint32_opt_field; } /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ -void eprosima::test::CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) +void eprosima::test::CompleteTestType::uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field) { - m_array_uint32_field = std::move(_array_uint32_field); + m_uint32_opt_field = std::move(_uint32_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_uint32_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint32_opt_field() const { - return m_array_uint32_field; + return m_uint32_opt_field; } /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field */ -std::array& eprosima::test::CompleteTestType::array_uint32_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint32_opt_field() { - return m_array_uint32_field; + return m_uint32_opt_field; } /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field */ -void eprosima::test::CompleteTestType::array_int64_field( - const std::array& _array_int64_field) +void eprosima::test::CompleteTestType::int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field) { - m_array_int64_field = _array_int64_field; + m_int64_opt_field = _int64_opt_field; } /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field */ -void eprosima::test::CompleteTestType::array_int64_field( - std::array&& _array_int64_field) +void eprosima::test::CompleteTestType::int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field) { - m_array_int64_field = std::move(_array_int64_field); + m_int64_opt_field = std::move(_int64_opt_field); } /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_int64_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int64_opt_field() const { - return m_array_int64_field; + return m_int64_opt_field; } /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field */ -std::array& eprosima::test::CompleteTestType::array_int64_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::int64_opt_field() { - return m_array_int64_field; + return m_int64_opt_field; } /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ -void eprosima::test::CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) +void eprosima::test::CompleteTestType::uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field) { - m_array_uint64_field = _array_uint64_field; + m_uint64_opt_field = _uint64_opt_field; } /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ -void eprosima::test::CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) +void eprosima::test::CompleteTestType::uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field) { - m_array_uint64_field = std::move(_array_uint64_field); + m_uint64_opt_field = std::move(_uint64_opt_field); } /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_uint64_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint64_opt_field() const { - return m_array_uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field */ -std::array& eprosima::test::CompleteTestType::array_uint64_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::uint64_opt_field() { - return m_array_uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field */ -void eprosima::test::CompleteTestType::array_float_field( - const std::array& _array_float_field) +void eprosima::test::CompleteTestType::float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field) { - m_array_float_field = _array_float_field; + m_float_opt_field = _float_opt_field; } /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field */ -void eprosima::test::CompleteTestType::array_float_field( - std::array&& _array_float_field) +void eprosima::test::CompleteTestType::float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field) { - m_array_float_field = std::move(_array_float_field); + m_float_opt_field = std::move(_float_opt_field); } /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_float_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::float_opt_field() const { - return m_array_float_field; + return m_float_opt_field; } /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field */ -std::array& eprosima::test::CompleteTestType::array_float_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::float_opt_field() { - return m_array_float_field; + return m_float_opt_field; } /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field */ -void eprosima::test::CompleteTestType::array_double_field( - const std::array& _array_double_field) +void eprosima::test::CompleteTestType::double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field) { - m_array_double_field = _array_double_field; + m_double_opt_field = _double_opt_field; } /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field */ -void eprosima::test::CompleteTestType::array_double_field( - std::array&& _array_double_field) +void eprosima::test::CompleteTestType::double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field) { - m_array_double_field = std::move(_array_double_field); + m_double_opt_field = std::move(_double_opt_field); } /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_double_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::double_opt_field() const { - return m_array_double_field; + return m_double_opt_field; } /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field */ -std::array& eprosima::test::CompleteTestType::array_double_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::double_opt_field() { - return m_array_double_field; + return m_double_opt_field; } /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field */ -void eprosima::test::CompleteTestType::array_bool_field( - const std::array& _array_bool_field) +void eprosima::test::CompleteTestType::bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field) { - m_array_bool_field = _array_bool_field; + m_bool_opt_field = _bool_opt_field; } /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field */ -void eprosima::test::CompleteTestType::array_bool_field( - std::array&& _array_bool_field) +void eprosima::test::CompleteTestType::bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field) { - m_array_bool_field = std::move(_array_bool_field); + m_bool_opt_field = std::move(_bool_opt_field); } /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_bool_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::bool_opt_field() const { - return m_array_bool_field; + return m_bool_opt_field; } /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field */ -std::array& eprosima::test::CompleteTestType::array_bool_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::bool_opt_field() { - return m_array_bool_field; + return m_bool_opt_field; } /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field */ -void eprosima::test::CompleteTestType::array_enum_field( - const std::array& _array_enum_field) +void eprosima::test::CompleteTestType::string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field) { - m_array_enum_field = _array_enum_field; + m_string_opt_field = _string_opt_field; } /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field */ -void eprosima::test::CompleteTestType::array_enum_field( - std::array&& _array_enum_field) +void eprosima::test::CompleteTestType::string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field) { - m_array_enum_field = std::move(_array_enum_field); + m_string_opt_field = std::move(_string_opt_field); } /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_enum_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::string_opt_field() const { - return m_array_enum_field; + return m_string_opt_field; } /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field */ -std::array& eprosima::test::CompleteTestType::array_enum_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::string_opt_field() { - return m_array_enum_field; + return m_string_opt_field; } /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field */ -void eprosima::test::CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) +void eprosima::test::CompleteTestType::enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field) { - m_array_enum2_field = _array_enum2_field; + m_enum_opt_field = _enum_opt_field; } /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field */ -void eprosima::test::CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) +void eprosima::test::CompleteTestType::enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field) { - m_array_enum2_field = std::move(_array_enum2_field); + m_enum_opt_field = std::move(_enum_opt_field); } /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_enum2_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::enum_opt_field() const { - return m_array_enum2_field; + return m_enum_opt_field; } /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field */ -std::array& eprosima::test::CompleteTestType::array_enum2_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::enum_opt_field() { - return m_array_enum2_field; + return m_enum_opt_field; } /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ -void eprosima::test::CompleteTestType::array_struct_field( - const std::array& _array_struct_field) +void eprosima::test::CompleteTestType::enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field) { - m_array_struct_field = _array_struct_field; + m_enum2_opt_field = _enum2_opt_field; } /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ -void eprosima::test::CompleteTestType::array_struct_field( - std::array&& _array_struct_field) +void eprosima::test::CompleteTestType::enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field) { - m_array_struct_field = std::move(_array_struct_field); + m_enum2_opt_field = std::move(_enum2_opt_field); } /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field */ -const std::array& eprosima::test::CompleteTestType::array_struct_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::enum2_opt_field() const { - return m_array_struct_field; + return m_enum2_opt_field; } /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field */ -std::array& eprosima::test::CompleteTestType::array_struct_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::enum2_opt_field() { - return m_array_struct_field; + return m_enum2_opt_field; } /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field */ -void eprosima::test::CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) +void eprosima::test::CompleteTestType::struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field) { - m_bounded_sequence_char_field = _bounded_sequence_char_field; + m_struct_opt_field = _struct_opt_field; } /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field */ -void eprosima::test::CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) +void eprosima::test::CompleteTestType::struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field) { - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + m_struct_opt_field = std::move(_struct_opt_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_char_field() const +const eprosima::fastcdr::optional& eprosima::test::CompleteTestType::struct_opt_field() const { - return m_bounded_sequence_char_field; + return m_struct_opt_field; } /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_char_field() +eprosima::fastcdr::optional& eprosima::test::CompleteTestType::struct_opt_field() { - return m_bounded_sequence_char_field; + return m_struct_opt_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field + * @brief This function copies the value in member array_char_field + * @param _array_char_field New value to be copied in member array_char_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) +void eprosima::test::CompleteTestType::array_char_field( + const std::array& _array_char_field) { - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + m_array_char_field = _array_char_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field + * @brief This function moves the value in member array_char_field + * @param _array_char_field New value to be moved in member array_char_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) +void eprosima::test::CompleteTestType::array_char_field( + std::array&& _array_char_field) { - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + m_array_char_field = std::move(_array_char_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field + * @brief This function returns a constant reference to member array_char_field + * @return Constant reference to member array_char_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint8_field() const +const std::array& eprosima::test::CompleteTestType::array_char_field() const { - return m_bounded_sequence_uint8_field; + return m_array_char_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field + * @brief This function returns a reference to member array_char_field + * @return Reference to member array_char_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint8_field() +std::array& eprosima::test::CompleteTestType::array_char_field() { - return m_bounded_sequence_uint8_field; + return m_array_char_field; } /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field + * @brief This function copies the value in member array_uint8_field + * @param _array_uint8_field New value to be copied in member array_uint8_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) +void eprosima::test::CompleteTestType::array_uint8_field( + const std::array& _array_uint8_field) { - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + m_array_uint8_field = _array_uint8_field; } /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field + * @brief This function moves the value in member array_uint8_field + * @param _array_uint8_field New value to be moved in member array_uint8_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) +void eprosima::test::CompleteTestType::array_uint8_field( + std::array&& _array_uint8_field) { - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + m_array_uint8_field = std::move(_array_uint8_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field + * @brief This function returns a constant reference to member array_uint8_field + * @return Constant reference to member array_uint8_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int16_field() const +const std::array& eprosima::test::CompleteTestType::array_uint8_field() const { - return m_bounded_sequence_int16_field; + return m_array_uint8_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field + * @brief This function returns a reference to member array_uint8_field + * @return Reference to member array_uint8_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_int16_field() +std::array& eprosima::test::CompleteTestType::array_uint8_field() { - return m_bounded_sequence_int16_field; + return m_array_uint8_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field + * @brief This function copies the value in member array_int16_field + * @param _array_int16_field New value to be copied in member array_int16_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) +void eprosima::test::CompleteTestType::array_int16_field( + const std::array& _array_int16_field) { - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + m_array_int16_field = _array_int16_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field + * @brief This function moves the value in member array_int16_field + * @param _array_int16_field New value to be moved in member array_int16_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) +void eprosima::test::CompleteTestType::array_int16_field( + std::array&& _array_int16_field) { - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + m_array_int16_field = std::move(_array_int16_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field + * @brief This function returns a constant reference to member array_int16_field + * @return Constant reference to member array_int16_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint16_field() const +const std::array& eprosima::test::CompleteTestType::array_int16_field() const { - return m_bounded_sequence_uint16_field; + return m_array_int16_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field + * @brief This function returns a reference to member array_int16_field + * @return Reference to member array_int16_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint16_field() +std::array& eprosima::test::CompleteTestType::array_int16_field() { - return m_bounded_sequence_uint16_field; + return m_array_int16_field; } /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field + * @brief This function copies the value in member array_uint16_field + * @param _array_uint16_field New value to be copied in member array_uint16_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) +void eprosima::test::CompleteTestType::array_uint16_field( + const std::array& _array_uint16_field) { - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + m_array_uint16_field = _array_uint16_field; } /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field + * @brief This function moves the value in member array_uint16_field + * @param _array_uint16_field New value to be moved in member array_uint16_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) +void eprosima::test::CompleteTestType::array_uint16_field( + std::array&& _array_uint16_field) { - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + m_array_uint16_field = std::move(_array_uint16_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field + * @brief This function returns a constant reference to member array_uint16_field + * @return Constant reference to member array_uint16_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int32_field() const +const std::array& eprosima::test::CompleteTestType::array_uint16_field() const { - return m_bounded_sequence_int32_field; + return m_array_uint16_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field + * @brief This function returns a reference to member array_uint16_field + * @return Reference to member array_uint16_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_int32_field() +std::array& eprosima::test::CompleteTestType::array_uint16_field() { - return m_bounded_sequence_int32_field; + return m_array_uint16_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field + * @brief This function copies the value in member array_int32_field + * @param _array_int32_field New value to be copied in member array_int32_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) +void eprosima::test::CompleteTestType::array_int32_field( + const std::array& _array_int32_field) { - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + m_array_int32_field = _array_int32_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field + * @brief This function moves the value in member array_int32_field + * @param _array_int32_field New value to be moved in member array_int32_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) +void eprosima::test::CompleteTestType::array_int32_field( + std::array&& _array_int32_field) { - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + m_array_int32_field = std::move(_array_int32_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field + * @brief This function returns a constant reference to member array_int32_field + * @return Constant reference to member array_int32_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint32_field() const +const std::array& eprosima::test::CompleteTestType::array_int32_field() const { - return m_bounded_sequence_uint32_field; + return m_array_int32_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field + * @brief This function returns a reference to member array_int32_field + * @return Reference to member array_int32_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint32_field() +std::array& eprosima::test::CompleteTestType::array_int32_field() { - return m_bounded_sequence_uint32_field; + return m_array_int32_field; } /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field + * @brief This function copies the value in member array_uint32_field + * @param _array_uint32_field New value to be copied in member array_uint32_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) +void eprosima::test::CompleteTestType::array_uint32_field( + const std::array& _array_uint32_field) { - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + m_array_uint32_field = _array_uint32_field; } /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field + * @brief This function moves the value in member array_uint32_field + * @param _array_uint32_field New value to be moved in member array_uint32_field */ -void eprosima::test::CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) +void eprosima::test::CompleteTestType::array_uint32_field( + std::array&& _array_uint32_field) { - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + m_array_uint32_field = std::move(_array_uint32_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field + * @brief This function returns a constant reference to member array_uint32_field + * @return Constant reference to member array_uint32_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int64_field() const +const std::array& eprosima::test::CompleteTestType::array_uint32_field() const { - return m_bounded_sequence_int64_field; + return m_array_uint32_field; } /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field + * @brief This function returns a reference to member array_uint32_field + * @return Reference to member array_uint32_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_int64_field() +std::array& eprosima::test::CompleteTestType::array_uint32_field() { - return m_bounded_sequence_int64_field; + return m_array_uint32_field; } /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field + * @brief This function copies the value in member array_int64_field + * @param _array_int64_field New value to be copied in member array_int64_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) +void eprosima::test::CompleteTestType::array_int64_field( + const std::array& _array_int64_field) { - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + m_array_int64_field = _array_int64_field; } /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field + * @brief This function moves the value in member array_int64_field + * @param _array_int64_field New value to be moved in member array_int64_field */ -void eprosima::test::CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) +void eprosima::test::CompleteTestType::array_int64_field( + std::array&& _array_int64_field) { - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + m_array_int64_field = std::move(_array_int64_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field + * @brief This function returns a constant reference to member array_int64_field + * @return Constant reference to member array_int64_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint64_field() const +const std::array& eprosima::test::CompleteTestType::array_int64_field() const { - return m_bounded_sequence_uint64_field; + return m_array_int64_field; } /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field + * @brief This function returns a reference to member array_int64_field + * @return Reference to member array_int64_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint64_field() +std::array& eprosima::test::CompleteTestType::array_int64_field() { - return m_bounded_sequence_uint64_field; + return m_array_int64_field; } /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field + * @brief This function copies the value in member array_uint64_field + * @param _array_uint64_field New value to be copied in member array_uint64_field */ -void eprosima::test::CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) +void eprosima::test::CompleteTestType::array_uint64_field( + const std::array& _array_uint64_field) { - m_bounded_sequence_float_field = _bounded_sequence_float_field; + m_array_uint64_field = _array_uint64_field; } /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field + * @brief This function moves the value in member array_uint64_field + * @param _array_uint64_field New value to be moved in member array_uint64_field */ -void eprosima::test::CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) +void eprosima::test::CompleteTestType::array_uint64_field( + std::array&& _array_uint64_field) { - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + m_array_uint64_field = std::move(_array_uint64_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field + * @brief This function returns a constant reference to member array_uint64_field + * @return Constant reference to member array_uint64_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_float_field() const +const std::array& eprosima::test::CompleteTestType::array_uint64_field() const { - return m_bounded_sequence_float_field; + return m_array_uint64_field; } /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field + * @brief This function returns a reference to member array_uint64_field + * @return Reference to member array_uint64_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_float_field() +std::array& eprosima::test::CompleteTestType::array_uint64_field() { - return m_bounded_sequence_float_field; + return m_array_uint64_field; } /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field + * @brief This function copies the value in member array_float_field + * @param _array_float_field New value to be copied in member array_float_field */ -void eprosima::test::CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) +void eprosima::test::CompleteTestType::array_float_field( + const std::array& _array_float_field) { - m_bounded_sequence_double_field = _bounded_sequence_double_field; + m_array_float_field = _array_float_field; } /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field + * @brief This function moves the value in member array_float_field + * @param _array_float_field New value to be moved in member array_float_field */ -void eprosima::test::CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) +void eprosima::test::CompleteTestType::array_float_field( + std::array&& _array_float_field) { - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + m_array_float_field = std::move(_array_float_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field + * @brief This function returns a constant reference to member array_float_field + * @return Constant reference to member array_float_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_double_field() const +const std::array& eprosima::test::CompleteTestType::array_float_field() const { - return m_bounded_sequence_double_field; + return m_array_float_field; } /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field + * @brief This function returns a reference to member array_float_field + * @return Reference to member array_float_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_double_field() +std::array& eprosima::test::CompleteTestType::array_float_field() { - return m_bounded_sequence_double_field; + return m_array_float_field; } /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field + * @brief This function copies the value in member array_double_field + * @param _array_double_field New value to be copied in member array_double_field */ -void eprosima::test::CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) +void eprosima::test::CompleteTestType::array_double_field( + const std::array& _array_double_field) { - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + m_array_double_field = _array_double_field; } /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field + * @brief This function moves the value in member array_double_field + * @param _array_double_field New value to be moved in member array_double_field */ -void eprosima::test::CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) +void eprosima::test::CompleteTestType::array_double_field( + std::array&& _array_double_field) { - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + m_array_double_field = std::move(_array_double_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field + * @brief This function returns a constant reference to member array_double_field + * @return Constant reference to member array_double_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_bool_field() const +const std::array& eprosima::test::CompleteTestType::array_double_field() const { - return m_bounded_sequence_bool_field; + return m_array_double_field; } /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field + * @brief This function returns a reference to member array_double_field + * @return Reference to member array_double_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_bool_field() +std::array& eprosima::test::CompleteTestType::array_double_field() { - return m_bounded_sequence_bool_field; + return m_array_double_field; } /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field + * @brief This function copies the value in member array_bool_field + * @param _array_bool_field New value to be copied in member array_bool_field */ -void eprosima::test::CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) +void eprosima::test::CompleteTestType::array_bool_field( + const std::array& _array_bool_field) { - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + m_array_bool_field = _array_bool_field; } /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field + * @brief This function moves the value in member array_bool_field + * @param _array_bool_field New value to be moved in member array_bool_field */ -void eprosima::test::CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) +void eprosima::test::CompleteTestType::array_bool_field( + std::array&& _array_bool_field) { - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + m_array_bool_field = std::move(_array_bool_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field + * @brief This function returns a constant reference to member array_bool_field + * @return Constant reference to member array_bool_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum_field() const +const std::array& eprosima::test::CompleteTestType::array_bool_field() const { - return m_bounded_sequence_enum_field; + return m_array_bool_field; } /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field + * @brief This function returns a reference to member array_bool_field + * @return Reference to member array_bool_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum_field() +std::array& eprosima::test::CompleteTestType::array_bool_field() { - return m_bounded_sequence_enum_field; + return m_array_bool_field; } /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field + * @brief This function copies the value in member array_enum_field + * @param _array_enum_field New value to be copied in member array_enum_field */ -void eprosima::test::CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) +void eprosima::test::CompleteTestType::array_enum_field( + const std::array& _array_enum_field) { - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + m_array_enum_field = _array_enum_field; } /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field + * @brief This function moves the value in member array_enum_field + * @param _array_enum_field New value to be moved in member array_enum_field */ -void eprosima::test::CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) +void eprosima::test::CompleteTestType::array_enum_field( + std::array&& _array_enum_field) { - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + m_array_enum_field = std::move(_array_enum_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field + * @brief This function returns a constant reference to member array_enum_field + * @return Constant reference to member array_enum_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum2_field() const +const std::array& eprosima::test::CompleteTestType::array_enum_field() const { - return m_bounded_sequence_enum2_field; + return m_array_enum_field; } /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field + * @brief This function returns a reference to member array_enum_field + * @return Reference to member array_enum_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum2_field() +std::array& eprosima::test::CompleteTestType::array_enum_field() { - return m_bounded_sequence_enum2_field; + return m_array_enum_field; } /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field + * @brief This function copies the value in member array_enum2_field + * @param _array_enum2_field New value to be copied in member array_enum2_field */ -void eprosima::test::CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) +void eprosima::test::CompleteTestType::array_enum2_field( + const std::array& _array_enum2_field) { - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + m_array_enum2_field = _array_enum2_field; } /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field + * @brief This function moves the value in member array_enum2_field + * @param _array_enum2_field New value to be moved in member array_enum2_field */ -void eprosima::test::CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) +void eprosima::test::CompleteTestType::array_enum2_field( + std::array&& _array_enum2_field) { - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + m_array_enum2_field = std::move(_array_enum2_field); } /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field + * @brief This function returns a constant reference to member array_enum2_field + * @return Constant reference to member array_enum2_field */ -const std::vector& eprosima::test::CompleteTestType::bounded_sequence_struct_field() const +const std::array& eprosima::test::CompleteTestType::array_enum2_field() const { - return m_bounded_sequence_struct_field; + return m_array_enum2_field; } /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field + * @brief This function returns a reference to member array_enum2_field + * @return Reference to member array_enum2_field */ -std::vector& eprosima::test::CompleteTestType::bounded_sequence_struct_field() +std::array& eprosima::test::CompleteTestType::array_enum2_field() { - return m_bounded_sequence_struct_field; + return m_array_enum2_field; } /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field + * @brief This function copies the value in member array_struct_field + * @param _array_struct_field New value to be copied in member array_struct_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) +void eprosima::test::CompleteTestType::array_struct_field( + const std::array& _array_struct_field) { - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + m_array_struct_field = _array_struct_field; } /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field + * @brief This function moves the value in member array_struct_field + * @param _array_struct_field New value to be moved in member array_struct_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) +void eprosima::test::CompleteTestType::array_struct_field( + std::array&& _array_struct_field) { - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + m_array_struct_field = std::move(_array_struct_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field + * @brief This function returns a constant reference to member array_struct_field + * @return Constant reference to member array_struct_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_char_field() const +const std::array& eprosima::test::CompleteTestType::array_struct_field() const { - return m_unbounded_sequence_char_field; + return m_array_struct_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field + * @brief This function returns a reference to member array_struct_field + * @return Reference to member array_struct_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_char_field() +std::array& eprosima::test::CompleteTestType::array_struct_field() { - return m_unbounded_sequence_char_field; + return m_array_struct_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field + * @brief This function copies the value in member bounded_sequence_char_field + * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) +void eprosima::test::CompleteTestType::bounded_sequence_char_field( + const std::vector& _bounded_sequence_char_field) { - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + m_bounded_sequence_char_field = _bounded_sequence_char_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field + * @brief This function moves the value in member bounded_sequence_char_field + * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) +void eprosima::test::CompleteTestType::bounded_sequence_char_field( + std::vector&& _bounded_sequence_char_field) { - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field + * @brief This function returns a constant reference to member bounded_sequence_char_field + * @return Constant reference to member bounded_sequence_char_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint8_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_char_field() const { - return m_unbounded_sequence_uint8_field; + return m_bounded_sequence_char_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field + * @brief This function returns a reference to member bounded_sequence_char_field + * @return Reference to member bounded_sequence_char_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint8_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_char_field() { - return m_unbounded_sequence_uint8_field; + return m_bounded_sequence_char_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field + * @brief This function copies the value in member bounded_sequence_uint8_field + * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint8_field( + const std::vector& _bounded_sequence_uint8_field) { - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field + * @brief This function moves the value in member bounded_sequence_uint8_field + * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint8_field( + std::vector&& _bounded_sequence_uint8_field) { - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field + * @brief This function returns a constant reference to member bounded_sequence_uint8_field + * @return Constant reference to member bounded_sequence_uint8_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int16_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint8_field() const { - return m_unbounded_sequence_int16_field; + return m_bounded_sequence_uint8_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field + * @brief This function returns a reference to member bounded_sequence_uint8_field + * @return Reference to member bounded_sequence_uint8_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int16_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint8_field() { - return m_unbounded_sequence_int16_field; + return m_bounded_sequence_uint8_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field + * @brief This function copies the value in member bounded_sequence_int16_field + * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) +void eprosima::test::CompleteTestType::bounded_sequence_int16_field( + const std::vector& _bounded_sequence_int16_field) { - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field + * @brief This function moves the value in member bounded_sequence_int16_field + * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) +void eprosima::test::CompleteTestType::bounded_sequence_int16_field( + std::vector&& _bounded_sequence_int16_field) { - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field + * @brief This function returns a constant reference to member bounded_sequence_int16_field + * @return Constant reference to member bounded_sequence_int16_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint16_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int16_field() const { - return m_unbounded_sequence_uint16_field; + return m_bounded_sequence_int16_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field + * @brief This function returns a reference to member bounded_sequence_int16_field + * @return Reference to member bounded_sequence_int16_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint16_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_int16_field() { - return m_unbounded_sequence_uint16_field; + return m_bounded_sequence_int16_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field + * @brief This function copies the value in member bounded_sequence_uint16_field + * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint16_field( + const std::vector& _bounded_sequence_uint16_field) { - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field + * @brief This function moves the value in member bounded_sequence_uint16_field + * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint16_field( + std::vector&& _bounded_sequence_uint16_field) { - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field + * @brief This function returns a constant reference to member bounded_sequence_uint16_field + * @return Constant reference to member bounded_sequence_uint16_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int32_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint16_field() const { - return m_unbounded_sequence_int32_field; + return m_bounded_sequence_uint16_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field + * @brief This function returns a reference to member bounded_sequence_uint16_field + * @return Reference to member bounded_sequence_uint16_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int32_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint16_field() { - return m_unbounded_sequence_int32_field; + return m_bounded_sequence_uint16_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field + * @brief This function copies the value in member bounded_sequence_int32_field + * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) +void eprosima::test::CompleteTestType::bounded_sequence_int32_field( + const std::vector& _bounded_sequence_int32_field) { - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field + * @brief This function moves the value in member bounded_sequence_int32_field + * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) +void eprosima::test::CompleteTestType::bounded_sequence_int32_field( + std::vector&& _bounded_sequence_int32_field) { - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field + * @brief This function returns a constant reference to member bounded_sequence_int32_field + * @return Constant reference to member bounded_sequence_int32_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint32_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int32_field() const { - return m_unbounded_sequence_uint32_field; + return m_bounded_sequence_int32_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field + * @brief This function returns a reference to member bounded_sequence_int32_field + * @return Reference to member bounded_sequence_int32_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint32_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_int32_field() { - return m_unbounded_sequence_uint32_field; + return m_bounded_sequence_int32_field; } /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field + * @brief This function copies the value in member bounded_sequence_uint32_field + * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint32_field( + const std::vector& _bounded_sequence_uint32_field) { - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; } /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field + * @brief This function moves the value in member bounded_sequence_uint32_field + * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint32_field( + std::vector&& _bounded_sequence_uint32_field) { - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field + * @brief This function returns a constant reference to member bounded_sequence_uint32_field + * @return Constant reference to member bounded_sequence_uint32_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int64_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint32_field() const { - return m_unbounded_sequence_int64_field; + return m_bounded_sequence_uint32_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field + * @brief This function returns a reference to member bounded_sequence_uint32_field + * @return Reference to member bounded_sequence_uint32_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int64_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint32_field() { - return m_unbounded_sequence_int64_field; + return m_bounded_sequence_uint32_field; } /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field + * @brief This function copies the value in member bounded_sequence_int64_field + * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) +void eprosima::test::CompleteTestType::bounded_sequence_int64_field( + const std::vector& _bounded_sequence_int64_field) { - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; } /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field + * @brief This function moves the value in member bounded_sequence_int64_field + * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) +void eprosima::test::CompleteTestType::bounded_sequence_int64_field( + std::vector&& _bounded_sequence_int64_field) { - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field + * @brief This function returns a constant reference to member bounded_sequence_int64_field + * @return Constant reference to member bounded_sequence_int64_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint64_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_int64_field() const { - return m_unbounded_sequence_uint64_field; + return m_bounded_sequence_int64_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field + * @brief This function returns a reference to member bounded_sequence_int64_field + * @return Reference to member bounded_sequence_int64_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint64_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_int64_field() { - return m_unbounded_sequence_uint64_field; + return m_bounded_sequence_int64_field; } /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field + * @brief This function copies the value in member bounded_sequence_uint64_field + * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint64_field( + const std::vector& _bounded_sequence_uint64_field) { - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; } /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field + * @brief This function moves the value in member bounded_sequence_uint64_field + * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) +void eprosima::test::CompleteTestType::bounded_sequence_uint64_field( + std::vector&& _bounded_sequence_uint64_field) { - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field + * @brief This function returns a constant reference to member bounded_sequence_uint64_field + * @return Constant reference to member bounded_sequence_uint64_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_float_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint64_field() const { - return m_unbounded_sequence_float_field; + return m_bounded_sequence_uint64_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field + * @brief This function returns a reference to member bounded_sequence_uint64_field + * @return Reference to member bounded_sequence_uint64_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_float_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_uint64_field() { - return m_unbounded_sequence_float_field; + return m_bounded_sequence_uint64_field; } /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field + * @brief This function copies the value in member bounded_sequence_float_field + * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) +void eprosima::test::CompleteTestType::bounded_sequence_float_field( + const std::vector& _bounded_sequence_float_field) { - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + m_bounded_sequence_float_field = _bounded_sequence_float_field; } /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field + * @brief This function moves the value in member bounded_sequence_float_field + * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) +void eprosima::test::CompleteTestType::bounded_sequence_float_field( + std::vector&& _bounded_sequence_float_field) { - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field + * @brief This function returns a constant reference to member bounded_sequence_float_field + * @return Constant reference to member bounded_sequence_float_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_double_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_float_field() const { - return m_unbounded_sequence_double_field; + return m_bounded_sequence_float_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field + * @brief This function returns a reference to member bounded_sequence_float_field + * @return Reference to member bounded_sequence_float_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_double_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_float_field() { - return m_unbounded_sequence_double_field; + return m_bounded_sequence_float_field; } /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field + * @brief This function copies the value in member bounded_sequence_double_field + * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) +void eprosima::test::CompleteTestType::bounded_sequence_double_field( + const std::vector& _bounded_sequence_double_field) { - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + m_bounded_sequence_double_field = _bounded_sequence_double_field; } /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field + * @brief This function moves the value in member bounded_sequence_double_field + * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) +void eprosima::test::CompleteTestType::bounded_sequence_double_field( + std::vector&& _bounded_sequence_double_field) { - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field + * @brief This function returns a constant reference to member bounded_sequence_double_field + * @return Constant reference to member bounded_sequence_double_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_bool_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_double_field() const { - return m_unbounded_sequence_bool_field; + return m_bounded_sequence_double_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field + * @brief This function returns a reference to member bounded_sequence_double_field + * @return Reference to member bounded_sequence_double_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_bool_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_double_field() { - return m_unbounded_sequence_bool_field; + return m_bounded_sequence_double_field; } /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field + * @brief This function copies the value in member bounded_sequence_bool_field + * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) +void eprosima::test::CompleteTestType::bounded_sequence_bool_field( + const std::vector& _bounded_sequence_bool_field) { - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; } /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field + * @brief This function moves the value in member bounded_sequence_bool_field + * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) +void eprosima::test::CompleteTestType::bounded_sequence_bool_field( + std::vector&& _bounded_sequence_bool_field) { - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field + * @brief This function returns a constant reference to member bounded_sequence_bool_field + * @return Constant reference to member bounded_sequence_bool_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_bool_field() const { - return m_unbounded_sequence_enum_field; + return m_bounded_sequence_bool_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field + * @brief This function returns a reference to member bounded_sequence_bool_field + * @return Reference to member bounded_sequence_bool_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_bool_field() { - return m_unbounded_sequence_enum_field; + return m_bounded_sequence_bool_field; } /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field + * @brief This function copies the value in member bounded_sequence_enum_field + * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) +void eprosima::test::CompleteTestType::bounded_sequence_enum_field( + const std::vector& _bounded_sequence_enum_field) { - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; } /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field + * @brief This function moves the value in member bounded_sequence_enum_field + * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) +void eprosima::test::CompleteTestType::bounded_sequence_enum_field( + std::vector&& _bounded_sequence_enum_field) { - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field + * @brief This function returns a constant reference to member bounded_sequence_enum_field + * @return Constant reference to member bounded_sequence_enum_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum2_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum_field() const { - return m_unbounded_sequence_enum2_field; + return m_bounded_sequence_enum_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field + * @brief This function returns a reference to member bounded_sequence_enum_field + * @return Reference to member bounded_sequence_enum_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum2_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum_field() { - return m_unbounded_sequence_enum2_field; + return m_bounded_sequence_enum_field; } /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field + * @brief This function copies the value in member bounded_sequence_enum2_field + * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) +void eprosima::test::CompleteTestType::bounded_sequence_enum2_field( + const std::vector& _bounded_sequence_enum2_field) { - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; } /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field + * @brief This function moves the value in member bounded_sequence_enum2_field + * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ -void eprosima::test::CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) +void eprosima::test::CompleteTestType::bounded_sequence_enum2_field( + std::vector&& _bounded_sequence_enum2_field) { - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); } /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field + * @brief This function returns a constant reference to member bounded_sequence_enum2_field + * @return Constant reference to member bounded_sequence_enum2_field */ -const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_struct_field() const +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum2_field() const { - return m_unbounded_sequence_struct_field; + return m_bounded_sequence_enum2_field; } /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field + * @brief This function returns a reference to member bounded_sequence_enum2_field + * @return Reference to member bounded_sequence_enum2_field */ -std::vector& eprosima::test::CompleteTestType::unbounded_sequence_struct_field() +std::vector& eprosima::test::CompleteTestType::bounded_sequence_enum2_field() { - return m_unbounded_sequence_struct_field; + return m_bounded_sequence_enum2_field; } -eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType() +/*! + * @brief This function copies the value in member bounded_sequence_struct_field + * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field + */ +void eprosima::test::CompleteTestType::bounded_sequence_struct_field( + const std::vector& _bounded_sequence_struct_field) { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; +} +/*! + * @brief This function moves the value in member bounded_sequence_struct_field + * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field + */ +void eprosima::test::CompleteTestType::bounded_sequence_struct_field( + std::vector&& _bounded_sequence_struct_field) +{ + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); } -eprosima::test::KeyedCompleteTestType::~KeyedCompleteTestType() +/*! + * @brief This function returns a constant reference to member bounded_sequence_struct_field + * @return Constant reference to member bounded_sequence_struct_field + */ +const std::vector& eprosima::test::CompleteTestType::bounded_sequence_struct_field() const { + return m_bounded_sequence_struct_field; } -eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) +/*! + * @brief This function returns a reference to member bounded_sequence_struct_field + * @return Reference to member bounded_sequence_struct_field + */ +std::vector& eprosima::test::CompleteTestType::bounded_sequence_struct_field() { - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; + return m_bounded_sequence_struct_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_char_field + * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_char_field( + const std::vector& _unbounded_sequence_char_field) +{ + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_char_field + * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_char_field( + std::vector&& _unbounded_sequence_char_field) +{ + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_char_field + * @return Constant reference to member unbounded_sequence_char_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_char_field() const +{ + return m_unbounded_sequence_char_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_char_field + * @return Reference to member unbounded_sequence_char_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_char_field() +{ + return m_unbounded_sequence_char_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint8_field + * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint8_field( + const std::vector& _unbounded_sequence_uint8_field) +{ + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint8_field + * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint8_field( + std::vector&& _unbounded_sequence_uint8_field) +{ + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint8_field + * @return Constant reference to member unbounded_sequence_uint8_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint8_field() const +{ + return m_unbounded_sequence_uint8_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint8_field + * @return Reference to member unbounded_sequence_uint8_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint8_field() +{ + return m_unbounded_sequence_uint8_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int16_field + * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int16_field( + const std::vector& _unbounded_sequence_int16_field) +{ + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int16_field + * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int16_field( + std::vector&& _unbounded_sequence_int16_field) +{ + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int16_field + * @return Constant reference to member unbounded_sequence_int16_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int16_field() const +{ + return m_unbounded_sequence_int16_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int16_field + * @return Reference to member unbounded_sequence_int16_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int16_field() +{ + return m_unbounded_sequence_int16_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint16_field + * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint16_field( + const std::vector& _unbounded_sequence_uint16_field) +{ + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint16_field + * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint16_field( + std::vector&& _unbounded_sequence_uint16_field) +{ + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint16_field + * @return Constant reference to member unbounded_sequence_uint16_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint16_field() const +{ + return m_unbounded_sequence_uint16_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint16_field + * @return Reference to member unbounded_sequence_uint16_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint16_field() +{ + return m_unbounded_sequence_uint16_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int32_field + * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int32_field( + const std::vector& _unbounded_sequence_int32_field) +{ + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int32_field + * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int32_field( + std::vector&& _unbounded_sequence_int32_field) +{ + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int32_field + * @return Constant reference to member unbounded_sequence_int32_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int32_field() const +{ + return m_unbounded_sequence_int32_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int32_field + * @return Reference to member unbounded_sequence_int32_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int32_field() +{ + return m_unbounded_sequence_int32_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint32_field + * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint32_field( + const std::vector& _unbounded_sequence_uint32_field) +{ + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint32_field + * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint32_field( + std::vector&& _unbounded_sequence_uint32_field) +{ + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint32_field + * @return Constant reference to member unbounded_sequence_uint32_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint32_field() const +{ + return m_unbounded_sequence_uint32_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint32_field + * @return Reference to member unbounded_sequence_uint32_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint32_field() +{ + return m_unbounded_sequence_uint32_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_int64_field + * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int64_field( + const std::vector& _unbounded_sequence_int64_field) +{ + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_int64_field + * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_int64_field( + std::vector&& _unbounded_sequence_int64_field) +{ + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_int64_field + * @return Constant reference to member unbounded_sequence_int64_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int64_field() const +{ + return m_unbounded_sequence_int64_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_int64_field + * @return Reference to member unbounded_sequence_int64_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_int64_field() +{ + return m_unbounded_sequence_int64_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_uint64_field + * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint64_field( + const std::vector& _unbounded_sequence_uint64_field) +{ + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_uint64_field + * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_uint64_field( + std::vector&& _unbounded_sequence_uint64_field) +{ + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_uint64_field + * @return Constant reference to member unbounded_sequence_uint64_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint64_field() const +{ + return m_unbounded_sequence_uint64_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_uint64_field + * @return Reference to member unbounded_sequence_uint64_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_uint64_field() +{ + return m_unbounded_sequence_uint64_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_float_field + * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_float_field( + const std::vector& _unbounded_sequence_float_field) +{ + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_float_field + * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_float_field( + std::vector&& _unbounded_sequence_float_field) +{ + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_float_field + * @return Constant reference to member unbounded_sequence_float_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_float_field() const +{ + return m_unbounded_sequence_float_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_float_field + * @return Reference to member unbounded_sequence_float_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_float_field() +{ + return m_unbounded_sequence_float_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_double_field + * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_double_field( + const std::vector& _unbounded_sequence_double_field) +{ + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_double_field + * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_double_field( + std::vector&& _unbounded_sequence_double_field) +{ + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_double_field + * @return Constant reference to member unbounded_sequence_double_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_double_field() const +{ + return m_unbounded_sequence_double_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_double_field + * @return Reference to member unbounded_sequence_double_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_double_field() +{ + return m_unbounded_sequence_double_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_bool_field + * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_bool_field( + const std::vector& _unbounded_sequence_bool_field) +{ + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_bool_field + * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_bool_field( + std::vector&& _unbounded_sequence_bool_field) +{ + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_bool_field + * @return Constant reference to member unbounded_sequence_bool_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_bool_field() const +{ + return m_unbounded_sequence_bool_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_bool_field + * @return Reference to member unbounded_sequence_bool_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_bool_field() +{ + return m_unbounded_sequence_bool_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_enum_field + * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_enum_field( + const std::vector& _unbounded_sequence_enum_field) +{ + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_enum_field + * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_enum_field( + std::vector&& _unbounded_sequence_enum_field) +{ + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_enum_field + * @return Constant reference to member unbounded_sequence_enum_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum_field() const +{ + return m_unbounded_sequence_enum_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_enum_field + * @return Reference to member unbounded_sequence_enum_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum_field() +{ + return m_unbounded_sequence_enum_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_enum2_field + * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_enum2_field( + const std::vector& _unbounded_sequence_enum2_field) +{ + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_enum2_field + * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_enum2_field( + std::vector&& _unbounded_sequence_enum2_field) +{ + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_enum2_field + * @return Constant reference to member unbounded_sequence_enum2_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum2_field() const +{ + return m_unbounded_sequence_enum2_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_enum2_field + * @return Reference to member unbounded_sequence_enum2_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_enum2_field() +{ + return m_unbounded_sequence_enum2_field; +} + + +/*! + * @brief This function copies the value in member unbounded_sequence_struct_field + * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_struct_field( + const std::vector& _unbounded_sequence_struct_field) +{ + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; +} + +/*! + * @brief This function moves the value in member unbounded_sequence_struct_field + * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field + */ +void eprosima::test::CompleteTestType::unbounded_sequence_struct_field( + std::vector&& _unbounded_sequence_struct_field) +{ + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); +} + +/*! + * @brief This function returns a constant reference to member unbounded_sequence_struct_field + * @return Constant reference to member unbounded_sequence_struct_field + */ +const std::vector& eprosima::test::CompleteTestType::unbounded_sequence_struct_field() const +{ + return m_unbounded_sequence_struct_field; +} + +/*! + * @brief This function returns a reference to member unbounded_sequence_struct_field + * @return Reference to member unbounded_sequence_struct_field + */ +std::vector& eprosima::test::CompleteTestType::unbounded_sequence_struct_field() +{ + return m_unbounded_sequence_struct_field; +} + + +eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType() +{ + +} + +eprosima::test::KeyedCompleteTestType::~KeyedCompleteTestType() +{ +} + +eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( + const KeyedCompleteTestType& x) +{ + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = x.m_string_field; + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; + m_array_char_field = x.m_array_char_field; + m_array_uint8_field = x.m_array_uint8_field; + m_array_int16_field = x.m_array_int16_field; + m_array_uint16_field = x.m_array_uint16_field; + m_array_int32_field = x.m_array_int32_field; + m_array_uint32_field = x.m_array_uint32_field; + m_array_int64_field = x.m_array_int64_field; + m_array_uint64_field = x.m_array_uint64_field; + m_array_float_field = x.m_array_float_field; + m_array_double_field = x.m_array_double_field; + m_array_bool_field = x.m_array_bool_field; + m_array_enum_field = x.m_array_enum_field; + m_array_enum2_field = x.m_array_enum2_field; + m_array_struct_field = x.m_array_struct_field; + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; +} + +eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( + KeyedCompleteTestType&& x) noexcept +{ + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); +} + +eprosima::test::KeyedCompleteTestType& eprosima::test::KeyedCompleteTestType::operator =( + const KeyedCompleteTestType& x) +{ + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; m_int64_field = x.m_int64_field; m_uint64_field = x.m_uint64_field; m_float_field = x.m_float_field; @@ -3022,6 +3839,21 @@ eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( m_enum_field = x.m_enum_field; m_enum2_field = x.m_enum2_field; m_struct_field = x.m_struct_field; + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = x.m_string_opt_field; + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = x.m_struct_opt_field; m_array_char_field = x.m_array_char_field; m_array_uint8_field = x.m_array_uint8_field; m_array_int16_field = x.m_array_int16_field; @@ -3064,753 +3896,1241 @@ eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; +} + +eprosima::test::KeyedCompleteTestType& eprosima::test::KeyedCompleteTestType::operator =( + KeyedCompleteTestType&& x) noexcept +{ + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + + return *this; +} + +bool eprosima::test::KeyedCompleteTestType::operator ==( + const KeyedCompleteTestType& x) const +{ + return (m_id == x.m_id && + m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); +} + +bool eprosima::test::KeyedCompleteTestType::operator !=( + const KeyedCompleteTestType& x) const +{ + return !(*this == x); +} + +/*! + * @brief This function sets a value in member id + * @param _id New value for member id + */ +void eprosima::test::KeyedCompleteTestType::id( + int32_t _id) +{ + m_id = _id; +} + +/*! + * @brief This function returns the value of member id + * @return Value of member id + */ +int32_t eprosima::test::KeyedCompleteTestType::id() const +{ + return m_id; +} + +/*! + * @brief This function returns a reference to member id + * @return Reference to member id + */ +int32_t& eprosima::test::KeyedCompleteTestType::id() +{ + return m_id; +} + + +/*! + * @brief This function sets a value in member char_field + * @param _char_field New value for member char_field + */ +void eprosima::test::KeyedCompleteTestType::char_field( + char _char_field) +{ + m_char_field = _char_field; +} + +/*! + * @brief This function returns the value of member char_field + * @return Value of member char_field + */ +char eprosima::test::KeyedCompleteTestType::char_field() const +{ + return m_char_field; +} + +/*! + * @brief This function returns a reference to member char_field + * @return Reference to member char_field + */ +char& eprosima::test::KeyedCompleteTestType::char_field() +{ + return m_char_field; +} + + +/*! + * @brief This function sets a value in member uint8_field + * @param _uint8_field New value for member uint8_field + */ +void eprosima::test::KeyedCompleteTestType::uint8_field( + uint8_t _uint8_field) +{ + m_uint8_field = _uint8_field; +} + +/*! + * @brief This function returns the value of member uint8_field + * @return Value of member uint8_field + */ +uint8_t eprosima::test::KeyedCompleteTestType::uint8_field() const +{ + return m_uint8_field; +} + +/*! + * @brief This function returns a reference to member uint8_field + * @return Reference to member uint8_field + */ +uint8_t& eprosima::test::KeyedCompleteTestType::uint8_field() +{ + return m_uint8_field; +} + + +/*! + * @brief This function sets a value in member int16_field + * @param _int16_field New value for member int16_field + */ +void eprosima::test::KeyedCompleteTestType::int16_field( + int16_t _int16_field) +{ + m_int16_field = _int16_field; +} + +/*! + * @brief This function returns the value of member int16_field + * @return Value of member int16_field + */ +int16_t eprosima::test::KeyedCompleteTestType::int16_field() const +{ + return m_int16_field; +} + +/*! + * @brief This function returns a reference to member int16_field + * @return Reference to member int16_field + */ +int16_t& eprosima::test::KeyedCompleteTestType::int16_field() +{ + return m_int16_field; +} + + +/*! + * @brief This function sets a value in member uint16_field + * @param _uint16_field New value for member uint16_field + */ +void eprosima::test::KeyedCompleteTestType::uint16_field( + uint16_t _uint16_field) +{ + m_uint16_field = _uint16_field; +} + +/*! + * @brief This function returns the value of member uint16_field + * @return Value of member uint16_field + */ +uint16_t eprosima::test::KeyedCompleteTestType::uint16_field() const +{ + return m_uint16_field; +} + +/*! + * @brief This function returns a reference to member uint16_field + * @return Reference to member uint16_field + */ +uint16_t& eprosima::test::KeyedCompleteTestType::uint16_field() +{ + return m_uint16_field; +} + + +/*! + * @brief This function sets a value in member int32_field + * @param _int32_field New value for member int32_field + */ +void eprosima::test::KeyedCompleteTestType::int32_field( + int32_t _int32_field) +{ + m_int32_field = _int32_field; +} + +/*! + * @brief This function returns the value of member int32_field + * @return Value of member int32_field + */ +int32_t eprosima::test::KeyedCompleteTestType::int32_field() const +{ + return m_int32_field; +} + +/*! + * @brief This function returns a reference to member int32_field + * @return Reference to member int32_field + */ +int32_t& eprosima::test::KeyedCompleteTestType::int32_field() +{ + return m_int32_field; +} + + +/*! + * @brief This function sets a value in member uint32_field + * @param _uint32_field New value for member uint32_field + */ +void eprosima::test::KeyedCompleteTestType::uint32_field( + uint32_t _uint32_field) +{ + m_uint32_field = _uint32_field; +} + +/*! + * @brief This function returns the value of member uint32_field + * @return Value of member uint32_field + */ +uint32_t eprosima::test::KeyedCompleteTestType::uint32_field() const +{ + return m_uint32_field; +} + +/*! + * @brief This function returns a reference to member uint32_field + * @return Reference to member uint32_field + */ +uint32_t& eprosima::test::KeyedCompleteTestType::uint32_field() +{ + return m_uint32_field; +} + + +/*! + * @brief This function sets a value in member int64_field + * @param _int64_field New value for member int64_field + */ +void eprosima::test::KeyedCompleteTestType::int64_field( + int64_t _int64_field) +{ + m_int64_field = _int64_field; +} + +/*! + * @brief This function returns the value of member int64_field + * @return Value of member int64_field + */ +int64_t eprosima::test::KeyedCompleteTestType::int64_field() const +{ + return m_int64_field; +} + +/*! + * @brief This function returns a reference to member int64_field + * @return Reference to member int64_field + */ +int64_t& eprosima::test::KeyedCompleteTestType::int64_field() +{ + return m_int64_field; } -eprosima::test::KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept + +/*! + * @brief This function sets a value in member uint64_field + * @param _uint64_field New value for member uint64_field + */ +void eprosima::test::KeyedCompleteTestType::uint64_field( + uint64_t _uint64_field) { - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + m_uint64_field = _uint64_field; +} + +/*! + * @brief This function returns the value of member uint64_field + * @return Value of member uint64_field + */ +uint64_t eprosima::test::KeyedCompleteTestType::uint64_field() const +{ + return m_uint64_field; +} + +/*! + * @brief This function returns a reference to member uint64_field + * @return Reference to member uint64_field + */ +uint64_t& eprosima::test::KeyedCompleteTestType::uint64_field() +{ + return m_uint64_field; +} + + +/*! + * @brief This function sets a value in member float_field + * @param _float_field New value for member float_field + */ +void eprosima::test::KeyedCompleteTestType::float_field( + float _float_field) +{ + m_float_field = _float_field; +} + +/*! + * @brief This function returns the value of member float_field + * @return Value of member float_field + */ +float eprosima::test::KeyedCompleteTestType::float_field() const +{ + return m_float_field; +} + +/*! + * @brief This function returns a reference to member float_field + * @return Reference to member float_field + */ +float& eprosima::test::KeyedCompleteTestType::float_field() +{ + return m_float_field; +} + + +/*! + * @brief This function sets a value in member double_field + * @param _double_field New value for member double_field + */ +void eprosima::test::KeyedCompleteTestType::double_field( + double _double_field) +{ + m_double_field = _double_field; +} + +/*! + * @brief This function returns the value of member double_field + * @return Value of member double_field + */ +double eprosima::test::KeyedCompleteTestType::double_field() const +{ + return m_double_field; +} + +/*! + * @brief This function returns a reference to member double_field + * @return Reference to member double_field + */ +double& eprosima::test::KeyedCompleteTestType::double_field() +{ + return m_double_field; +} + + +/*! + * @brief This function sets a value in member bool_field + * @param _bool_field New value for member bool_field + */ +void eprosima::test::KeyedCompleteTestType::bool_field( + bool _bool_field) +{ + m_bool_field = _bool_field; +} + +/*! + * @brief This function returns the value of member bool_field + * @return Value of member bool_field + */ +bool eprosima::test::KeyedCompleteTestType::bool_field() const +{ + return m_bool_field; +} + +/*! + * @brief This function returns a reference to member bool_field + * @return Reference to member bool_field + */ +bool& eprosima::test::KeyedCompleteTestType::bool_field() +{ + return m_bool_field; +} + + +/*! + * @brief This function copies the value in member string_field + * @param _string_field New value to be copied in member string_field + */ +void eprosima::test::KeyedCompleteTestType::string_field( + const std::string& _string_field) +{ + m_string_field = _string_field; +} + +/*! + * @brief This function moves the value in member string_field + * @param _string_field New value to be moved in member string_field + */ +void eprosima::test::KeyedCompleteTestType::string_field( + std::string&& _string_field) +{ + m_string_field = std::move(_string_field); +} + +/*! + * @brief This function returns a constant reference to member string_field + * @return Constant reference to member string_field + */ +const std::string& eprosima::test::KeyedCompleteTestType::string_field() const +{ + return m_string_field; +} + +/*! + * @brief This function returns a reference to member string_field + * @return Reference to member string_field + */ +std::string& eprosima::test::KeyedCompleteTestType::string_field() +{ + return m_string_field; +} + + +/*! + * @brief This function sets a value in member enum_field + * @param _enum_field New value for member enum_field + */ +void eprosima::test::KeyedCompleteTestType::enum_field( + eprosima::test::Color _enum_field) +{ + m_enum_field = _enum_field; +} + +/*! + * @brief This function returns the value of member enum_field + * @return Value of member enum_field + */ +eprosima::test::Color eprosima::test::KeyedCompleteTestType::enum_field() const +{ + return m_enum_field; +} + +/*! + * @brief This function returns a reference to member enum_field + * @return Reference to member enum_field + */ +eprosima::test::Color& eprosima::test::KeyedCompleteTestType::enum_field() +{ + return m_enum_field; +} + + +/*! + * @brief This function sets a value in member enum2_field + * @param _enum2_field New value for member enum2_field + */ +void eprosima::test::KeyedCompleteTestType::enum2_field( + eprosima::test::Material _enum2_field) +{ + m_enum2_field = _enum2_field; } -eprosima::test::KeyedCompleteTestType& eprosima::test::KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) +/*! + * @brief This function returns the value of member enum2_field + * @return Value of member enum2_field + */ +eprosima::test::Material eprosima::test::KeyedCompleteTestType::enum2_field() const { + return m_enum2_field; +} - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; +/*! + * @brief This function returns a reference to member enum2_field + * @return Reference to member enum2_field + */ +eprosima::test::Material& eprosima::test::KeyedCompleteTestType::enum2_field() +{ + return m_enum2_field; +} - return *this; + +/*! + * @brief This function copies the value in member struct_field + * @param _struct_field New value to be copied in member struct_field + */ +void eprosima::test::KeyedCompleteTestType::struct_field( + const eprosima::test::StructType& _struct_field) +{ + m_struct_field = _struct_field; } -eprosima::test::KeyedCompleteTestType& eprosima::test::KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept +/*! + * @brief This function moves the value in member struct_field + * @param _struct_field New value to be moved in member struct_field + */ +void eprosima::test::KeyedCompleteTestType::struct_field( + eprosima::test::StructType&& _struct_field) { + m_struct_field = std::move(_struct_field); +} - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); +/*! + * @brief This function returns a constant reference to member struct_field + * @return Constant reference to member struct_field + */ +const eprosima::test::StructType& eprosima::test::KeyedCompleteTestType::struct_field() const +{ + return m_struct_field; +} - return *this; +/*! + * @brief This function returns a reference to member struct_field + * @return Reference to member struct_field + */ +eprosima::test::StructType& eprosima::test::KeyedCompleteTestType::struct_field() +{ + return m_struct_field; } -bool eprosima::test::KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const + +/*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ +void eprosima::test::KeyedCompleteTestType::char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field) { - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + m_char_opt_field = _char_opt_field; +} + +/*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ +void eprosima::test::KeyedCompleteTestType::char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field) +{ + m_char_opt_field = std::move(_char_opt_field); +} + +/*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::char_opt_field() const +{ + return m_char_opt_field; +} + +/*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::char_opt_field() +{ + return m_char_opt_field; +} + + +/*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ +void eprosima::test::KeyedCompleteTestType::uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field) +{ + m_uint8_opt_field = _uint8_opt_field; } -bool eprosima::test::KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const +/*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ +void eprosima::test::KeyedCompleteTestType::uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field) { - return !(*this == x); + m_uint8_opt_field = std::move(_uint8_opt_field); } /*! - * @brief This function sets a value in member id - * @param _id New value for member id + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field */ -void eprosima::test::KeyedCompleteTestType::id( - int32_t _id) +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint8_opt_field() const { - m_id = _id; + return m_uint8_opt_field; } /*! - * @brief This function returns the value of member id - * @return Value of member id + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field */ -int32_t eprosima::test::KeyedCompleteTestType::id() const +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint8_opt_field() { - return m_id; + return m_uint8_opt_field; } + /*! - * @brief This function returns a reference to member id - * @return Reference to member id + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field */ -int32_t& eprosima::test::KeyedCompleteTestType::id() +void eprosima::test::KeyedCompleteTestType::int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field) { - return m_id; + m_int16_opt_field = _int16_opt_field; } - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field */ -void eprosima::test::KeyedCompleteTestType::char_field( - char _char_field) +void eprosima::test::KeyedCompleteTestType::int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field) { - m_char_field = _char_field; + m_int16_opt_field = std::move(_int16_opt_field); } /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field */ -char eprosima::test::KeyedCompleteTestType::char_field() const +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int16_opt_field() const { - return m_char_field; + return m_int16_opt_field; } /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field */ -char& eprosima::test::KeyedCompleteTestType::char_field() +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int16_opt_field() { - return m_char_field; + return m_int16_opt_field; } /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ -void eprosima::test::KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) +void eprosima::test::KeyedCompleteTestType::uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field) { - m_uint8_field = _uint8_field; + m_uint16_opt_field = _uint16_opt_field; } /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ -uint8_t eprosima::test::KeyedCompleteTestType::uint8_field() const +void eprosima::test::KeyedCompleteTestType::uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field) { - return m_uint8_field; + m_uint16_opt_field = std::move(_uint16_opt_field); } /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field */ -uint8_t& eprosima::test::KeyedCompleteTestType::uint8_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint16_opt_field() const { - return m_uint8_field; + return m_uint16_opt_field; } - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field */ -void eprosima::test::KeyedCompleteTestType::int16_field( - int16_t _int16_field) +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint16_opt_field() { - m_int16_field = _int16_field; + return m_uint16_opt_field; } + /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field */ -int16_t eprosima::test::KeyedCompleteTestType::int16_field() const +void eprosima::test::KeyedCompleteTestType::int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field) { - return m_int16_field; + m_int32_opt_field = _int32_opt_field; } /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field */ -int16_t& eprosima::test::KeyedCompleteTestType::int16_field() +void eprosima::test::KeyedCompleteTestType::int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field) { - return m_int16_field; + m_int32_opt_field = std::move(_int32_opt_field); } - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field */ -void eprosima::test::KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int32_opt_field() const { - m_uint16_field = _uint16_field; + return m_int32_opt_field; } /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field */ -uint16_t eprosima::test::KeyedCompleteTestType::uint16_field() const +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int32_opt_field() { - return m_uint16_field; + return m_int32_opt_field; } + /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ -uint16_t& eprosima::test::KeyedCompleteTestType::uint16_field() +void eprosima::test::KeyedCompleteTestType::uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field) { - return m_uint16_field; + m_uint32_opt_field = _uint32_opt_field; } - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ -void eprosima::test::KeyedCompleteTestType::int32_field( - int32_t _int32_field) +void eprosima::test::KeyedCompleteTestType::uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field) { - m_int32_field = _int32_field; + m_uint32_opt_field = std::move(_uint32_opt_field); } /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field */ -int32_t eprosima::test::KeyedCompleteTestType::int32_field() const +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint32_opt_field() const { - return m_int32_field; + return m_uint32_opt_field; } /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field */ -int32_t& eprosima::test::KeyedCompleteTestType::int32_field() +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint32_opt_field() { - return m_int32_field; + return m_uint32_opt_field; } /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field */ -void eprosima::test::KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) +void eprosima::test::KeyedCompleteTestType::int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field) { - m_uint32_field = _uint32_field; + m_int64_opt_field = _int64_opt_field; } /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field */ -uint32_t eprosima::test::KeyedCompleteTestType::uint32_field() const +void eprosima::test::KeyedCompleteTestType::int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field) { - return m_uint32_field; + m_int64_opt_field = std::move(_int64_opt_field); } /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field */ -uint32_t& eprosima::test::KeyedCompleteTestType::uint32_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int64_opt_field() const { - return m_uint32_field; + return m_int64_opt_field; } - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field */ -void eprosima::test::KeyedCompleteTestType::int64_field( - int64_t _int64_field) +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::int64_opt_field() { - m_int64_field = _int64_field; + return m_int64_opt_field; } + /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ -int64_t eprosima::test::KeyedCompleteTestType::int64_field() const +void eprosima::test::KeyedCompleteTestType::uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field) { - return m_int64_field; + m_uint64_opt_field = _uint64_opt_field; } /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ -int64_t& eprosima::test::KeyedCompleteTestType::int64_field() +void eprosima::test::KeyedCompleteTestType::uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field) { - return m_int64_field; + m_uint64_opt_field = std::move(_uint64_opt_field); } - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field */ -void eprosima::test::KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint64_opt_field() const { - m_uint64_field = _uint64_field; + return m_uint64_opt_field; } /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field */ -uint64_t eprosima::test::KeyedCompleteTestType::uint64_field() const +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::uint64_opt_field() { - return m_uint64_field; + return m_uint64_opt_field; } + /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field */ -uint64_t& eprosima::test::KeyedCompleteTestType::uint64_field() +void eprosima::test::KeyedCompleteTestType::float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field) { - return m_uint64_field; + m_float_opt_field = _float_opt_field; } - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field */ -void eprosima::test::KeyedCompleteTestType::float_field( - float _float_field) +void eprosima::test::KeyedCompleteTestType::float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field) { - m_float_field = _float_field; + m_float_opt_field = std::move(_float_opt_field); } /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field */ -float eprosima::test::KeyedCompleteTestType::float_field() const +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::float_opt_field() const { - return m_float_field; + return m_float_opt_field; } /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field */ -float& eprosima::test::KeyedCompleteTestType::float_field() +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::float_opt_field() { - return m_float_field; + return m_float_opt_field; } /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field */ -void eprosima::test::KeyedCompleteTestType::double_field( - double _double_field) +void eprosima::test::KeyedCompleteTestType::double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field) { - m_double_field = _double_field; + m_double_opt_field = _double_opt_field; } /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field */ -double eprosima::test::KeyedCompleteTestType::double_field() const +void eprosima::test::KeyedCompleteTestType::double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field) { - return m_double_field; + m_double_opt_field = std::move(_double_opt_field); } /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field */ -double& eprosima::test::KeyedCompleteTestType::double_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::double_opt_field() const { - return m_double_field; + return m_double_opt_field; +} + +/*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::double_opt_field() +{ + return m_double_opt_field; } /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field */ -void eprosima::test::KeyedCompleteTestType::bool_field( - bool _bool_field) +void eprosima::test::KeyedCompleteTestType::bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field) { - m_bool_field = _bool_field; + m_bool_opt_field = _bool_opt_field; } /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field */ -bool eprosima::test::KeyedCompleteTestType::bool_field() const +void eprosima::test::KeyedCompleteTestType::bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field) { - return m_bool_field; + m_bool_opt_field = std::move(_bool_opt_field); } /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field */ -bool& eprosima::test::KeyedCompleteTestType::bool_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::bool_opt_field() const { - return m_bool_field; + return m_bool_opt_field; +} + +/*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::bool_opt_field() +{ + return m_bool_opt_field; } /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field */ -void eprosima::test::KeyedCompleteTestType::string_field( - const std::string& _string_field) +void eprosima::test::KeyedCompleteTestType::string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field) { - m_string_field = _string_field; + m_string_opt_field = _string_opt_field; } /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field */ -void eprosima::test::KeyedCompleteTestType::string_field( - std::string&& _string_field) +void eprosima::test::KeyedCompleteTestType::string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field) { - m_string_field = std::move(_string_field); + m_string_opt_field = std::move(_string_opt_field); } /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field */ -const std::string& eprosima::test::KeyedCompleteTestType::string_field() const +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::string_opt_field() const { - return m_string_field; + return m_string_opt_field; } /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field */ -std::string& eprosima::test::KeyedCompleteTestType::string_field() +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::string_opt_field() { - return m_string_field; + return m_string_opt_field; } /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field */ -void eprosima::test::KeyedCompleteTestType::enum_field( - eprosima::test::Color _enum_field) +void eprosima::test::KeyedCompleteTestType::enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field) { - m_enum_field = _enum_field; + m_enum_opt_field = _enum_opt_field; } /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field */ -eprosima::test::Color eprosima::test::KeyedCompleteTestType::enum_field() const +void eprosima::test::KeyedCompleteTestType::enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field) { - return m_enum_field; + m_enum_opt_field = std::move(_enum_opt_field); } /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field */ -eprosima::test::Color& eprosima::test::KeyedCompleteTestType::enum_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::enum_opt_field() const { - return m_enum_field; + return m_enum_opt_field; +} + +/*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::enum_opt_field() +{ + return m_enum_opt_field; } /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ -void eprosima::test::KeyedCompleteTestType::enum2_field( - eprosima::test::Material _enum2_field) +void eprosima::test::KeyedCompleteTestType::enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field) { - m_enum2_field = _enum2_field; + m_enum2_opt_field = _enum2_opt_field; } /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ -eprosima::test::Material eprosima::test::KeyedCompleteTestType::enum2_field() const +void eprosima::test::KeyedCompleteTestType::enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field) { - return m_enum2_field; + m_enum2_opt_field = std::move(_enum2_opt_field); } /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field */ -eprosima::test::Material& eprosima::test::KeyedCompleteTestType::enum2_field() +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::enum2_opt_field() const { - return m_enum2_field; + return m_enum2_opt_field; +} + +/*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::enum2_opt_field() +{ + return m_enum2_opt_field; } /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field */ -void eprosima::test::KeyedCompleteTestType::struct_field( - const eprosima::test::StructType& _struct_field) +void eprosima::test::KeyedCompleteTestType::struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field) { - m_struct_field = _struct_field; + m_struct_opt_field = _struct_opt_field; } /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field */ -void eprosima::test::KeyedCompleteTestType::struct_field( - eprosima::test::StructType&& _struct_field) +void eprosima::test::KeyedCompleteTestType::struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field) { - m_struct_field = std::move(_struct_field); + m_struct_opt_field = std::move(_struct_opt_field); } /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field */ -const eprosima::test::StructType& eprosima::test::KeyedCompleteTestType::struct_field() const +const eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::struct_opt_field() const { - return m_struct_field; + return m_struct_opt_field; } /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field */ -eprosima::test::StructType& eprosima::test::KeyedCompleteTestType::struct_field() +eprosima::fastcdr::optional& eprosima::test::KeyedCompleteTestType::struct_opt_field() { - return m_struct_field; + return m_struct_opt_field; } diff --git a/fastdds_python/test/types/test_modules.h b/fastdds_python/test/types/test_modules.h index f76ddcaf..7babade9 100644 --- a/fastdds_python/test/types/test_modules.h +++ b/fastdds_python/test/types/test_modules.h @@ -833,6 +833,411 @@ namespace eprosima { eProsima_user_DllExport eprosima::test::StructType& struct_field(); + /*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field); + + /*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field); + + /*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + + /*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + + + /*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field); + + /*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field); + + /*! + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + + /*! + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + + + /*! + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field); + + /*! + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field); + + /*! + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + + /*! + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + + + /*! + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field); + + /*! + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field); + + /*! + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + + /*! + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + + + /*! + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field); + + /*! + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field); + + /*! + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + + /*! + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + + + /*! + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field); + + /*! + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field); + + /*! + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + + /*! + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + + + /*! + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field); + + /*! + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field); + + /*! + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + + /*! + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + + + /*! + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field); + + /*! + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field); + + /*! + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + + /*! + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + + + /*! + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field); + + /*! + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field); + + /*! + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + + /*! + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + + + /*! + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field); + + /*! + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field); + + /*! + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + + /*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + + + /*! + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field); + + /*! + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field); + + /*! + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + + /*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + + + /*! + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field); + + /*! + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field); + + /*! + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + + /*! + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + + + /*! + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field); + + /*! + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field); + + /*! + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + + /*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + + + /*! + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field); + + /*! + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field); + + /*! + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + + /*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + + + /*! + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field); + + /*! + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field); + + /*! + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + + /*! + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + + /*! * @brief This function copies the value in member array_char_field * @param _array_char_field New value to be copied in member array_char_field @@ -1983,6 +2388,21 @@ namespace eprosima { eprosima::test::Color m_enum_field{eprosima::test::RED}; eprosima::test::Material m_enum2_field{eprosima::test::WOOD}; eprosima::test::StructType m_struct_field; + eprosima::fastcdr::optional m_char_opt_field; + eprosima::fastcdr::optional m_uint8_opt_field; + eprosima::fastcdr::optional m_int16_opt_field; + eprosima::fastcdr::optional m_uint16_opt_field; + eprosima::fastcdr::optional m_int32_opt_field; + eprosima::fastcdr::optional m_uint32_opt_field; + eprosima::fastcdr::optional m_int64_opt_field; + eprosima::fastcdr::optional m_uint64_opt_field; + eprosima::fastcdr::optional m_float_opt_field; + eprosima::fastcdr::optional m_double_opt_field; + eprosima::fastcdr::optional m_bool_opt_field; + eprosima::fastcdr::optional m_string_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; @@ -2421,6 +2841,411 @@ namespace eprosima { eProsima_user_DllExport eprosima::test::StructType& struct_field(); + /*! + * @brief This function copies the value in member char_opt_field + * @param _char_opt_field New value to be copied in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + const eprosima::fastcdr::optional& _char_opt_field); + + /*! + * @brief This function moves the value in member char_opt_field + * @param _char_opt_field New value to be moved in member char_opt_field + */ + eProsima_user_DllExport void char_opt_field( + eprosima::fastcdr::optional&& _char_opt_field); + + /*! + * @brief This function returns a constant reference to member char_opt_field + * @return Constant reference to member char_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + + /*! + * @brief This function returns a reference to member char_opt_field + * @return Reference to member char_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + + + /*! + * @brief This function copies the value in member uint8_opt_field + * @param _uint8_opt_field New value to be copied in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + const eprosima::fastcdr::optional& _uint8_opt_field); + + /*! + * @brief This function moves the value in member uint8_opt_field + * @param _uint8_opt_field New value to be moved in member uint8_opt_field + */ + eProsima_user_DllExport void uint8_opt_field( + eprosima::fastcdr::optional&& _uint8_opt_field); + + /*! + * @brief This function returns a constant reference to member uint8_opt_field + * @return Constant reference to member uint8_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + + /*! + * @brief This function returns a reference to member uint8_opt_field + * @return Reference to member uint8_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + + + /*! + * @brief This function copies the value in member int16_opt_field + * @param _int16_opt_field New value to be copied in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + const eprosima::fastcdr::optional& _int16_opt_field); + + /*! + * @brief This function moves the value in member int16_opt_field + * @param _int16_opt_field New value to be moved in member int16_opt_field + */ + eProsima_user_DllExport void int16_opt_field( + eprosima::fastcdr::optional&& _int16_opt_field); + + /*! + * @brief This function returns a constant reference to member int16_opt_field + * @return Constant reference to member int16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + + /*! + * @brief This function returns a reference to member int16_opt_field + * @return Reference to member int16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + + + /*! + * @brief This function copies the value in member uint16_opt_field + * @param _uint16_opt_field New value to be copied in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + const eprosima::fastcdr::optional& _uint16_opt_field); + + /*! + * @brief This function moves the value in member uint16_opt_field + * @param _uint16_opt_field New value to be moved in member uint16_opt_field + */ + eProsima_user_DllExport void uint16_opt_field( + eprosima::fastcdr::optional&& _uint16_opt_field); + + /*! + * @brief This function returns a constant reference to member uint16_opt_field + * @return Constant reference to member uint16_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + + /*! + * @brief This function returns a reference to member uint16_opt_field + * @return Reference to member uint16_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + + + /*! + * @brief This function copies the value in member int32_opt_field + * @param _int32_opt_field New value to be copied in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + const eprosima::fastcdr::optional& _int32_opt_field); + + /*! + * @brief This function moves the value in member int32_opt_field + * @param _int32_opt_field New value to be moved in member int32_opt_field + */ + eProsima_user_DllExport void int32_opt_field( + eprosima::fastcdr::optional&& _int32_opt_field); + + /*! + * @brief This function returns a constant reference to member int32_opt_field + * @return Constant reference to member int32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + + /*! + * @brief This function returns a reference to member int32_opt_field + * @return Reference to member int32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + + + /*! + * @brief This function copies the value in member uint32_opt_field + * @param _uint32_opt_field New value to be copied in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + const eprosima::fastcdr::optional& _uint32_opt_field); + + /*! + * @brief This function moves the value in member uint32_opt_field + * @param _uint32_opt_field New value to be moved in member uint32_opt_field + */ + eProsima_user_DllExport void uint32_opt_field( + eprosima::fastcdr::optional&& _uint32_opt_field); + + /*! + * @brief This function returns a constant reference to member uint32_opt_field + * @return Constant reference to member uint32_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + + /*! + * @brief This function returns a reference to member uint32_opt_field + * @return Reference to member uint32_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + + + /*! + * @brief This function copies the value in member int64_opt_field + * @param _int64_opt_field New value to be copied in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + const eprosima::fastcdr::optional& _int64_opt_field); + + /*! + * @brief This function moves the value in member int64_opt_field + * @param _int64_opt_field New value to be moved in member int64_opt_field + */ + eProsima_user_DllExport void int64_opt_field( + eprosima::fastcdr::optional&& _int64_opt_field); + + /*! + * @brief This function returns a constant reference to member int64_opt_field + * @return Constant reference to member int64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + + /*! + * @brief This function returns a reference to member int64_opt_field + * @return Reference to member int64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + + + /*! + * @brief This function copies the value in member uint64_opt_field + * @param _uint64_opt_field New value to be copied in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + const eprosima::fastcdr::optional& _uint64_opt_field); + + /*! + * @brief This function moves the value in member uint64_opt_field + * @param _uint64_opt_field New value to be moved in member uint64_opt_field + */ + eProsima_user_DllExport void uint64_opt_field( + eprosima::fastcdr::optional&& _uint64_opt_field); + + /*! + * @brief This function returns a constant reference to member uint64_opt_field + * @return Constant reference to member uint64_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + + /*! + * @brief This function returns a reference to member uint64_opt_field + * @return Reference to member uint64_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + + + /*! + * @brief This function copies the value in member float_opt_field + * @param _float_opt_field New value to be copied in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + const eprosima::fastcdr::optional& _float_opt_field); + + /*! + * @brief This function moves the value in member float_opt_field + * @param _float_opt_field New value to be moved in member float_opt_field + */ + eProsima_user_DllExport void float_opt_field( + eprosima::fastcdr::optional&& _float_opt_field); + + /*! + * @brief This function returns a constant reference to member float_opt_field + * @return Constant reference to member float_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + + /*! + * @brief This function returns a reference to member float_opt_field + * @return Reference to member float_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + + + /*! + * @brief This function copies the value in member double_opt_field + * @param _double_opt_field New value to be copied in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + const eprosima::fastcdr::optional& _double_opt_field); + + /*! + * @brief This function moves the value in member double_opt_field + * @param _double_opt_field New value to be moved in member double_opt_field + */ + eProsima_user_DllExport void double_opt_field( + eprosima::fastcdr::optional&& _double_opt_field); + + /*! + * @brief This function returns a constant reference to member double_opt_field + * @return Constant reference to member double_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + + /*! + * @brief This function returns a reference to member double_opt_field + * @return Reference to member double_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + + + /*! + * @brief This function copies the value in member bool_opt_field + * @param _bool_opt_field New value to be copied in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + const eprosima::fastcdr::optional& _bool_opt_field); + + /*! + * @brief This function moves the value in member bool_opt_field + * @param _bool_opt_field New value to be moved in member bool_opt_field + */ + eProsima_user_DllExport void bool_opt_field( + eprosima::fastcdr::optional&& _bool_opt_field); + + /*! + * @brief This function returns a constant reference to member bool_opt_field + * @return Constant reference to member bool_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + + /*! + * @brief This function returns a reference to member bool_opt_field + * @return Reference to member bool_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + + + /*! + * @brief This function copies the value in member string_opt_field + * @param _string_opt_field New value to be copied in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + const eprosima::fastcdr::optional& _string_opt_field); + + /*! + * @brief This function moves the value in member string_opt_field + * @param _string_opt_field New value to be moved in member string_opt_field + */ + eProsima_user_DllExport void string_opt_field( + eprosima::fastcdr::optional&& _string_opt_field); + + /*! + * @brief This function returns a constant reference to member string_opt_field + * @return Constant reference to member string_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + + /*! + * @brief This function returns a reference to member string_opt_field + * @return Reference to member string_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + + + /*! + * @brief This function copies the value in member enum_opt_field + * @param _enum_opt_field New value to be copied in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + const eprosima::fastcdr::optional& _enum_opt_field); + + /*! + * @brief This function moves the value in member enum_opt_field + * @param _enum_opt_field New value to be moved in member enum_opt_field + */ + eProsima_user_DllExport void enum_opt_field( + eprosima::fastcdr::optional&& _enum_opt_field); + + /*! + * @brief This function returns a constant reference to member enum_opt_field + * @return Constant reference to member enum_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + + /*! + * @brief This function returns a reference to member enum_opt_field + * @return Reference to member enum_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + + + /*! + * @brief This function copies the value in member enum2_opt_field + * @param _enum2_opt_field New value to be copied in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + const eprosima::fastcdr::optional& _enum2_opt_field); + + /*! + * @brief This function moves the value in member enum2_opt_field + * @param _enum2_opt_field New value to be moved in member enum2_opt_field + */ + eProsima_user_DllExport void enum2_opt_field( + eprosima::fastcdr::optional&& _enum2_opt_field); + + /*! + * @brief This function returns a constant reference to member enum2_opt_field + * @return Constant reference to member enum2_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + + /*! + * @brief This function returns a reference to member enum2_opt_field + * @return Reference to member enum2_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + + + /*! + * @brief This function copies the value in member struct_opt_field + * @param _struct_opt_field New value to be copied in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + const eprosima::fastcdr::optional& _struct_opt_field); + + /*! + * @brief This function moves the value in member struct_opt_field + * @param _struct_opt_field New value to be moved in member struct_opt_field + */ + eProsima_user_DllExport void struct_opt_field( + eprosima::fastcdr::optional&& _struct_opt_field); + + /*! + * @brief This function returns a constant reference to member struct_opt_field + * @return Constant reference to member struct_opt_field + */ + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + + /*! + * @brief This function returns a reference to member struct_opt_field + * @return Reference to member struct_opt_field + */ + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + + /*! * @brief This function copies the value in member array_char_field * @param _array_char_field New value to be copied in member array_char_field @@ -3572,6 +4397,21 @@ namespace eprosima { eprosima::test::Color m_enum_field{eprosima::test::RED}; eprosima::test::Material m_enum2_field{eprosima::test::WOOD}; eprosima::test::StructType m_struct_field; + eprosima::fastcdr::optional m_char_opt_field; + eprosima::fastcdr::optional m_uint8_opt_field; + eprosima::fastcdr::optional m_int16_opt_field; + eprosima::fastcdr::optional m_uint16_opt_field; + eprosima::fastcdr::optional m_int32_opt_field; + eprosima::fastcdr::optional m_uint32_opt_field; + eprosima::fastcdr::optional m_int64_opt_field; + eprosima::fastcdr::optional m_uint64_opt_field; + eprosima::fastcdr::optional m_float_opt_field; + eprosima::fastcdr::optional m_double_opt_field; + eprosima::fastcdr::optional m_bool_opt_field; + eprosima::fastcdr::optional m_string_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; diff --git a/fastdds_python/test/types/test_modules.i b/fastdds_python/test/types/test_modules.i index 69c0553d..790133f4 100644 --- a/fastdds_python/test/types/test_modules.i +++ b/fastdds_python/test/types/test_modules.i @@ -45,10 +45,25 @@ #include %} +%import(module="fastdds") "fastcdr/xcdr/optional.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp" %import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp" +%define %traits_penumn(Type...) + %fragment(SWIG_Traits_frag(Type),"header", + fragment="StdTraits") { +namespace swig { + template <> struct traits< Type > { + typedef value_category category; + static const char* type_name() { return #Type; } + }; +} +} +%enddef + +%traits_penumn(enum eprosima::test::Color); +%traits_penumn(enum eprosima::test::Material); //////////////////////////////////////////////////////// // Binding for class eprosima::test::StructType //////////////////////////////////////////////////////// @@ -68,6 +83,7 @@ %rename("%s") eprosima::test::StructType::char_field() const; + %ignore eprosima::test::StructType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -77,6 +93,7 @@ %rename("%s") eprosima::test::StructType::uint8_field() const; + %ignore eprosima::test::StructType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -86,6 +103,7 @@ %rename("%s") eprosima::test::StructType::int16_field() const; + %ignore eprosima::test::StructType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -95,6 +113,7 @@ %rename("%s") eprosima::test::StructType::uint16_field() const; + %ignore eprosima::test::StructType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -104,6 +123,7 @@ %rename("%s") eprosima::test::StructType::int32_field() const; + %ignore eprosima::test::StructType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -113,6 +133,7 @@ %rename("%s") eprosima::test::StructType::uint32_field() const; + %ignore eprosima::test::StructType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -122,6 +143,7 @@ %rename("%s") eprosima::test::StructType::int64_field() const; + %ignore eprosima::test::StructType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -131,6 +153,7 @@ %rename("%s") eprosima::test::StructType::uint64_field() const; + %ignore eprosima::test::StructType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -140,6 +163,7 @@ %rename("%s") eprosima::test::StructType::float_field() const; + %ignore eprosima::test::StructType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -149,6 +173,7 @@ %rename("%s") eprosima::test::StructType::double_field() const; + %ignore eprosima::test::StructType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -158,6 +183,7 @@ %rename("%s") eprosima::test::StructType::bool_field() const; + %ignore eprosima::test::StructType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -167,6 +193,7 @@ %rename("%s") eprosima::test::StructType::string_field() const; + %ignore eprosima::test::StructType::enum_field(eprosima::test::Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -176,6 +203,7 @@ %rename("%s") eprosima::test::StructType::enum_field() const; + %ignore eprosima::test::StructType::enum2_field(eprosima::test::Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -222,6 +250,7 @@ %rename("%s") eprosima::test::CompleteTestType::char_field() const; + %ignore eprosima::test::CompleteTestType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -231,6 +260,7 @@ %rename("%s") eprosima::test::CompleteTestType::uint8_field() const; + %ignore eprosima::test::CompleteTestType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -240,6 +270,7 @@ %rename("%s") eprosima::test::CompleteTestType::int16_field() const; + %ignore eprosima::test::CompleteTestType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -249,6 +280,7 @@ %rename("%s") eprosima::test::CompleteTestType::uint16_field() const; + %ignore eprosima::test::CompleteTestType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -258,6 +290,7 @@ %rename("%s") eprosima::test::CompleteTestType::int32_field() const; + %ignore eprosima::test::CompleteTestType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -267,6 +300,7 @@ %rename("%s") eprosima::test::CompleteTestType::uint32_field() const; + %ignore eprosima::test::CompleteTestType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -276,6 +310,7 @@ %rename("%s") eprosima::test::CompleteTestType::int64_field() const; + %ignore eprosima::test::CompleteTestType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -285,6 +320,7 @@ %rename("%s") eprosima::test::CompleteTestType::uint64_field() const; + %ignore eprosima::test::CompleteTestType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -294,6 +330,7 @@ %rename("%s") eprosima::test::CompleteTestType::float_field() const; + %ignore eprosima::test::CompleteTestType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -303,6 +340,7 @@ %rename("%s") eprosima::test::CompleteTestType::double_field() const; + %ignore eprosima::test::CompleteTestType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -312,6 +350,7 @@ %rename("%s") eprosima::test::CompleteTestType::bool_field() const; + %ignore eprosima::test::CompleteTestType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -321,6 +360,7 @@ %rename("%s") eprosima::test::CompleteTestType::string_field() const; + %ignore eprosima::test::CompleteTestType::enum_field(eprosima::test::Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -330,6 +370,7 @@ %rename("%s") eprosima::test::CompleteTestType::enum_field() const; + %ignore eprosima::test::CompleteTestType::enum2_field(eprosima::test::Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -339,6 +380,7 @@ %rename("%s") eprosima::test::CompleteTestType::enum2_field() const; + %ignore eprosima::test::CompleteTestType::struct_field(eprosima::test::StructType&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -348,6 +390,352 @@ %rename("%s") eprosima::test::CompleteTestType::struct_field() const; + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(charOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + char get_value() const { + return $self->value(); + } + + void set_value(const char& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::char_opt_field(char&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::char_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::char_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint8_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint8_t get_value() const { + return $self->value(); + } + + void set_value(const uint8_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::uint8_opt_field(uint8_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::uint8_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::uint8_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int16_t get_value() const { + return $self->value(); + } + + void set_value(const int16_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::int16_opt_field(int16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::int16_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::int16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint16_t get_value() const { + return $self->value(); + } + + void set_value(const uint16_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::uint16_opt_field(uint16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::uint16_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::uint16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int32_t get_value() const { + return $self->value(); + } + + void set_value(const int32_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::int32_opt_field(int32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::int32_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::int32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint32_t get_value() const { + return $self->value(); + } + + void set_value(const uint32_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::uint32_opt_field(uint32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::uint32_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::uint32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int64_t get_value() const { + return $self->value(); + } + + void set_value(const int64_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::int64_opt_field(int64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::int64_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::int64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint64_t get_value() const { + return $self->value(); + } + + void set_value(const uint64_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::uint64_opt_field(uint64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::uint64_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::uint64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(floatOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + float get_value() const { + return $self->value(); + } + + void set_value(const float& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::float_opt_field(float&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::float_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::float_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(doubleOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + double get_value() const { + return $self->value(); + } + + void set_value(const double& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::double_opt_field(double&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::double_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::double_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(boolOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + bool get_value() const { + return $self->value(); + } + + void set_value(const bool& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::bool_opt_field(bool&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::bool_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::bool_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(stringOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + std::string get_value() const { + return $self->value(); + } + + void set_value(const std::string& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::string_opt_field(std::string&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::string_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::string_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(ColorOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::Color get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::Color& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::enum_opt_field(eprosima::test::Color&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::enum_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::enum_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(MaterialOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::Material get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::Material& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::enum2_opt_field(eprosima::test::Material&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::enum2_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::enum2_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(StructTypeOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::StructType get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::StructType& value) { + *$self = value; + } +} + +%ignore eprosima::test::CompleteTestType::struct_opt_field(eprosima::test::StructType&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::CompleteTestType::struct_opt_field(); +%rename("%s") eprosima::test::CompleteTestType::struct_opt_field() const; + + + %ignore eprosima::test::CompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -363,6 +751,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -378,6 +767,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -393,6 +783,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -408,6 +799,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -423,6 +815,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -438,6 +831,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -453,6 +847,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -468,6 +863,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -483,6 +879,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -498,6 +895,7 @@ } } + %ignore eprosima::test::CompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -513,43 +911,47 @@ } } + %ignore eprosima::test::CompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_enum_field() const; -%template(eprosima_test_Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { - const eprosima::test::Color* get_buffer() const + const enum eprosima::test::Color* get_buffer() const { return self->data(); } } + %ignore eprosima::test::CompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_enum2_field() const; -%template(eprosima_test_Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { - const eprosima::test::Material* get_buffer() const + const enum eprosima::test::Material* get_buffer() const { return self->data(); } } + %ignore eprosima::test::CompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_struct_field() const; -%template(eprosima_test_StructType_3_array) std::array; +%template(StructType_3_array) std::array; + %ignore eprosima::test::CompleteTestType::bounded_sequence_char_field(std::vector&&); @@ -565,9 +967,8 @@ } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_uint8_field(std::vector&&); @@ -583,9 +984,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_int16_field(std::vector&&); @@ -601,9 +1001,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_uint16_field(std::vector&&); @@ -619,9 +1018,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_int32_field(std::vector&&); @@ -637,9 +1035,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_uint32_field(std::vector&&); @@ -655,9 +1052,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_int64_field(std::vector&&); @@ -673,9 +1069,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_uint64_field(std::vector&&); @@ -691,9 +1086,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_float_field(std::vector&&); @@ -709,9 +1103,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_double_field(std::vector&&); @@ -727,9 +1120,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_bool_field(std::vector&&); @@ -737,9 +1129,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::bounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_enum_field(std::vector&&); @@ -755,9 +1146,8 @@ bool_vector } } -%template( -eprosima_test_Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_enum2_field(std::vector&&); @@ -773,9 +1163,8 @@ eprosima_test_Color_vector } } -%template( -eprosima_test_Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore eprosima::test::CompleteTestType::bounded_sequence_struct_field(std::vector&&); @@ -783,9 +1172,8 @@ eprosima_test_Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::bounded_sequence_struct_field() const; -%template( -eprosima_test_StructType_vector -) std::vector; +%template(StructType_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_char_field(std::vector&&); @@ -801,9 +1189,8 @@ eprosima_test_StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_uint8_field(std::vector&&); @@ -819,9 +1206,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_int16_field(std::vector&&); @@ -837,9 +1223,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_uint16_field(std::vector&&); @@ -855,9 +1240,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_int32_field(std::vector&&); @@ -873,9 +1257,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_uint32_field(std::vector&&); @@ -891,9 +1274,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_int64_field(std::vector&&); @@ -909,9 +1291,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_uint64_field(std::vector&&); @@ -927,9 +1308,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_float_field(std::vector&&); @@ -945,9 +1325,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_double_field(std::vector&&); @@ -963,9 +1342,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_bool_field(std::vector&&); @@ -973,9 +1351,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::unbounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_enum_field(std::vector&&); @@ -991,9 +1368,8 @@ bool_vector } } -%template( -eprosima_test_Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_enum2_field(std::vector&&); @@ -1009,9 +1385,8 @@ eprosima_test_Color_vector } } -%template( -eprosima_test_Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore eprosima::test::CompleteTestType::unbounded_sequence_struct_field(std::vector&&); @@ -1019,9 +1394,7 @@ eprosima_test_Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::unbounded_sequence_struct_field() const; -%template( -eprosima_test_StructType_vector -) std::vector; +%template(StructType_vector) std::vector; %template(_CompleteTestTypeSeq) eprosima::fastdds::dds::LoanableTypedCollection; @@ -1058,6 +1431,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::id() const; + %ignore eprosima::test::KeyedCompleteTestType::char_field(char&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1067,6 +1441,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::char_field() const; + %ignore eprosima::test::KeyedCompleteTestType::uint8_field(uint8_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1076,6 +1451,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::uint8_field() const; + %ignore eprosima::test::KeyedCompleteTestType::int16_field(int16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1085,6 +1461,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::int16_field() const; + %ignore eprosima::test::KeyedCompleteTestType::uint16_field(uint16_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1094,6 +1471,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::uint16_field() const; + %ignore eprosima::test::KeyedCompleteTestType::int32_field(int32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1103,6 +1481,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::int32_field() const; + %ignore eprosima::test::KeyedCompleteTestType::uint32_field(uint32_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1112,6 +1491,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::uint32_field() const; + %ignore eprosima::test::KeyedCompleteTestType::int64_field(int64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1121,6 +1501,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::int64_field() const; + %ignore eprosima::test::KeyedCompleteTestType::uint64_field(uint64_t&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1130,6 +1511,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::uint64_field() const; + %ignore eprosima::test::KeyedCompleteTestType::float_field(float&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1139,6 +1521,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::float_field() const; + %ignore eprosima::test::KeyedCompleteTestType::double_field(double&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1148,6 +1531,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::double_field() const; + %ignore eprosima::test::KeyedCompleteTestType::bool_field(bool&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1157,6 +1541,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::bool_field() const; + %ignore eprosima::test::KeyedCompleteTestType::string_field(std::string&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1166,6 +1551,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::string_field() const; + %ignore eprosima::test::KeyedCompleteTestType::enum_field(eprosima::test::Color&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1175,6 +1561,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::enum_field() const; + %ignore eprosima::test::KeyedCompleteTestType::enum2_field(eprosima::test::Material&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1184,6 +1571,7 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::enum2_field() const; + %ignore eprosima::test::KeyedCompleteTestType::struct_field(eprosima::test::StructType&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1193,6 +1581,352 @@ eprosima_test_StructType_vector %rename("%s") eprosima::test::KeyedCompleteTestType::struct_field() const; + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(charOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + char get_value() const { + return $self->value(); + } + + void set_value(const char& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::char_opt_field(char&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::char_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::char_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint8_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint8_t get_value() const { + return $self->value(); + } + + void set_value(const uint8_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::uint8_opt_field(uint8_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::uint8_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::uint8_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int16_t get_value() const { + return $self->value(); + } + + void set_value(const int16_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::int16_opt_field(int16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::int16_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::int16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint16_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint16_t get_value() const { + return $self->value(); + } + + void set_value(const uint16_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::uint16_opt_field(uint16_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::uint16_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::uint16_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int32_t get_value() const { + return $self->value(); + } + + void set_value(const int32_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::int32_opt_field(int32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::int32_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::int32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint32_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint32_t get_value() const { + return $self->value(); + } + + void set_value(const uint32_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::uint32_opt_field(uint32_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::uint32_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::uint32_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(int64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + int64_t get_value() const { + return $self->value(); + } + + void set_value(const int64_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::int64_opt_field(int64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::int64_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::int64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(uint64_tOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + uint64_t get_value() const { + return $self->value(); + } + + void set_value(const uint64_t& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::uint64_opt_field(uint64_t&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::uint64_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::uint64_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(floatOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + float get_value() const { + return $self->value(); + } + + void set_value(const float& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::float_opt_field(float&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::float_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::float_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(doubleOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + double get_value() const { + return $self->value(); + } + + void set_value(const double& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::double_opt_field(double&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::double_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::double_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(boolOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + bool get_value() const { + return $self->value(); + } + + void set_value(const bool& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::bool_opt_field(bool&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::bool_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::bool_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(stringOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + std::string get_value() const { + return $self->value(); + } + + void set_value(const std::string& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::string_opt_field(std::string&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::string_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::string_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(ColorOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::Color get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::Color& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::enum_opt_field(eprosima::test::Color&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::enum_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::enum_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(MaterialOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::Material get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::Material& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::enum2_opt_field(eprosima::test::Material&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::enum2_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::enum2_opt_field() const; + + + +%ignore eprosima::fastcdr::optional::value; +%ignore eprosima::fastcdr::optional::reset; +%template(StructTypeOpt) eprosima::fastcdr::optional; +%extend eprosima::fastcdr::optional { + eprosima::test::StructType get_value() const { + return $self->value(); + } + + void set_value(const eprosima::test::StructType& value) { + *$self = value; + } +} + +%ignore eprosima::test::KeyedCompleteTestType::struct_opt_field(eprosima::test::StructType&&); + +// Overloaded getter methods shadow each other and are equivalent in python +// Const accesors produced constant enums instead of arrays/dictionaries when used +// We ignore them to prevent this +%ignore eprosima::test::KeyedCompleteTestType::struct_opt_field(); +%rename("%s") eprosima::test::KeyedCompleteTestType::struct_opt_field() const; + + + %ignore eprosima::test::KeyedCompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1208,6 +1942,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1223,6 +1958,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1238,6 +1974,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1253,6 +1990,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1268,6 +2006,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1283,6 +2022,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1298,6 +2038,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1313,6 +2054,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1328,6 +2070,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1343,6 +2086,7 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python @@ -1358,43 +2102,47 @@ eprosima_test_StructType_vector } } + %ignore eprosima::test::KeyedCompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_enum_field() const; -%template(eprosima_test_Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { - const eprosima::test::Color* get_buffer() const + const enum eprosima::test::Color* get_buffer() const { return self->data(); } } + %ignore eprosima::test::KeyedCompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_enum2_field() const; -%template(eprosima_test_Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { - const eprosima::test::Material* get_buffer() const + const enum eprosima::test::Material* get_buffer() const { return self->data(); } } + %ignore eprosima::test::KeyedCompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_struct_field() const; -%template(eprosima_test_StructType_3_array) std::array; +%template(StructType_3_array) std::array; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_char_field(std::vector&&); @@ -1410,9 +2158,8 @@ eprosima_test_StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_uint8_field(std::vector&&); @@ -1428,9 +2175,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_int16_field(std::vector&&); @@ -1446,9 +2192,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_uint16_field(std::vector&&); @@ -1464,9 +2209,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_int32_field(std::vector&&); @@ -1482,9 +2226,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_uint32_field(std::vector&&); @@ -1500,9 +2243,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_int64_field(std::vector&&); @@ -1518,9 +2260,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_uint64_field(std::vector&&); @@ -1536,9 +2277,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_float_field(std::vector&&); @@ -1554,9 +2294,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_double_field(std::vector&&); @@ -1572,9 +2311,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_bool_field(std::vector&&); @@ -1582,9 +2320,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_enum_field(std::vector&&); @@ -1600,9 +2337,8 @@ bool_vector } } -%template( -eprosima_test_Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_enum2_field(std::vector&&); @@ -1618,9 +2354,8 @@ eprosima_test_Color_vector } } -%template( -eprosima_test_Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_struct_field(std::vector&&); @@ -1628,9 +2363,8 @@ eprosima_test_Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_struct_field() const; -%template( -eprosima_test_StructType_vector -) std::vector; +%template(StructType_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_char_field(std::vector&&); @@ -1646,9 +2380,8 @@ eprosima_test_StructType_vector } } -%template( -char_vector -) std::vector; +%template(char_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_uint8_field(std::vector&&); @@ -1664,9 +2397,8 @@ char_vector } } -%template( -uint8_t_vector -) std::vector; +%template(uint8_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_int16_field(std::vector&&); @@ -1682,9 +2414,8 @@ uint8_t_vector } } -%template( -int16_t_vector -) std::vector; +%template(int16_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_uint16_field(std::vector&&); @@ -1700,9 +2431,8 @@ int16_t_vector } } -%template( -uint16_t_vector -) std::vector; +%template(uint16_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_int32_field(std::vector&&); @@ -1718,9 +2448,8 @@ uint16_t_vector } } -%template( -int32_t_vector -) std::vector; +%template(int32_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_uint32_field(std::vector&&); @@ -1736,9 +2465,8 @@ int32_t_vector } } -%template( -uint32_t_vector -) std::vector; +%template(uint32_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_int64_field(std::vector&&); @@ -1754,9 +2482,8 @@ uint32_t_vector } } -%template( -int64_t_vector -) std::vector; +%template(int64_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_uint64_field(std::vector&&); @@ -1772,9 +2499,8 @@ int64_t_vector } } -%template( -uint64_t_vector -) std::vector; +%template(uint64_t_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_float_field(std::vector&&); @@ -1790,9 +2516,8 @@ uint64_t_vector } } -%template( -float_vector -) std::vector; +%template(float_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_double_field(std::vector&&); @@ -1808,9 +2533,8 @@ float_vector } } -%template( -double_vector -) std::vector; +%template(double_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_bool_field(std::vector&&); @@ -1818,9 +2542,8 @@ double_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_bool_field() const; -%template( -bool_vector -) std::vector; +%template(bool_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_enum_field(std::vector&&); @@ -1836,9 +2559,8 @@ bool_vector } } -%template( -eprosima_test_Color_vector -) std::vector; +%template(Color_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_enum2_field(std::vector&&); @@ -1854,9 +2576,8 @@ eprosima_test_Color_vector } } -%template( -eprosima_test_Material_vector -) std::vector; +%template(Material_vector) std::vector; + %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_struct_field(std::vector&&); @@ -1864,9 +2585,7 @@ eprosima_test_Material_vector // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::unbounded_sequence_struct_field() const; -%template( -eprosima_test_StructType_vector -) std::vector; +%template(StructType_vector) std::vector; %template(_KeyedCompleteTestTypeSeq) eprosima::fastdds::dds::LoanableTypedCollection; diff --git a/fastdds_python/test/types/test_modules.idl b/fastdds_python/test/types/test_modules.idl index ed055678..4b674cdf 100644 --- a/fastdds_python/test/types/test_modules.idl +++ b/fastdds_python/test/types/test_modules.idl @@ -62,6 +62,24 @@ module eprosima Material enum2_field; StructType struct_field; + // Optional fields + @optional char char_opt_field; + @optional octet uint8_opt_field; + @optional short int16_opt_field; + @optional unsigned short uint16_opt_field; + @optional long int32_opt_field; + @optional unsigned long uint32_opt_field; + @optional long long int64_opt_field; + @optional unsigned long long uint64_opt_field; + @optional float float_opt_field; + @optional double double_opt_field; + //@optional long double long_double_opt_field; + @optional boolean bool_opt_field; + @optional string string_opt_field; + @optional Color enum_opt_field; + @optional Material enum2_opt_field; + @optional StructType struct_opt_field; + // Array fields char array_char_field[max_array_size]; octet array_uint8_field[max_array_size]; @@ -140,6 +158,24 @@ module eprosima Material enum2_field; StructType struct_field; + // Optional fields + @optional char char_opt_field; + @optional octet uint8_opt_field; + @optional short int16_opt_field; + @optional unsigned short uint16_opt_field; + @optional long int32_opt_field; + @optional unsigned long uint32_opt_field; + @optional long long int64_opt_field; + @optional unsigned long long uint64_opt_field; + @optional float float_opt_field; + @optional double double_opt_field; + //@optional long double long_double_opt_field; + @optional boolean bool_opt_field; + @optional string string_opt_field; + @optional Color enum_opt_field; + @optional Material enum2_opt_field; + @optional StructType struct_opt_field; + // Array fields char array_char_field[max_array_size]; octet array_uint8_field[max_array_size]; diff --git a/fastdds_python/test/types/test_modulesCdrAux.hpp b/fastdds_python/test/types/test_modulesCdrAux.hpp index 1c8fe2d9..335f0a65 100644 --- a/fastdds_python/test/types/test_modulesCdrAux.hpp +++ b/fastdds_python/test/types/test_modulesCdrAux.hpp @@ -24,11 +24,11 @@ #include "test_modules.h" -constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_cdr_typesize {41752UL}; +constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_cdr_typesize {42528UL}; constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_key_cdr_typesize {4UL}; -constexpr uint32_t eprosima_test_CompleteTestType_max_cdr_typesize {41752UL}; +constexpr uint32_t eprosima_test_CompleteTestType_max_cdr_typesize {42528UL}; constexpr uint32_t eprosima_test_CompleteTestType_max_key_cdr_typesize {0UL}; constexpr uint32_t eprosima_test_StructType_max_cdr_typesize {328UL}; diff --git a/fastdds_python/test/types/test_modulesCdrAux.ipp b/fastdds_python/test/types/test_modulesCdrAux.ipp index 4ac1f16d..12936858 100644 --- a/fastdds_python/test/types/test_modulesCdrAux.ipp +++ b/fastdds_python/test/types/test_modulesCdrAux.ipp @@ -279,129 +279,174 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(15), - data.array_char_field(), current_alignment); + data.char_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(16), - data.array_uint8_field(), current_alignment); + data.uint8_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(17), - data.array_int16_field(), current_alignment); + data.int16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(18), - data.array_uint16_field(), current_alignment); + data.uint16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(19), - data.array_int32_field(), current_alignment); + data.int32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(20), - data.array_uint32_field(), current_alignment); + data.uint32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(21), - data.array_int64_field(), current_alignment); + data.int64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(22), - data.array_uint64_field(), current_alignment); + data.uint64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(23), - data.array_float_field(), current_alignment); + data.float_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(24), - data.array_double_field(), current_alignment); + data.double_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(25), - data.array_bool_field(), current_alignment); + data.bool_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(26), - data.array_enum_field(), current_alignment); + data.string_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(27), - data.array_enum2_field(), current_alignment); + data.enum_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(28), - data.array_struct_field(), current_alignment); + data.enum2_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(29), - data.bounded_sequence_char_field(), current_alignment); + data.struct_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(30), - data.bounded_sequence_uint8_field(), current_alignment); + data.array_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(31), - data.bounded_sequence_int16_field(), current_alignment); + data.array_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(32), - data.bounded_sequence_uint16_field(), current_alignment); + data.array_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(33), - data.bounded_sequence_int32_field(), current_alignment); + data.array_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(34), - data.bounded_sequence_uint32_field(), current_alignment); + data.array_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(35), - data.bounded_sequence_int64_field(), current_alignment); + data.array_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(36), - data.bounded_sequence_uint64_field(), current_alignment); + data.array_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(37), - data.bounded_sequence_float_field(), current_alignment); + data.array_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(38), - data.bounded_sequence_double_field(), current_alignment); + data.array_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(39), - data.bounded_sequence_bool_field(), current_alignment); + data.array_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(40), - data.bounded_sequence_enum_field(), current_alignment); + data.array_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(41), - data.bounded_sequence_enum2_field(), current_alignment); + data.array_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(42), - data.bounded_sequence_struct_field(), current_alignment); + data.array_enum2_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(43), - data.unbounded_sequence_char_field(), current_alignment); + data.array_struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(44), - data.unbounded_sequence_uint8_field(), current_alignment); + data.bounded_sequence_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(45), - data.unbounded_sequence_int16_field(), current_alignment); + data.bounded_sequence_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(46), - data.unbounded_sequence_uint16_field(), current_alignment); + data.bounded_sequence_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(47), - data.unbounded_sequence_int32_field(), current_alignment); + data.bounded_sequence_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(48), - data.unbounded_sequence_uint32_field(), current_alignment); + data.bounded_sequence_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(49), - data.unbounded_sequence_int64_field(), current_alignment); + data.bounded_sequence_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(50), - data.unbounded_sequence_uint64_field(), current_alignment); + data.bounded_sequence_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(51), - data.unbounded_sequence_float_field(), current_alignment); + data.bounded_sequence_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(52), - data.unbounded_sequence_double_field(), current_alignment); + data.bounded_sequence_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(53), - data.unbounded_sequence_bool_field(), current_alignment); + data.bounded_sequence_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(54), - data.unbounded_sequence_enum_field(), current_alignment); + data.bounded_sequence_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(55), - data.unbounded_sequence_enum2_field(), current_alignment); + data.bounded_sequence_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(56), + data.bounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(57), + data.bounded_sequence_struct_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(58), + data.unbounded_sequence_char_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(59), + data.unbounded_sequence_uint8_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(60), + data.unbounded_sequence_int16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(61), + data.unbounded_sequence_uint16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(62), + data.unbounded_sequence_int32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(63), + data.unbounded_sequence_uint32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(64), + data.unbounded_sequence_int64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(65), + data.unbounded_sequence_uint64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(66), + data.unbounded_sequence_float_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(67), + data.unbounded_sequence_double_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(68), + data.unbounded_sequence_bool_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(69), + data.unbounded_sequence_enum_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(70), + data.unbounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(71), data.unbounded_sequence_struct_field(), current_alignment); @@ -437,48 +482,63 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(12) << data.enum_field() << eprosima::fastcdr::MemberId(13) << data.enum2_field() << eprosima::fastcdr::MemberId(14) << data.struct_field() - << eprosima::fastcdr::MemberId(15) << data.array_char_field() - << eprosima::fastcdr::MemberId(16) << data.array_uint8_field() - << eprosima::fastcdr::MemberId(17) << data.array_int16_field() - << eprosima::fastcdr::MemberId(18) << data.array_uint16_field() - << eprosima::fastcdr::MemberId(19) << data.array_int32_field() - << eprosima::fastcdr::MemberId(20) << data.array_uint32_field() - << eprosima::fastcdr::MemberId(21) << data.array_int64_field() - << eprosima::fastcdr::MemberId(22) << data.array_uint64_field() - << eprosima::fastcdr::MemberId(23) << data.array_float_field() - << eprosima::fastcdr::MemberId(24) << data.array_double_field() - << eprosima::fastcdr::MemberId(25) << data.array_bool_field() - << eprosima::fastcdr::MemberId(26) << data.array_enum_field() - << eprosima::fastcdr::MemberId(27) << data.array_enum2_field() - << eprosima::fastcdr::MemberId(28) << data.array_struct_field() - << eprosima::fastcdr::MemberId(29) << data.bounded_sequence_char_field() - << eprosima::fastcdr::MemberId(30) << data.bounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(31) << data.bounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(32) << data.bounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(33) << data.bounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(34) << data.bounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(35) << data.bounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(36) << data.bounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(37) << data.bounded_sequence_float_field() - << eprosima::fastcdr::MemberId(38) << data.bounded_sequence_double_field() - << eprosima::fastcdr::MemberId(39) << data.bounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(40) << data.bounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(41) << data.bounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(42) << data.bounded_sequence_struct_field() - << eprosima::fastcdr::MemberId(43) << data.unbounded_sequence_char_field() - << eprosima::fastcdr::MemberId(44) << data.unbounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(45) << data.unbounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(46) << data.unbounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(47) << data.unbounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(48) << data.unbounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(49) << data.unbounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(50) << data.unbounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(51) << data.unbounded_sequence_float_field() - << eprosima::fastcdr::MemberId(52) << data.unbounded_sequence_double_field() - << eprosima::fastcdr::MemberId(53) << data.unbounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(54) << data.unbounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(55) << data.unbounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(56) << data.unbounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(15) << data.char_opt_field() + << eprosima::fastcdr::MemberId(16) << data.uint8_opt_field() + << eprosima::fastcdr::MemberId(17) << data.int16_opt_field() + << eprosima::fastcdr::MemberId(18) << data.uint16_opt_field() + << eprosima::fastcdr::MemberId(19) << data.int32_opt_field() + << eprosima::fastcdr::MemberId(20) << data.uint32_opt_field() + << eprosima::fastcdr::MemberId(21) << data.int64_opt_field() + << eprosima::fastcdr::MemberId(22) << data.uint64_opt_field() + << eprosima::fastcdr::MemberId(23) << data.float_opt_field() + << eprosima::fastcdr::MemberId(24) << data.double_opt_field() + << eprosima::fastcdr::MemberId(25) << data.bool_opt_field() + << eprosima::fastcdr::MemberId(26) << data.string_opt_field() + << eprosima::fastcdr::MemberId(27) << data.enum_opt_field() + << eprosima::fastcdr::MemberId(28) << data.enum2_opt_field() + << eprosima::fastcdr::MemberId(29) << data.struct_opt_field() + << eprosima::fastcdr::MemberId(30) << data.array_char_field() + << eprosima::fastcdr::MemberId(31) << data.array_uint8_field() + << eprosima::fastcdr::MemberId(32) << data.array_int16_field() + << eprosima::fastcdr::MemberId(33) << data.array_uint16_field() + << eprosima::fastcdr::MemberId(34) << data.array_int32_field() + << eprosima::fastcdr::MemberId(35) << data.array_uint32_field() + << eprosima::fastcdr::MemberId(36) << data.array_int64_field() + << eprosima::fastcdr::MemberId(37) << data.array_uint64_field() + << eprosima::fastcdr::MemberId(38) << data.array_float_field() + << eprosima::fastcdr::MemberId(39) << data.array_double_field() + << eprosima::fastcdr::MemberId(40) << data.array_bool_field() + << eprosima::fastcdr::MemberId(41) << data.array_enum_field() + << eprosima::fastcdr::MemberId(42) << data.array_enum2_field() + << eprosima::fastcdr::MemberId(43) << data.array_struct_field() + << eprosima::fastcdr::MemberId(44) << data.bounded_sequence_char_field() + << eprosima::fastcdr::MemberId(45) << data.bounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(46) << data.bounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(47) << data.bounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(48) << data.bounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(49) << data.bounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(50) << data.bounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(51) << data.bounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(52) << data.bounded_sequence_float_field() + << eprosima::fastcdr::MemberId(53) << data.bounded_sequence_double_field() + << eprosima::fastcdr::MemberId(54) << data.bounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(55) << data.bounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(56) << data.bounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(57) << data.bounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(58) << data.unbounded_sequence_char_field() + << eprosima::fastcdr::MemberId(59) << data.unbounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(60) << data.unbounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(61) << data.unbounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(62) << data.unbounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(63) << data.unbounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(64) << data.unbounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(65) << data.unbounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(66) << data.unbounded_sequence_float_field() + << eprosima::fastcdr::MemberId(67) << data.unbounded_sequence_double_field() + << eprosima::fastcdr::MemberId(68) << data.unbounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(69) << data.unbounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(70) << data.unbounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(71) << data.unbounded_sequence_struct_field() ; scdr.end_serialize_type(current_state); @@ -558,170 +618,230 @@ eProsima_user_DllExport void deserialize( break; case 15: - dcdr >> data.array_char_field(); + dcdr >> data.char_opt_field(); break; case 16: - dcdr >> data.array_uint8_field(); + dcdr >> data.uint8_opt_field(); break; case 17: - dcdr >> data.array_int16_field(); + dcdr >> data.int16_opt_field(); break; case 18: - dcdr >> data.array_uint16_field(); + dcdr >> data.uint16_opt_field(); break; case 19: - dcdr >> data.array_int32_field(); + dcdr >> data.int32_opt_field(); break; case 20: - dcdr >> data.array_uint32_field(); + dcdr >> data.uint32_opt_field(); break; case 21: - dcdr >> data.array_int64_field(); + dcdr >> data.int64_opt_field(); break; case 22: - dcdr >> data.array_uint64_field(); + dcdr >> data.uint64_opt_field(); break; case 23: - dcdr >> data.array_float_field(); + dcdr >> data.float_opt_field(); break; case 24: - dcdr >> data.array_double_field(); + dcdr >> data.double_opt_field(); break; case 25: - dcdr >> data.array_bool_field(); + dcdr >> data.bool_opt_field(); break; case 26: - dcdr >> data.array_enum_field(); + dcdr >> data.string_opt_field(); break; case 27: - dcdr >> data.array_enum2_field(); + dcdr >> data.enum_opt_field(); break; case 28: - dcdr >> data.array_struct_field(); + dcdr >> data.enum2_opt_field(); break; case 29: - dcdr >> data.bounded_sequence_char_field(); + dcdr >> data.struct_opt_field(); break; case 30: - dcdr >> data.bounded_sequence_uint8_field(); + dcdr >> data.array_char_field(); break; case 31: - dcdr >> data.bounded_sequence_int16_field(); + dcdr >> data.array_uint8_field(); break; case 32: - dcdr >> data.bounded_sequence_uint16_field(); + dcdr >> data.array_int16_field(); break; case 33: - dcdr >> data.bounded_sequence_int32_field(); + dcdr >> data.array_uint16_field(); break; case 34: - dcdr >> data.bounded_sequence_uint32_field(); + dcdr >> data.array_int32_field(); break; case 35: - dcdr >> data.bounded_sequence_int64_field(); + dcdr >> data.array_uint32_field(); break; case 36: - dcdr >> data.bounded_sequence_uint64_field(); + dcdr >> data.array_int64_field(); break; case 37: - dcdr >> data.bounded_sequence_float_field(); + dcdr >> data.array_uint64_field(); break; case 38: - dcdr >> data.bounded_sequence_double_field(); + dcdr >> data.array_float_field(); break; case 39: - dcdr >> data.bounded_sequence_bool_field(); + dcdr >> data.array_double_field(); break; case 40: - dcdr >> data.bounded_sequence_enum_field(); + dcdr >> data.array_bool_field(); break; case 41: - dcdr >> data.bounded_sequence_enum2_field(); + dcdr >> data.array_enum_field(); break; case 42: - dcdr >> data.bounded_sequence_struct_field(); + dcdr >> data.array_enum2_field(); break; case 43: - dcdr >> data.unbounded_sequence_char_field(); + dcdr >> data.array_struct_field(); break; case 44: - dcdr >> data.unbounded_sequence_uint8_field(); + dcdr >> data.bounded_sequence_char_field(); break; case 45: - dcdr >> data.unbounded_sequence_int16_field(); + dcdr >> data.bounded_sequence_uint8_field(); break; case 46: - dcdr >> data.unbounded_sequence_uint16_field(); + dcdr >> data.bounded_sequence_int16_field(); break; case 47: - dcdr >> data.unbounded_sequence_int32_field(); + dcdr >> data.bounded_sequence_uint16_field(); break; case 48: - dcdr >> data.unbounded_sequence_uint32_field(); + dcdr >> data.bounded_sequence_int32_field(); break; case 49: - dcdr >> data.unbounded_sequence_int64_field(); + dcdr >> data.bounded_sequence_uint32_field(); break; case 50: - dcdr >> data.unbounded_sequence_uint64_field(); + dcdr >> data.bounded_sequence_int64_field(); break; case 51: - dcdr >> data.unbounded_sequence_float_field(); + dcdr >> data.bounded_sequence_uint64_field(); break; case 52: - dcdr >> data.unbounded_sequence_double_field(); + dcdr >> data.bounded_sequence_float_field(); break; case 53: - dcdr >> data.unbounded_sequence_bool_field(); + dcdr >> data.bounded_sequence_double_field(); break; case 54: - dcdr >> data.unbounded_sequence_enum_field(); + dcdr >> data.bounded_sequence_bool_field(); break; case 55: - dcdr >> data.unbounded_sequence_enum2_field(); + dcdr >> data.bounded_sequence_enum_field(); break; case 56: + dcdr >> data.bounded_sequence_enum2_field(); + break; + + case 57: + dcdr >> data.bounded_sequence_struct_field(); + break; + + case 58: + dcdr >> data.unbounded_sequence_char_field(); + break; + + case 59: + dcdr >> data.unbounded_sequence_uint8_field(); + break; + + case 60: + dcdr >> data.unbounded_sequence_int16_field(); + break; + + case 61: + dcdr >> data.unbounded_sequence_uint16_field(); + break; + + case 62: + dcdr >> data.unbounded_sequence_int32_field(); + break; + + case 63: + dcdr >> data.unbounded_sequence_uint32_field(); + break; + + case 64: + dcdr >> data.unbounded_sequence_int64_field(); + break; + + case 65: + dcdr >> data.unbounded_sequence_uint64_field(); + break; + + case 66: + dcdr >> data.unbounded_sequence_float_field(); + break; + + case 67: + dcdr >> data.unbounded_sequence_double_field(); + break; + + case 68: + dcdr >> data.unbounded_sequence_bool_field(); + break; + + case 69: + dcdr >> data.unbounded_sequence_enum_field(); + break; + + case 70: + dcdr >> data.unbounded_sequence_enum2_field(); + break; + + case 71: dcdr >> data.unbounded_sequence_struct_field(); break; @@ -807,129 +927,174 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(16), - data.array_char_field(), current_alignment); + data.char_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(17), - data.array_uint8_field(), current_alignment); + data.uint8_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(18), - data.array_int16_field(), current_alignment); + data.int16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(19), - data.array_uint16_field(), current_alignment); + data.uint16_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(20), - data.array_int32_field(), current_alignment); + data.int32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(21), - data.array_uint32_field(), current_alignment); + data.uint32_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(22), - data.array_int64_field(), current_alignment); + data.int64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(23), - data.array_uint64_field(), current_alignment); + data.uint64_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(24), - data.array_float_field(), current_alignment); + data.float_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(25), - data.array_double_field(), current_alignment); + data.double_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(26), - data.array_bool_field(), current_alignment); + data.bool_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(27), - data.array_enum_field(), current_alignment); + data.string_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(28), - data.array_enum2_field(), current_alignment); + data.enum_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(29), - data.array_struct_field(), current_alignment); + data.enum2_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(30), - data.bounded_sequence_char_field(), current_alignment); + data.struct_opt_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(31), - data.bounded_sequence_uint8_field(), current_alignment); + data.array_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(32), - data.bounded_sequence_int16_field(), current_alignment); + data.array_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(33), - data.bounded_sequence_uint16_field(), current_alignment); + data.array_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(34), - data.bounded_sequence_int32_field(), current_alignment); + data.array_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(35), - data.bounded_sequence_uint32_field(), current_alignment); + data.array_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(36), - data.bounded_sequence_int64_field(), current_alignment); + data.array_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(37), - data.bounded_sequence_uint64_field(), current_alignment); + data.array_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(38), - data.bounded_sequence_float_field(), current_alignment); + data.array_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(39), - data.bounded_sequence_double_field(), current_alignment); + data.array_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(40), - data.bounded_sequence_bool_field(), current_alignment); + data.array_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(41), - data.bounded_sequence_enum_field(), current_alignment); + data.array_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(42), - data.bounded_sequence_enum2_field(), current_alignment); + data.array_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(43), - data.bounded_sequence_struct_field(), current_alignment); + data.array_enum2_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(44), - data.unbounded_sequence_char_field(), current_alignment); + data.array_struct_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(45), - data.unbounded_sequence_uint8_field(), current_alignment); + data.bounded_sequence_char_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(46), - data.unbounded_sequence_int16_field(), current_alignment); + data.bounded_sequence_uint8_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(47), - data.unbounded_sequence_uint16_field(), current_alignment); + data.bounded_sequence_int16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(48), - data.unbounded_sequence_int32_field(), current_alignment); + data.bounded_sequence_uint16_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(49), - data.unbounded_sequence_uint32_field(), current_alignment); + data.bounded_sequence_int32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(50), - data.unbounded_sequence_int64_field(), current_alignment); + data.bounded_sequence_uint32_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(51), - data.unbounded_sequence_uint64_field(), current_alignment); + data.bounded_sequence_int64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(52), - data.unbounded_sequence_float_field(), current_alignment); + data.bounded_sequence_uint64_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(53), - data.unbounded_sequence_double_field(), current_alignment); + data.bounded_sequence_float_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(54), - data.unbounded_sequence_bool_field(), current_alignment); + data.bounded_sequence_double_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(55), - data.unbounded_sequence_enum_field(), current_alignment); + data.bounded_sequence_bool_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(56), - data.unbounded_sequence_enum2_field(), current_alignment); + data.bounded_sequence_enum_field(), current_alignment); calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(57), + data.bounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(58), + data.bounded_sequence_struct_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(59), + data.unbounded_sequence_char_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(60), + data.unbounded_sequence_uint8_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(61), + data.unbounded_sequence_int16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(62), + data.unbounded_sequence_uint16_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(63), + data.unbounded_sequence_int32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(64), + data.unbounded_sequence_uint32_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(65), + data.unbounded_sequence_int64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(66), + data.unbounded_sequence_uint64_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(67), + data.unbounded_sequence_float_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(68), + data.unbounded_sequence_double_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(69), + data.unbounded_sequence_bool_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(70), + data.unbounded_sequence_enum_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(71), + data.unbounded_sequence_enum2_field(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(72), data.unbounded_sequence_struct_field(), current_alignment); @@ -966,48 +1131,63 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(13) << data.enum_field() << eprosima::fastcdr::MemberId(14) << data.enum2_field() << eprosima::fastcdr::MemberId(15) << data.struct_field() - << eprosima::fastcdr::MemberId(16) << data.array_char_field() - << eprosima::fastcdr::MemberId(17) << data.array_uint8_field() - << eprosima::fastcdr::MemberId(18) << data.array_int16_field() - << eprosima::fastcdr::MemberId(19) << data.array_uint16_field() - << eprosima::fastcdr::MemberId(20) << data.array_int32_field() - << eprosima::fastcdr::MemberId(21) << data.array_uint32_field() - << eprosima::fastcdr::MemberId(22) << data.array_int64_field() - << eprosima::fastcdr::MemberId(23) << data.array_uint64_field() - << eprosima::fastcdr::MemberId(24) << data.array_float_field() - << eprosima::fastcdr::MemberId(25) << data.array_double_field() - << eprosima::fastcdr::MemberId(26) << data.array_bool_field() - << eprosima::fastcdr::MemberId(27) << data.array_enum_field() - << eprosima::fastcdr::MemberId(28) << data.array_enum2_field() - << eprosima::fastcdr::MemberId(29) << data.array_struct_field() - << eprosima::fastcdr::MemberId(30) << data.bounded_sequence_char_field() - << eprosima::fastcdr::MemberId(31) << data.bounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(32) << data.bounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(33) << data.bounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(34) << data.bounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(35) << data.bounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(36) << data.bounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(37) << data.bounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(38) << data.bounded_sequence_float_field() - << eprosima::fastcdr::MemberId(39) << data.bounded_sequence_double_field() - << eprosima::fastcdr::MemberId(40) << data.bounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(41) << data.bounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(42) << data.bounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(43) << data.bounded_sequence_struct_field() - << eprosima::fastcdr::MemberId(44) << data.unbounded_sequence_char_field() - << eprosima::fastcdr::MemberId(45) << data.unbounded_sequence_uint8_field() - << eprosima::fastcdr::MemberId(46) << data.unbounded_sequence_int16_field() - << eprosima::fastcdr::MemberId(47) << data.unbounded_sequence_uint16_field() - << eprosima::fastcdr::MemberId(48) << data.unbounded_sequence_int32_field() - << eprosima::fastcdr::MemberId(49) << data.unbounded_sequence_uint32_field() - << eprosima::fastcdr::MemberId(50) << data.unbounded_sequence_int64_field() - << eprosima::fastcdr::MemberId(51) << data.unbounded_sequence_uint64_field() - << eprosima::fastcdr::MemberId(52) << data.unbounded_sequence_float_field() - << eprosima::fastcdr::MemberId(53) << data.unbounded_sequence_double_field() - << eprosima::fastcdr::MemberId(54) << data.unbounded_sequence_bool_field() - << eprosima::fastcdr::MemberId(55) << data.unbounded_sequence_enum_field() - << eprosima::fastcdr::MemberId(56) << data.unbounded_sequence_enum2_field() - << eprosima::fastcdr::MemberId(57) << data.unbounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(16) << data.char_opt_field() + << eprosima::fastcdr::MemberId(17) << data.uint8_opt_field() + << eprosima::fastcdr::MemberId(18) << data.int16_opt_field() + << eprosima::fastcdr::MemberId(19) << data.uint16_opt_field() + << eprosima::fastcdr::MemberId(20) << data.int32_opt_field() + << eprosima::fastcdr::MemberId(21) << data.uint32_opt_field() + << eprosima::fastcdr::MemberId(22) << data.int64_opt_field() + << eprosima::fastcdr::MemberId(23) << data.uint64_opt_field() + << eprosima::fastcdr::MemberId(24) << data.float_opt_field() + << eprosima::fastcdr::MemberId(25) << data.double_opt_field() + << eprosima::fastcdr::MemberId(26) << data.bool_opt_field() + << eprosima::fastcdr::MemberId(27) << data.string_opt_field() + << eprosima::fastcdr::MemberId(28) << data.enum_opt_field() + << eprosima::fastcdr::MemberId(29) << data.enum2_opt_field() + << eprosima::fastcdr::MemberId(30) << data.struct_opt_field() + << eprosima::fastcdr::MemberId(31) << data.array_char_field() + << eprosima::fastcdr::MemberId(32) << data.array_uint8_field() + << eprosima::fastcdr::MemberId(33) << data.array_int16_field() + << eprosima::fastcdr::MemberId(34) << data.array_uint16_field() + << eprosima::fastcdr::MemberId(35) << data.array_int32_field() + << eprosima::fastcdr::MemberId(36) << data.array_uint32_field() + << eprosima::fastcdr::MemberId(37) << data.array_int64_field() + << eprosima::fastcdr::MemberId(38) << data.array_uint64_field() + << eprosima::fastcdr::MemberId(39) << data.array_float_field() + << eprosima::fastcdr::MemberId(40) << data.array_double_field() + << eprosima::fastcdr::MemberId(41) << data.array_bool_field() + << eprosima::fastcdr::MemberId(42) << data.array_enum_field() + << eprosima::fastcdr::MemberId(43) << data.array_enum2_field() + << eprosima::fastcdr::MemberId(44) << data.array_struct_field() + << eprosima::fastcdr::MemberId(45) << data.bounded_sequence_char_field() + << eprosima::fastcdr::MemberId(46) << data.bounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(47) << data.bounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(48) << data.bounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(49) << data.bounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(50) << data.bounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(51) << data.bounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(52) << data.bounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(53) << data.bounded_sequence_float_field() + << eprosima::fastcdr::MemberId(54) << data.bounded_sequence_double_field() + << eprosima::fastcdr::MemberId(55) << data.bounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(56) << data.bounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(57) << data.bounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(58) << data.bounded_sequence_struct_field() + << eprosima::fastcdr::MemberId(59) << data.unbounded_sequence_char_field() + << eprosima::fastcdr::MemberId(60) << data.unbounded_sequence_uint8_field() + << eprosima::fastcdr::MemberId(61) << data.unbounded_sequence_int16_field() + << eprosima::fastcdr::MemberId(62) << data.unbounded_sequence_uint16_field() + << eprosima::fastcdr::MemberId(63) << data.unbounded_sequence_int32_field() + << eprosima::fastcdr::MemberId(64) << data.unbounded_sequence_uint32_field() + << eprosima::fastcdr::MemberId(65) << data.unbounded_sequence_int64_field() + << eprosima::fastcdr::MemberId(66) << data.unbounded_sequence_uint64_field() + << eprosima::fastcdr::MemberId(67) << data.unbounded_sequence_float_field() + << eprosima::fastcdr::MemberId(68) << data.unbounded_sequence_double_field() + << eprosima::fastcdr::MemberId(69) << data.unbounded_sequence_bool_field() + << eprosima::fastcdr::MemberId(70) << data.unbounded_sequence_enum_field() + << eprosima::fastcdr::MemberId(71) << data.unbounded_sequence_enum2_field() + << eprosima::fastcdr::MemberId(72) << data.unbounded_sequence_struct_field() ; scdr.end_serialize_type(current_state); @@ -1091,170 +1271,230 @@ eProsima_user_DllExport void deserialize( break; case 16: - dcdr >> data.array_char_field(); + dcdr >> data.char_opt_field(); break; case 17: - dcdr >> data.array_uint8_field(); + dcdr >> data.uint8_opt_field(); break; case 18: - dcdr >> data.array_int16_field(); + dcdr >> data.int16_opt_field(); break; case 19: - dcdr >> data.array_uint16_field(); + dcdr >> data.uint16_opt_field(); break; case 20: - dcdr >> data.array_int32_field(); + dcdr >> data.int32_opt_field(); break; case 21: - dcdr >> data.array_uint32_field(); + dcdr >> data.uint32_opt_field(); break; case 22: - dcdr >> data.array_int64_field(); + dcdr >> data.int64_opt_field(); break; case 23: - dcdr >> data.array_uint64_field(); + dcdr >> data.uint64_opt_field(); break; case 24: - dcdr >> data.array_float_field(); + dcdr >> data.float_opt_field(); break; case 25: - dcdr >> data.array_double_field(); + dcdr >> data.double_opt_field(); break; case 26: - dcdr >> data.array_bool_field(); + dcdr >> data.bool_opt_field(); break; case 27: - dcdr >> data.array_enum_field(); + dcdr >> data.string_opt_field(); break; case 28: - dcdr >> data.array_enum2_field(); + dcdr >> data.enum_opt_field(); break; case 29: - dcdr >> data.array_struct_field(); + dcdr >> data.enum2_opt_field(); break; case 30: - dcdr >> data.bounded_sequence_char_field(); + dcdr >> data.struct_opt_field(); break; case 31: - dcdr >> data.bounded_sequence_uint8_field(); + dcdr >> data.array_char_field(); break; case 32: - dcdr >> data.bounded_sequence_int16_field(); + dcdr >> data.array_uint8_field(); break; case 33: - dcdr >> data.bounded_sequence_uint16_field(); + dcdr >> data.array_int16_field(); break; case 34: - dcdr >> data.bounded_sequence_int32_field(); + dcdr >> data.array_uint16_field(); break; case 35: - dcdr >> data.bounded_sequence_uint32_field(); + dcdr >> data.array_int32_field(); break; case 36: - dcdr >> data.bounded_sequence_int64_field(); + dcdr >> data.array_uint32_field(); break; case 37: - dcdr >> data.bounded_sequence_uint64_field(); + dcdr >> data.array_int64_field(); break; case 38: - dcdr >> data.bounded_sequence_float_field(); + dcdr >> data.array_uint64_field(); break; case 39: - dcdr >> data.bounded_sequence_double_field(); + dcdr >> data.array_float_field(); break; case 40: - dcdr >> data.bounded_sequence_bool_field(); + dcdr >> data.array_double_field(); break; case 41: - dcdr >> data.bounded_sequence_enum_field(); + dcdr >> data.array_bool_field(); break; case 42: - dcdr >> data.bounded_sequence_enum2_field(); + dcdr >> data.array_enum_field(); break; case 43: - dcdr >> data.bounded_sequence_struct_field(); + dcdr >> data.array_enum2_field(); break; case 44: - dcdr >> data.unbounded_sequence_char_field(); + dcdr >> data.array_struct_field(); break; case 45: - dcdr >> data.unbounded_sequence_uint8_field(); + dcdr >> data.bounded_sequence_char_field(); break; case 46: - dcdr >> data.unbounded_sequence_int16_field(); + dcdr >> data.bounded_sequence_uint8_field(); break; case 47: - dcdr >> data.unbounded_sequence_uint16_field(); + dcdr >> data.bounded_sequence_int16_field(); break; case 48: - dcdr >> data.unbounded_sequence_int32_field(); + dcdr >> data.bounded_sequence_uint16_field(); break; case 49: - dcdr >> data.unbounded_sequence_uint32_field(); + dcdr >> data.bounded_sequence_int32_field(); break; case 50: - dcdr >> data.unbounded_sequence_int64_field(); + dcdr >> data.bounded_sequence_uint32_field(); break; case 51: - dcdr >> data.unbounded_sequence_uint64_field(); + dcdr >> data.bounded_sequence_int64_field(); break; case 52: - dcdr >> data.unbounded_sequence_float_field(); + dcdr >> data.bounded_sequence_uint64_field(); break; case 53: - dcdr >> data.unbounded_sequence_double_field(); + dcdr >> data.bounded_sequence_float_field(); break; case 54: - dcdr >> data.unbounded_sequence_bool_field(); + dcdr >> data.bounded_sequence_double_field(); break; case 55: - dcdr >> data.unbounded_sequence_enum_field(); + dcdr >> data.bounded_sequence_bool_field(); break; case 56: - dcdr >> data.unbounded_sequence_enum2_field(); + dcdr >> data.bounded_sequence_enum_field(); break; case 57: + dcdr >> data.bounded_sequence_enum2_field(); + break; + + case 58: + dcdr >> data.bounded_sequence_struct_field(); + break; + + case 59: + dcdr >> data.unbounded_sequence_char_field(); + break; + + case 60: + dcdr >> data.unbounded_sequence_uint8_field(); + break; + + case 61: + dcdr >> data.unbounded_sequence_int16_field(); + break; + + case 62: + dcdr >> data.unbounded_sequence_uint16_field(); + break; + + case 63: + dcdr >> data.unbounded_sequence_int32_field(); + break; + + case 64: + dcdr >> data.unbounded_sequence_uint32_field(); + break; + + case 65: + dcdr >> data.unbounded_sequence_int64_field(); + break; + + case 66: + dcdr >> data.unbounded_sequence_uint64_field(); + break; + + case 67: + dcdr >> data.unbounded_sequence_float_field(); + break; + + case 68: + dcdr >> data.unbounded_sequence_double_field(); + break; + + case 69: + dcdr >> data.unbounded_sequence_bool_field(); + break; + + case 70: + dcdr >> data.unbounded_sequence_enum_field(); + break; + + case 71: + dcdr >> data.unbounded_sequence_enum2_field(); + break; + + case 72: dcdr >> data.unbounded_sequence_struct_field(); break; @@ -1315,6 +1555,21 @@ void serialize_key( + + + + + + + + + + + + + + +