Skip to content

Commit

Permalink
Regenerate types with Fast DDS Gen 4.0.3 (#5503)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany authored Dec 18, 2024
1 parent e99d6f3 commit 2a8ec03
Show file tree
Hide file tree
Showing 54 changed files with 362 additions and 21 deletions.
8 changes: 5 additions & 3 deletions examples/cpp/benchmark/types/Benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef FAST_DDS_GENERATED__BENCHMARK_HPP
#define FAST_DDS_GENERATED__BENCHMARK_HPP

#include <cstdint>
#include <cstdint>
#include <utility>

#if defined(_WIN32)
Expand Down Expand Up @@ -78,7 +78,7 @@ class BenchMark
eProsima_user_DllExport BenchMark(
const BenchMark& x)
{
m_index = x.m_index;
m_index = x.m_index;

}

Expand All @@ -100,7 +100,7 @@ class BenchMark
const BenchMark& x)
{

m_index = x.m_index;
m_index = x.m_index;

return *this;
}
Expand Down Expand Up @@ -165,6 +165,8 @@ class BenchMark
return m_index;
}



private:

uint32_t m_index{0};
Expand Down
15 changes: 9 additions & 6 deletions examples/cpp/benchmark/types/Benchmark_big.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef FAST_DDS_GENERATED__BENCHMARK_BIG_HPP
#define FAST_DDS_GENERATED__BENCHMARK_BIG_HPP

#include <array>
#include <array>
#include <cstdint>
#include <utility>

Expand Down Expand Up @@ -79,9 +79,9 @@ class BenchMarkBig
eProsima_user_DllExport BenchMarkBig(
const BenchMarkBig& x)
{
m_data = x.m_data;
m_data = x.m_data;

m_index = x.m_index;
m_index = x.m_index;

}

Expand All @@ -104,9 +104,9 @@ class BenchMarkBig
const BenchMarkBig& x)
{

m_data = x.m_data;
m_data = x.m_data;

m_index = x.m_index;
m_index = x.m_index;

return *this;
}
Expand All @@ -132,7 +132,7 @@ class BenchMarkBig
const BenchMarkBig& x) const
{
return (m_data == x.m_data &&
m_index == x.m_index);
m_index == x.m_index);
}

/*!
Expand Down Expand Up @@ -183,6 +183,7 @@ class BenchMarkBig
return m_data;
}


/*!
* @brief This function sets a value in member index
* @param _index New value for member index
Expand Down Expand Up @@ -211,6 +212,8 @@ class BenchMarkBig
return m_index;
}



private:

std::array<char, 8388608> m_data{0};
Expand Down
15 changes: 9 additions & 6 deletions examples/cpp/benchmark/types/Benchmark_medium.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef FAST_DDS_GENERATED__BENCHMARK_MEDIUM_HPP
#define FAST_DDS_GENERATED__BENCHMARK_MEDIUM_HPP

#include <array>
#include <array>
#include <cstdint>
#include <utility>

Expand Down Expand Up @@ -79,9 +79,9 @@ class BenchMarkMedium
eProsima_user_DllExport BenchMarkMedium(
const BenchMarkMedium& x)
{
m_data = x.m_data;
m_data = x.m_data;

m_index = x.m_index;
m_index = x.m_index;

}

Expand All @@ -104,9 +104,9 @@ class BenchMarkMedium
const BenchMarkMedium& x)
{

m_data = x.m_data;
m_data = x.m_data;

m_index = x.m_index;
m_index = x.m_index;

return *this;
}
Expand All @@ -132,7 +132,7 @@ class BenchMarkMedium
const BenchMarkMedium& x) const
{
return (m_data == x.m_data &&
m_index == x.m_index);
m_index == x.m_index);
}

/*!
Expand Down Expand Up @@ -183,6 +183,7 @@ class BenchMarkMedium
return m_data;
}


/*!
* @brief This function sets a value in member index
* @param _index New value for member index
Expand Down Expand Up @@ -211,6 +212,8 @@ class BenchMarkMedium
return m_index;
}



private:

std::array<char, 524288> m_data{0};
Expand Down
15 changes: 9 additions & 6 deletions examples/cpp/benchmark/types/Benchmark_small.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef FAST_DDS_GENERATED__BENCHMARK_SMALL_HPP
#define FAST_DDS_GENERATED__BENCHMARK_SMALL_HPP

#include <array>
#include <array>
#include <cstdint>
#include <utility>

Expand Down Expand Up @@ -79,9 +79,9 @@ class BenchMarkSmall
eProsima_user_DllExport BenchMarkSmall(
const BenchMarkSmall& x)
{
m_array = x.m_array;
m_array = x.m_array;

m_index = x.m_index;
m_index = x.m_index;

}

Expand All @@ -104,9 +104,9 @@ class BenchMarkSmall
const BenchMarkSmall& x)
{

m_array = x.m_array;
m_array = x.m_array;

m_index = x.m_index;
m_index = x.m_index;

return *this;
}
Expand All @@ -132,7 +132,7 @@ class BenchMarkSmall
const BenchMarkSmall& x) const
{
return (m_array == x.m_array &&
m_index == x.m_index);
m_index == x.m_index);
}

/*!
Expand Down Expand Up @@ -183,6 +183,7 @@ class BenchMarkSmall
return m_array;
}


/*!
* @brief This function sets a value in member index
* @param _index New value for member index
Expand Down Expand Up @@ -211,6 +212,8 @@ class BenchMarkSmall
return m_index;
}



private:

std::array<char, 16384> m_array{0};
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/configuration/ConfigurationPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool ConfigurationPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/content_filter/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool DeliveryMechanismsPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/discovery_server/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/flow_control/FlowControlPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool FlowControlPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/hello_world/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
2 changes: 2 additions & 0 deletions examples/cpp/request_reply/types/CalculatorPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool CalculatorRequestTypePubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -257,6 +258,7 @@ bool CalculatorReplyTypePubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/security/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool HelloWorldPubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/topic_instances/ShapeTypePubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bool ShapeTypePubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -264,6 +265,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -446,6 +448,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -628,6 +631,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -810,6 +814,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down Expand Up @@ -992,6 +997,7 @@ namespace builtin {
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
}
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
{
Expand Down
Loading

0 comments on commit 2a8ec03

Please sign in to comment.