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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/Benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark.hpp
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_HPP
Expand Down
3 changes: 1 addition & 2 deletions examples/cpp/benchmark/types/BenchmarkCdrAux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
* @file BenchmarkCdrAux.hpp
* This source file contains some definitions of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARKCDRAUX_HPP
#define FAST_DDS_GENERATED__BENCHMARKCDRAUX_HPP

#include "Benchmark.hpp"

constexpr uint32_t BenchMark_max_cdr_typesize {8UL};
constexpr uint32_t BenchMark_max_key_cdr_typesize {0UL};

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/BenchmarkCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file BenchmarkCdrAux.ipp
* This source file contains some declarations of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARKCDRAUX_IPP
Expand Down
16 changes: 8 additions & 8 deletions examples/cpp/benchmark/types/BenchmarkPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file BenchmarkPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#include "BenchmarkPubSubTypes.hpp"
Expand Down Expand Up @@ -56,7 +56,7 @@ bool BenchMarkPubSubType::serialize(
SerializedPayload_t& payload,
DataRepresentationId_t data_representation)
{
const BenchMark* p_type = static_cast<const BenchMark*>(data);
const ::BenchMark* p_type = static_cast<const ::BenchMark*>(data);

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

// Object that manages the raw buffer.
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload.data), payload.length);
Expand Down Expand Up @@ -129,7 +129,7 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(
eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2);
size_t current_alignment {0};
return static_cast<uint32_t>(calculator.calculate_serialized_size(
*static_cast<const BenchMark*>(data), current_alignment)) +
*static_cast<const ::BenchMark*>(data), current_alignment)) +
4u /*encapsulation*/;
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
Expand All @@ -140,13 +140,13 @@ uint32_t BenchMarkPubSubType::calculate_serialized_size(

void* BenchMarkPubSubType::create_data()
{
return reinterpret_cast<void*>(new BenchMark());
return reinterpret_cast<void*>(new ::BenchMark());
}

void BenchMarkPubSubType::delete_data(
void* data)
{
delete(reinterpret_cast<BenchMark*>(data));
delete(reinterpret_cast<::BenchMark*>(data));
}

bool BenchMarkPubSubType::compute_key(
Expand All @@ -159,7 +159,7 @@ bool BenchMarkPubSubType::compute_key(
return false;
}

BenchMark data;
::BenchMark data;
if (deserialize(payload, static_cast<void*>(&data)))
{
return compute_key(static_cast<void*>(&data), handle, force_md5);
Expand All @@ -178,7 +178,7 @@ bool BenchMarkPubSubType::compute_key(
return false;
}

const BenchMark* p_type = static_cast<const BenchMark*>(data);
const ::BenchMark* p_type = static_cast<const ::BenchMark*>(data);

// Object that manages the raw buffer.
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(key_buffer_),
Expand Down
5 changes: 3 additions & 2 deletions examples/cpp/benchmark/types/BenchmarkPubSubTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file BenchmarkPubSubTypes.hpp
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/


Expand Down Expand Up @@ -46,7 +46,7 @@ class BenchMarkPubSubType : public eprosima::fastdds::dds::TopicDataType
{
public:

typedef BenchMark type;
typedef ::BenchMark type;

eProsima_user_DllExport BenchMarkPubSubType();

Expand Down Expand Up @@ -119,5 +119,6 @@ class BenchMarkPubSubType : public eprosima::fastdds::dds::TopicDataType

};


#endif // FAST_DDS_GENERATED__BENCHMARK_PUBSUBTYPES_HPP

4 changes: 1 addition & 3 deletions examples/cpp/benchmark/types/BenchmarkTypeObjectSupport.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file BenchmarkTypeObjectSupport.cxx
* Source file containing the implementation to register the TypeObject representation of the described types in the IDL file
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#include "BenchmarkTypeObjectSupport.hpp"
Expand All @@ -32,7 +32,6 @@
#include <fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp>
#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>
#include <fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp>

#include "Benchmark.hpp"


Expand Down Expand Up @@ -104,4 +103,3 @@ void register_BenchMark_type_identifier(
}
}
}

4 changes: 2 additions & 2 deletions examples/cpp/benchmark/types/BenchmarkTypeObjectSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file BenchmarkTypeObjectSupport.hpp
* Header file containing the API required to register the TypeObject representation of the described types in the IDL file
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_TYPE_OBJECT_SUPPORT_HPP
Expand All @@ -43,7 +43,7 @@
* Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is
* indirectly registered as well.
*
* @param[out] TypeIdentifier of the registered type.
* @param[out] type_ids TypeIdentifier of the registered type.
* The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers.
* Invalid TypeIdentifier is returned in case of error.
*/
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/Benchmark_big.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_big.hpp
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_BIG_HPP
Expand Down
3 changes: 1 addition & 2 deletions examples/cpp/benchmark/types/Benchmark_bigCdrAux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
* @file Benchmark_bigCdrAux.hpp
* This source file contains some definitions of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_HPP
#define FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_HPP

#include "Benchmark_big.hpp"

constexpr uint32_t BenchMarkBig_max_cdr_typesize {8388616UL};
constexpr uint32_t BenchMarkBig_max_key_cdr_typesize {0UL};

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/Benchmark_bigCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_bigCdrAux.ipp
* This source file contains some declarations of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_BIGCDRAUX_IPP
Expand Down
16 changes: 8 additions & 8 deletions examples/cpp/benchmark/types/Benchmark_bigPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_bigPubSubTypes.cpp
* This header file contains the implementation of the serialization functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#include "Benchmark_bigPubSubTypes.hpp"
Expand Down Expand Up @@ -56,7 +56,7 @@ bool BenchMarkBigPubSubType::serialize(
SerializedPayload_t& payload,
DataRepresentationId_t data_representation)
{
const BenchMarkBig* p_type = static_cast<const BenchMarkBig*>(data);
const ::BenchMarkBig* p_type = static_cast<const ::BenchMarkBig*>(data);

// Object that manages the raw buffer.
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload.data), payload.max_size);
Expand Down Expand Up @@ -95,7 +95,7 @@ bool BenchMarkBigPubSubType::deserialize(
try
{
// Convert DATA to pointer of your type
BenchMarkBig* p_type = static_cast<BenchMarkBig*>(data);
::BenchMarkBig* p_type = static_cast<::BenchMarkBig*>(data);

// Object that manages the raw buffer.
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(payload.data), payload.length);
Expand Down Expand Up @@ -129,7 +129,7 @@ uint32_t BenchMarkBigPubSubType::calculate_serialized_size(
eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2);
size_t current_alignment {0};
return static_cast<uint32_t>(calculator.calculate_serialized_size(
*static_cast<const BenchMarkBig*>(data), current_alignment)) +
*static_cast<const ::BenchMarkBig*>(data), current_alignment)) +
4u /*encapsulation*/;
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
Expand All @@ -140,13 +140,13 @@ uint32_t BenchMarkBigPubSubType::calculate_serialized_size(

void* BenchMarkBigPubSubType::create_data()
{
return reinterpret_cast<void*>(new BenchMarkBig());
return reinterpret_cast<void*>(new ::BenchMarkBig());
}

void BenchMarkBigPubSubType::delete_data(
void* data)
{
delete(reinterpret_cast<BenchMarkBig*>(data));
delete(reinterpret_cast<::BenchMarkBig*>(data));
}

bool BenchMarkBigPubSubType::compute_key(
Expand All @@ -159,7 +159,7 @@ bool BenchMarkBigPubSubType::compute_key(
return false;
}

BenchMarkBig data;
::BenchMarkBig data;
if (deserialize(payload, static_cast<void*>(&data)))
{
return compute_key(static_cast<void*>(&data), handle, force_md5);
Expand All @@ -178,7 +178,7 @@ bool BenchMarkBigPubSubType::compute_key(
return false;
}

const BenchMarkBig* p_type = static_cast<const BenchMarkBig*>(data);
const ::BenchMarkBig* p_type = static_cast<const ::BenchMarkBig*>(data);

// Object that manages the raw buffer.
eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast<char*>(key_buffer_),
Expand Down
5 changes: 3 additions & 2 deletions examples/cpp/benchmark/types/Benchmark_bigPubSubTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_bigPubSubTypes.hpp
* This header file contains the declaration of the serialization functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/


Expand Down Expand Up @@ -46,7 +46,7 @@ class BenchMarkBigPubSubType : public eprosima::fastdds::dds::TopicDataType
{
public:

typedef BenchMarkBig type;
typedef ::BenchMarkBig type;

eProsima_user_DllExport BenchMarkBigPubSubType();

Expand Down Expand Up @@ -119,5 +119,6 @@ class BenchMarkBigPubSubType : public eprosima::fastdds::dds::TopicDataType

};


#endif // FAST_DDS_GENERATED__BENCHMARK_BIG_PUBSUBTYPES_HPP

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_bigTypeObjectSupport.cxx
* Source file containing the implementation to register the TypeObject representation of the described types in the IDL file
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#include "Benchmark_bigTypeObjectSupport.hpp"
Expand All @@ -32,7 +32,6 @@
#include <fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp>
#include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>
#include <fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp>

#include "Benchmark_big.hpp"


Expand Down Expand Up @@ -161,4 +160,3 @@ void register_BenchMarkBig_type_identifier(
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_bigTypeObjectSupport.hpp
* Header file containing the API required to register the TypeObject representation of the described types in the IDL file
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_BIG_TYPE_OBJECT_SUPPORT_HPP
Expand All @@ -43,7 +43,7 @@
* Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is
* indirectly registered as well.
*
* @param[out] TypeIdentifier of the registered type.
* @param[out] type_ids TypeIdentifier of the registered type.
* The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers.
* Invalid TypeIdentifier is returned in case of error.
*/
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/Benchmark_medium.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_medium.hpp
* This header file contains the declaration of the described types in the IDL file.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_MEDIUM_HPP
Expand Down
3 changes: 1 addition & 2 deletions examples/cpp/benchmark/types/Benchmark_mediumCdrAux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
* @file Benchmark_mediumCdrAux.hpp
* This source file contains some definitions of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_MEDIUMCDRAUX_HPP
#define FAST_DDS_GENERATED__BENCHMARK_MEDIUMCDRAUX_HPP

#include "Benchmark_medium.hpp"

constexpr uint32_t BenchMarkMedium_max_cdr_typesize {524296UL};
constexpr uint32_t BenchMarkMedium_max_key_cdr_typesize {0UL};

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/benchmark/types/Benchmark_mediumCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @file Benchmark_mediumCdrAux.ipp
* This source file contains some declarations of CDR related functions.
*
* This file was generated by the tool fastddsgen.
* This file was generated by the tool fastddsgen (version: 4.1.0).
*/

#ifndef FAST_DDS_GENERATED__BENCHMARK_MEDIUMCDRAUX_IPP
Expand Down
Loading
Loading