16
16
* @file BenchmarkPubSubTypes.cpp
17
17
* This header file contains the implementation of the serialization functions.
18
18
*
19
- * This file was generated by the tool fastddsgen.
19
+ * This file was generated by the tool fastddsgen (version: 4.1.0) .
20
20
*/
21
21
22
22
#include " BenchmarkPubSubTypes.hpp"
@@ -56,7 +56,7 @@ bool BenchMarkPubSubType::serialize(
56
56
SerializedPayload_t& payload,
57
57
DataRepresentationId_t data_representation)
58
58
{
59
- const BenchMark* p_type = static_cast <const BenchMark*>(data);
59
+ const :: BenchMark* p_type = static_cast <const :: BenchMark*>(data);
60
60
61
61
// Object that manages the raw buffer.
62
62
eprosima::fastcdr::FastBuffer fastbuffer (reinterpret_cast <char *>(payload.data ), payload.max_size );
@@ -95,7 +95,7 @@ bool BenchMarkPubSubType::deserialize(
95
95
try
96
96
{
97
97
// Convert DATA to pointer of your type
98
- BenchMark* p_type = static_cast <BenchMark*>(data);
98
+ :: BenchMark* p_type = static_cast <:: BenchMark*>(data);
99
99
100
100
// Object that manages the raw buffer.
101
101
eprosima::fastcdr::FastBuffer fastbuffer (reinterpret_cast <char *>(payload.data ), payload.length );
@@ -129,7 +129,7 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(
129
129
eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2);
130
130
size_t current_alignment {0 };
131
131
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)) +
133
133
4u /* encapsulation*/ ;
134
134
}
135
135
catch (eprosima::fastcdr::exception::Exception& /* exception*/ )
@@ -140,13 +140,13 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(
140
140
141
141
void * BenchMarkPubSubType::create_data ()
142
142
{
143
- return reinterpret_cast <void *>(new BenchMark ());
143
+ return reinterpret_cast <void *>(new :: BenchMark ());
144
144
}
145
145
146
146
void BenchMarkPubSubType::delete_data (
147
147
void * data)
148
148
{
149
- delete (reinterpret_cast <BenchMark*>(data));
149
+ delete (reinterpret_cast <:: BenchMark*>(data));
150
150
}
151
151
152
152
bool BenchMarkPubSubType::compute_key (
@@ -159,7 +159,7 @@ bool BenchMarkPubSubType::compute_key(
159
159
return false ;
160
160
}
161
161
162
- BenchMark data;
162
+ :: BenchMark data;
163
163
if (deserialize (payload, static_cast <void *>(&data)))
164
164
{
165
165
return compute_key (static_cast <void *>(&data), handle, force_md5);
@@ -178,7 +178,7 @@ bool BenchMarkPubSubType::compute_key(
178
178
return false ;
179
179
}
180
180
181
- const BenchMark* p_type = static_cast <const BenchMark*>(data);
181
+ const :: BenchMark* p_type = static_cast <const :: BenchMark*>(data);
182
182
183
183
// Object that manages the raw buffer.
184
184
eprosima::fastcdr::FastBuffer fastbuffer (reinterpret_cast <char *>(key_buffer_),
0 commit comments