Skip to content

Commit 0a903a0

Browse files
committed
Refs #21129: Fix compilation error
Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com>
1 parent 36d5bd2 commit 0a903a0

12 files changed

Lines changed: 29 additions & 29 deletions

File tree

examples/cpp/custom_payload_pool/CustomPayloadPool.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
#include <fastdds/rtps/history/IPayloadPool.h>
2727
#include <fastdds/rtps/common/SerializedPayload.h>
2828

29-
class CustomPayloadPool : public eprosima::fastrtps::rtps::IPayloadPool
29+
class CustomPayloadPool : public eprosima::fastdds::rtps::IPayloadPool
3030
{
3131
public:
3232

3333
~CustomPayloadPool() = default;
3434

3535
bool get_payload(
3636
unsigned int size,
37-
eprosima::fastrtps::rtps::SerializedPayload_t& payload)
37+
eprosima::fastdds::rtps::SerializedPayload_t& payload)
3838
{
3939
// Reserve new memory for the payload buffer
4040
unsigned char* payload_buff = new unsigned char[size];
@@ -51,8 +51,8 @@ class CustomPayloadPool : public eprosima::fastrtps::rtps::IPayloadPool
5151
}
5252

5353
bool get_payload(
54-
const eprosima::fastrtps::rtps::SerializedPayload_t& data,
55-
eprosima::fastrtps::rtps::SerializedPayload_t& payload)
54+
const eprosima::fastdds::rtps::SerializedPayload_t& data,
55+
eprosima::fastdds::rtps::SerializedPayload_t& payload)
5656
{
5757
// Reserve new memory for the payload buffer
5858
unsigned char* payload_buff = new unsigned char[data.length];
@@ -72,7 +72,7 @@ class CustomPayloadPool : public eprosima::fastrtps::rtps::IPayloadPool
7272
}
7373

7474
bool release_payload(
75-
eprosima::fastrtps::rtps::SerializedPayload_t& payload)
75+
eprosima::fastdds::rtps::SerializedPayload_t& payload)
7676
{
7777
// Ensure precondition
7878
if (this != payload.payload_owner)

src/cpp/fastdds/core/policy/ParameterSerializer.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,23 +436,23 @@ inline bool ParameterSerializer<ParameterVendorId_t>::read_content_from_cdr_mess
436436
template<>
437437
inline bool ParameterSerializer<ParameterDomainId_t>::add_content_to_cdr_message(
438438
const ParameterDomainId_t& parameter,
439-
fastrtps::rtps::CDRMessage_t* cdr_message)
439+
fastdds::rtps::CDRMessage_t* cdr_message)
440440
{
441-
return fastrtps::rtps::CDRMessage::addUInt32(cdr_message, parameter.domain_id);
441+
return fastdds::rtps::CDRMessage::addUInt32(cdr_message, parameter.domain_id);
442442
}
443443

444444
template<>
445445
inline bool ParameterSerializer<ParameterDomainId_t>::read_content_from_cdr_message(
446446
ParameterDomainId_t& parameter,
447-
fastrtps::rtps::CDRMessage_t* cdr_message,
447+
fastdds::rtps::CDRMessage_t* cdr_message,
448448
const uint16_t parameter_length)
449449
{
450450
if (parameter_length != PARAMETER_DOMAINID_LENGTH)
451451
{
452452
return false;
453453
}
454454
parameter.length = parameter_length;
455-
return fastrtps::rtps::CDRMessage::readUInt32(cdr_message, &parameter.domain_id);
455+
return fastdds::rtps::CDRMessage::readUInt32(cdr_message, &parameter.domain_id);
456456
}
457457

458458
template<>

src/cpp/rtps/builtin/discovery/participant/PDPClientListener.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
using ParameterList = eprosima::fastdds::dds::ParameterList;
3939

4040
namespace eprosima {
41-
namespace fastrtps {
41+
namespace fastdds {
4242
namespace rtps {
4343

4444
PDPClientListener::PDPClientListener(
@@ -59,5 +59,5 @@ bool PDPClientListener::check_discovery_conditions(
5959
}
6060

6161
} /* namespace rtps */
62-
} /* namespace fastrtps */
62+
} /* namespace fastdds */
6363
} /* namespace eprosima */

src/cpp/rtps/builtin/discovery/participant/PDPClientListener.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <rtps/builtin/discovery/participant/PDPListener.h>
2424

2525
namespace eprosima {
26-
namespace fastrtps {
26+
namespace fastdds {
2727
namespace rtps {
2828

2929
/**
@@ -53,7 +53,7 @@ class PDPClientListener : public PDPListener
5353

5454

5555
} /* namespace rtps */
56-
} /* namespace fastrtps */
56+
} /* namespace fastdds */
5757
} /* namespace eprosima */
5858

5959
#endif /* _FASTDDS_RTPS_PDPCLIENTLISTENER_H_ */

src/cpp/rtps/builtin/discovery/participant/PDPServerListener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ std::pair<bool, bool> PDPServerListener::check_server_discovery_conditions(
369369
std::pair<bool, bool> ret{true, true};
370370

371371
/* Check PID_VENDOR_ID */
372-
if (participant_data.m_VendorId != fastrtps::rtps::c_VendorId_eProsima)
372+
if (participant_data.m_VendorId != fastdds::rtps::c_VendorId_eProsima)
373373
{
374374
EPROSIMA_LOG_INFO(RTPS_PDP_LISTENER,
375375
"DATA(p|Up) from different vendor is not supported for Discover-Server operation");

src/cpp/rtps/common/SerializedPayload.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <fastdds/rtps/common/SerializedPayload.h>
2020

2121
namespace eprosima {
22-
namespace fastrtps {
22+
namespace fastdds {
2323
namespace rtps {
2424

2525
SerializedPayload_t& SerializedPayload_t::operator = (
@@ -144,5 +144,5 @@ void SerializedPayload_t::reserve(
144144
}
145145

146146
} /* namespace rtps */
147-
} /* namespace fastrtps */
147+
} /* namespace fastdds */
148148
} /* namespace eprosima */

src/cpp/rtps/messages/RTPSMessageGroup_t.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ class RTPSMessageGroup_t
113113
#endif // if HAVE_SECURITY
114114

115115
//! Vector to store the NetworkBuffers that will be used to form the RTPS message.
116-
eprosima::fastrtps::ResourceLimitedVector<eprosima::fastdds::rtps::NetworkBuffer> buffers_;
116+
eprosima::fastdds::ResourceLimitedVector<eprosima::fastdds::rtps::NetworkBuffer> buffers_;
117117

118118
//! Mirror vector of buffers_ to store the serialized payloads.
119-
eprosima::fastrtps::ResourceLimitedVector<eprosima::fastrtps::rtps::SerializedPayload_t> payloads_;
119+
eprosima::fastdds::ResourceLimitedVector<eprosima::fastdds::rtps::SerializedPayload_t> payloads_;
120120
};
121121

122122
} // namespace rtps

src/cpp/rtps/reader/BaseReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ void BaseReader::release_cache(
282282
{
283283
std::lock_guard<decltype(mp_mutex)> guard(mp_mutex);
284284

285-
fastrtps::rtps::IPayloadPool* pool = change->serializedPayload.payload_owner;
285+
fastdds::rtps::IPayloadPool* pool = change->serializedPayload.payload_owner;
286286
if (pool)
287287
{
288288
pool->release_payload(change->serializedPayload);

src/cpp/statistics/rtps/messages/RTPSStatisticsMessages.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ inline void set_statistics_submessage_from_transport(
204204

205205
// Set current timestamp and sequence
206206
auto current_pos = &static_cast<const octet*>(send_buffer.buffer)[statistics_pos];
207-
Time_t ts;
208-
Time_t::now(ts);
207+
eprosima::fastdds::rtps::Time_t ts;
208+
eprosima::fastdds::rtps::Time_t::now(ts);
209209

210210
/*
211211
* This set of memcpy blocks is intended to prevent an undefined behavior caused when casting from an octet* to a StatisticsSubmessageData*

test/blackbox/common/DDSBlackboxTestsDiscovery.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ TEST(DDSDiscovery, pdp_simple_participants_exchange_same_pid_domain_id_and_disco
19381938
{
19391939
using namespace eprosima::fastdds::dds;
19401940
using namespace eprosima::fastdds::rtps;
1941-
using namespace eprosima::fastrtps::rtps;
1941+
using namespace eprosima::fastdds::rtps;
19421942

19431943
PubSubReader<HelloWorldPubSubType> reader(TEST_TOPIC_NAME);
19441944
PubSubWriter<HelloWorldPubSubType> writer(TEST_TOPIC_NAME);
@@ -1963,8 +1963,8 @@ TEST(DDSDiscovery, pdp_simple_participants_exchange_same_pid_domain_id_and_disco
19631963
uint16_t plength = 0;
19641964
bool valid = true;
19651965

1966-
valid &= eprosima::fastrtps::rtps::CDRMessage::readUInt16(&msg, (uint16_t*)&pid);
1967-
valid &= eprosima::fastrtps::rtps::CDRMessage::readUInt16(&msg, &plength);
1966+
valid &= eprosima::fastdds::rtps::CDRMessage::readUInt16(&msg, (uint16_t*)&pid);
1967+
valid &= eprosima::fastdds::rtps::CDRMessage::readUInt16(&msg, &plength);
19681968

19691969
if (pid == eprosima::fastdds::dds::PID_SENTINEL)
19701970
{
@@ -1987,7 +1987,7 @@ TEST(DDSDiscovery, pdp_simple_participants_exchange_same_pid_domain_id_and_disco
19871987
if (pid == eprosima::fastdds::dds::PID_DOMAIN_ID)
19881988
{
19891989
uint32_t domain_id = 0;
1990-
eprosima::fastrtps::rtps::CDRMessage::readUInt32(&msg, &domain_id);
1990+
eprosima::fastdds::rtps::CDRMessage::readUInt32(&msg, &domain_id);
19911991
if (domain_id == (uint32_t)GET_PID() % 230)
19921992
{
19931993
pid_was_found = true;

0 commit comments

Comments
 (0)