Skip to content

Commit f905f47

Browse files
authored
Update types with Fast DDS Gen 4.0.4 (#217)
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
1 parent 5ff8b4b commit f905f47

15 files changed

+12
-24
lines changed

fastdds_python/test/types/test_complete.i

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
%include <fastcdr/config.h>
5858
%import(module="fastdds") "fastcdr/xcdr/optional.hpp"
59+
%import(module="fastdds") "fastcdr/cdr/fixed_size_string.hpp"
5960
%import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp"
6061
%import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp"
6162
%import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp"
@@ -264,8 +265,6 @@ namespace swig {
264265
}
265266
}
266267

267-
268-
269268
////////////////////////////////////////////////////////
270269
// Binding for class CompleteTestType
271270
////////////////////////////////////////////////////////

fastdds_python/test/types/test_completeCdrAux.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ eProsima_user_DllExport void serialize_key(
4949
eprosima::fastcdr::Cdr& scdr,
5050
const StructType& data);
5151

52-
53-
5452
eProsima_user_DllExport void serialize_key(
5553
eprosima::fastcdr::Cdr& scdr,
5654
const CompleteTestType& data);

fastdds_python/test/types/test_completeCdrAux.ipp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ void serialize_key(
257257
}
258258

259259

260-
261-
262260
template<>
263261
eProsima_user_DllExport size_t calculate_serialized_size(
264262
eprosima::fastcdr::CdrSizeCalculator& calculator,

fastdds_python/test/types/test_completePubSubTypes.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ bool StructTypePubSubType::serialize(
7676
ser.serialize_encapsulation();
7777
// Serialize the object.
7878
ser << *p_type;
79+
ser.set_dds_cdr_options({0,0});
7980
}
8081
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
8182
{
@@ -212,8 +213,6 @@ void StructTypePubSubType::register_type_object_representation()
212213
register_StructType_type_identifier(type_identifiers_);
213214
}
214215

215-
216-
217216
CompleteTestTypePubSubType::CompleteTestTypePubSubType()
218217
{
219218
set_name("CompleteTestType");
@@ -259,6 +258,7 @@ bool CompleteTestTypePubSubType::serialize(
259258
ser.serialize_encapsulation();
260259
// Serialize the object.
261260
ser << *p_type;
261+
ser.set_dds_cdr_options({0,0});
262262
}
263263
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
264264
{
@@ -440,6 +440,7 @@ bool KeyedCompleteTestTypePubSubType::serialize(
440440
ser.serialize_encapsulation();
441441
// Serialize the object.
442442
ser << *p_type;
443+
ser.set_dds_cdr_options({0,0});
443444
}
444445
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
445446
{

fastdds_python/test/types/test_completePubSubTypes.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ class StructTypePubSubType : public eprosima::fastdds::dds::TopicDataType
120120

121121
};
122122

123-
124-
125123
/*!
126124
* @brief This class represents the TopicDataType of the type CompleteTestType defined by the user in the IDL file.
127125
* @ingroup test_complete

fastdds_python/test/types/test_included_modules.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
%}
5555

5656
%include <fastcdr/config.h>
57-
%import(module="fastdds") "fastcdr/xcdr/optional.hpp"
57+
%import(module="fastdds") "fastcdr/cdr/fixed_size_string.hpp"
5858
%import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp"
5959
%import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp"
6060
%import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp"

fastdds_python/test/types/test_included_modulesPubSubTypes.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ namespace eprosima {
7878
ser.serialize_encapsulation();
7979
// Serialize the object.
8080
ser << *p_type;
81+
ser.set_dds_cdr_options({0,0});
8182
}
8283
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
8384
{

fastdds_python/test/types/test_modules.i

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
%include <fastcdr/config.h>
5757
%import(module="fastdds") "fastcdr/xcdr/optional.hpp"
58+
%import(module="fastdds") "fastcdr/cdr/fixed_size_string.hpp"
5859
%import(module="fastdds") "fastdds/dds/core/LoanableCollection.hpp"
5960
%import(module="fastdds") "fastdds/dds/core/LoanableTypedCollection.hpp"
6061
%import(module="fastdds") "fastdds/dds/core/LoanableSequence.hpp"
@@ -252,8 +253,6 @@ namespace swig {
252253
}
253254
}
254255

255-
256-
257256
////////////////////////////////////////////////////////
258257
// Binding for class eprosima::test::CompleteTestType
259258
////////////////////////////////////////////////////////

fastdds_python/test/types/test_modulesCdrAux.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ eProsima_user_DllExport void serialize_key(
4545
eprosima::fastcdr::Cdr& scdr,
4646
const eprosima::test::StructType& data);
4747

48-
49-
5048
eProsima_user_DllExport void serialize_key(
5149
eprosima::fastcdr::Cdr& scdr,
5250
const eprosima::test::CompleteTestType& data);

fastdds_python/test/types/test_modulesCdrAux.ipp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ void serialize_key(
250250
}
251251

252252

253-
254-
255253
template<>
256254
eProsima_user_DllExport size_t calculate_serialized_size(
257255
eprosima::fastcdr::CdrSizeCalculator& calculator,

0 commit comments

Comments
 (0)