Skip to content

Commit

Permalink
Refs #21385. Regenerate code.
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Jul 26, 2024
1 parent d295bca commit c2524a2
Show file tree
Hide file tree
Showing 139 changed files with 9,303 additions and 1,042 deletions.
7 changes: 7 additions & 0 deletions examples/cpp/configuration/ConfigurationCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,15 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const Configuration& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

scdr << data.data();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/configuration/ConfigurationPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool ConfigurationPubSubType::compute_key(
Configuration_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || Configuration_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/content_filter/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/content_filter/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/custom_payload_pool/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/delivery_mechanisms/DeliveryMechanismsCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const DeliveryMechanisms& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool DeliveryMechanismsPubSubType::compute_key(
DeliveryMechanisms_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || DeliveryMechanisms_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/discovery_server/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/discovery_server/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/flow_control/FlowControlCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const FlowControl& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/flow_control/FlowControlPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool FlowControlPubSubType::compute_key(
FlowControl_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || FlowControl_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/hello_world/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/hello_world/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
6 changes: 4 additions & 2 deletions examples/cpp/request_reply/types/CalculatorCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const CalculatorRequestType& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.client_id();
scdr << data.client_id();



Expand Down Expand Up @@ -218,9 +219,10 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const CalculatorReplyType& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.client_id();
scdr << data.client_id();


}
Expand Down
6 changes: 4 additions & 2 deletions examples/cpp/request_reply/types/CalculatorPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool CalculatorRequestTypePubSubType::compute_key(
CalculatorRequestType_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || CalculatorRequestType_max_key_cdr_typesize > 16)
{
Expand Down Expand Up @@ -364,7 +365,8 @@ bool CalculatorReplyTypePubSubType::compute_key(
CalculatorReplyType_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || CalculatorReplyType_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/security/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/security/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/cpp/static_edp_discovery/HelloWorldCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const HelloWorld& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.index();

scdr << data.message();

}


Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/static_edp_discovery/HelloWorldPubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool HelloWorldPubSubType::compute_key(
HelloWorld_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || HelloWorld_max_key_cdr_typesize > 16)
{
Expand Down
47 changes: 23 additions & 24 deletions examples/cpp/topic_instances/ShapeTypeCdrAux.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ eProsima_user_DllExport size_t calculate_serialized_size(
current_alignment)};


calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0),
data.color(), current_alignment);
calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0),
data.color(), current_alignment);

calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1),
data.x(), current_alignment);
calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1),
data.x(), current_alignment);

calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2),
data.y(), current_alignment);
calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2),
data.y(), current_alignment);

calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3),
data.shapesize(), current_alignment);
calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3),
data.shapesize(), current_alignment);


calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment);
Expand All @@ -84,7 +84,7 @@ eProsima_user_DllExport void serialize(
<< eprosima::fastcdr::MemberId(1) << data.x()
<< eprosima::fastcdr::MemberId(2) << data.y()
<< eprosima::fastcdr::MemberId(3) << data.shapesize()
;
;
scdr.end_serialize_type(current_state);
}

Expand All @@ -101,21 +101,21 @@ eProsima_user_DllExport void deserialize(
bool ret_value = true;
switch (mid.id)
{
case 0:
dcdr >> data.color();
break;
case 0:
dcdr >> data.color();
break;

case 1:
dcdr >> data.x();
break;
case 1:
dcdr >> data.x();
break;

case 2:
dcdr >> data.y();
break;
case 2:
dcdr >> data.y();
break;

case 3:
dcdr >> data.shapesize();
break;
case 3:
dcdr >> data.shapesize();
break;

default:
ret_value = false;
Expand All @@ -129,17 +129,16 @@ void serialize_key(
eprosima::fastcdr::Cdr& scdr,
const ShapeType& data)
{

static_cast<void>(scdr);
static_cast<void>(data);
scdr << data.color();
scdr << data.color();




}



} // namespace fastcdr
} // namespace eprosima

Expand Down
3 changes: 2 additions & 1 deletion examples/cpp/topic_instances/ShapeTypePubSubTypes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ bool ShapeTypePubSubType::compute_key(
ShapeType_max_key_cdr_typesize);

// Object that serializes the data.
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1);
eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv2);
ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2);
eprosima::fastcdr::serialize_key(ser, *p_type);
if (force_md5 || ShapeType_max_key_cdr_typesize > 16)
{
Expand Down
Loading

0 comments on commit c2524a2

Please sign in to comment.