Skip to content

Commit

Permalink
Refs #20181: Move FakeWriter.hpp to parent scope
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Jul 16, 2024
1 parent 775e4c4 commit 404d686
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @file FakeWriter.hpp
*/

#ifndef FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT_DS__FAKEWRITER_HPP_
#define FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT_DS__FAKEWRITER_HPP_
#ifndef FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT__FAKEWRITER_HPP_
#define FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT__FAKEWRITER_HPP_

#include <fastdds/rtps/Endpoint.hpp>

Expand All @@ -30,16 +30,16 @@ namespace rtps {
/**
* An RTPS writer simulator used to send messages with a \ref DirectMessageSender.
*/
class FakeWriter : public Endpoint
class FakeWriter : public fastdds::rtps::Endpoint
{
public:

FakeWriter(
RTPSParticipantImpl* participant,
const EntityId_t& entity_id)
: Endpoint(participant, { participant->getGuid().guidPrefix, entity_id }, {})
fastdds::rtps::RTPSParticipantImpl* participant,
const fastdds::rtps::EntityId_t& entity_id)
: fastdds::rtps::Endpoint(participant, { participant->getGuid().guidPrefix, entity_id }, {})
{
m_att.endpointKind = EndpointKind_t::WRITER;
m_att.endpointKind = fastdds::rtps::EndpointKind_t::WRITER;
#if HAVE_SECURITY
participant->set_endpoint_rtps_protection_supports(this, false);
#endif // HAVE_SECURITY
Expand All @@ -52,4 +52,4 @@ class FakeWriter : public Endpoint
} // namespace fastdds
} // namespace eprosima

#endif /* FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT_DS__FAKEWRITER_HPP_ */
#endif /* FASTDDS_RTPS_BUILTIN_DISCOVERY_PARTICIPANT__FAKEWRITER_HPP_ */
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <rtps/builtin/discovery/participant/DirectMessageSender.hpp>
#include <rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpoints.hpp>
#include <rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpointsSecure.hpp>
#include <rtps/builtin/discovery/participant/DS/FakeWriter.hpp>
#include <rtps/builtin/discovery/participant/DS/PDPSecurityInitiatorListener.hpp>
#include <rtps/builtin/discovery/participant/FakeWriter.hpp>
#include <rtps/builtin/discovery/participant/PDPServer.hpp>
#include <rtps/builtin/discovery/participant/PDPServerListener.hpp>
#include <rtps/builtin/discovery/participant/timedevent/DServerEvent.hpp>
Expand Down

0 comments on commit 404d686

Please sign in to comment.