Skip to content

Commit 6ec2a97

Browse files
Update types for Fast DDS Gen v4.1.0 Release (#5920)
* Refs: #23269: Update types GEN v4.1.0 Signed-off-by: cferreiragonz <[email protected]> * Refs #23269: Delete tests for @nested structs Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]>
1 parent edafb81 commit 6ec2a97

File tree

547 files changed

+15970
-40276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

547 files changed

+15970
-40276
lines changed

examples/cpp/benchmark/types/Benchmark.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file Benchmark.hpp
1717
* This header file contains the declaration of the described types in the IDL file.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARK_HPP

examples/cpp/benchmark/types/BenchmarkCdrAux.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
* @file BenchmarkCdrAux.hpp
1717
* This source file contains some definitions of CDR related functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARKCDRAUX_HPP
2323
#define FAST_DDS_GENERATED__BENCHMARKCDRAUX_HPP
2424

2525
#include "Benchmark.hpp"
26-
2726
constexpr uint32_t BenchMark_max_cdr_typesize {8UL};
2827
constexpr uint32_t BenchMark_max_key_cdr_typesize {0UL};
2928

examples/cpp/benchmark/types/BenchmarkCdrAux.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file BenchmarkCdrAux.ipp
1717
* This source file contains some declarations of CDR related functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARKCDRAUX_IPP

examples/cpp/benchmark/types/BenchmarkPubSubTypes.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file BenchmarkPubSubTypes.cpp
1717
* This header file contains the implementation of the serialization functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#include "BenchmarkPubSubTypes.hpp"
@@ -56,7 +56,7 @@ bool BenchMarkPubSubType::serialize(
5656
SerializedPayload_t& payload,
5757
DataRepresentationId_t data_representation)
5858
{
59-
const BenchMark* p_type = static_cast<const BenchMark*>(data);
59+
const ::BenchMark* p_type = static_cast<const ::BenchMark*>(data);
6060

6161
// Object that manages the raw buffer.
6262
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload.data), payload.max_size);
@@ -95,7 +95,7 @@ bool BenchMarkPubSubType::deserialize(
9595
try
9696
{
9797
// Convert DATA to pointer of your type
98-
BenchMark* p_type = static_cast<BenchMark*>(data);
98+
::BenchMark* p_type = static_cast<::BenchMark*>(data);
9999

100100
// Object that manages the raw buffer.
101101
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload.data), payload.length);
@@ -129,7 +129,7 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(
129129
eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2);
130130
size_t current_alignment {0};
131131
return static_cast<uint32_t>(calculator.calculate_serialized_size(
132-
*static_cast<const BenchMark*>(data), current_alignment)) +
132+
*static_cast<const ::BenchMark*>(data), current_alignment)) +
133133
4u /*encapsulation*/;
134134
}
135135
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
@@ -140,13 +140,13 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(
140140

141141
void* BenchMarkPubSubType::create_data()
142142
{
143-
return reinterpret_cast<void*>(new BenchMark());
143+
return reinterpret_cast<void*>(new ::BenchMark());
144144
}
145145

146146
void BenchMarkPubSubType::delete_data(
147147
void* data)
148148
{
149-
delete(reinterpret_cast<BenchMark*>(data));
149+
delete(reinterpret_cast<::BenchMark*>(data));
150150
}
151151

152152
bool BenchMarkPubSubType::compute_key(
@@ -159,7 +159,7 @@ bool BenchMarkPubSubType::compute_key(
159159
return false;
160160
}
161161

162-
BenchMark data;
162+
::BenchMark data;
163163
if (deserialize(payload, static_cast<void*>(&data)))
164164
{
165165
return compute_key(static_cast<void*>(&data), handle, force_md5);
@@ -178,7 +178,7 @@ bool BenchMarkPubSubType::compute_key(
178178
return false;
179179
}
180180

181-
const BenchMark* p_type = static_cast<const BenchMark*>(data);
181+
const ::BenchMark* p_type = static_cast<const ::BenchMark*>(data);
182182

183183
// Object that manages the raw buffer.
184184
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(key_buffer_),

examples/cpp/benchmark/types/BenchmarkPubSubTypes.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file BenchmarkPubSubTypes.hpp
1717
* This header file contains the declaration of the serialization functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222

@@ -46,7 +46,7 @@ class BenchMarkPubSubType : public eprosima::fastdds::dds::TopicDataType
4646
{
4747
public:
4848

49-
typedef BenchMark type;
49+
typedef ::BenchMark type;
5050

5151
eProsima_user_DllExport BenchMarkPubSubType();
5252

@@ -119,5 +119,6 @@ class BenchMarkPubSubType : public eprosima::fastdds::dds::TopicDataType
119119

120120
};
121121

122+
122123
#endif // FAST_DDS_GENERATED__BENCHMARK_PUBSUBTYPES_HPP
123124

examples/cpp/benchmark/types/BenchmarkTypeObjectSupport.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file BenchmarkTypeObjectSupport.cxx
1717
* Source file containing the implementation to register the TypeObject representation of the described types in the IDL file
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#include "BenchmarkTypeObjectSupport.hpp"
@@ -32,7 +32,6 @@
3232
#include <fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp>
3333
#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>
3434
#include <fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp>
35-
3635
#include "Benchmark.hpp"
3736

3837

@@ -104,4 +103,3 @@ void register_BenchMark_type_identifier(
104103
}
105104
}
106105
}
107-

examples/cpp/benchmark/types/BenchmarkTypeObjectSupport.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file BenchmarkTypeObjectSupport.hpp
1717
* Header file containing the API required to register the TypeObject representation of the described types in the IDL file
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARK_TYPE_OBJECT_SUPPORT_HPP
@@ -43,7 +43,7 @@
4343
* Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is
4444
* indirectly registered as well.
4545
*
46-
* @param[out] TypeIdentifier of the registered type.
46+
* @param[out] type_ids TypeIdentifier of the registered type.
4747
* The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers.
4848
* Invalid TypeIdentifier is returned in case of error.
4949
*/

examples/cpp/benchmark/types/Benchmark_big.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file Benchmark_big.hpp
1717
* This header file contains the declaration of the described types in the IDL file.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARK_BIG_HPP

examples/cpp/benchmark/types/Benchmark_bigCdrAux.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
* @file Benchmark_bigCdrAux.hpp
1717
* This source file contains some definitions of CDR related functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_HPP
2323
#define FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_HPP
2424

2525
#include "Benchmark_big.hpp"
26-
2726
constexpr uint32_t BenchMarkBig_max_cdr_typesize {8388616UL};
2827
constexpr uint32_t BenchMarkBig_max_key_cdr_typesize {0UL};
2928

examples/cpp/benchmark/types/Benchmark_bigCdrAux.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @file Benchmark_bigCdrAux.ipp
1717
* This source file contains some declarations of CDR related functions.
1818
*
19-
* This file was generated by the tool fastddsgen.
19+
* This file was generated by the tool fastddsgen (version: 4.1.0).
2020
*/
2121

2222
#ifndef FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_IPP

0 commit comments

Comments
 (0)