Skip to content

Commit

Permalink
Refs #20738. Apply suggestions 1
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Apr 3, 2024
1 parent 14e8cf5 commit 9668cfa
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 39 deletions.
6 changes: 3 additions & 3 deletions examples/cpp/dds/LivelinessQoS/LivelinessPublisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

#include <mutex>

#include "TopicPubSubTypes.h"
#include "Topic.hpp"

#include <fastdds/dds/domain/DomainParticipant.hpp>
#include <fastdds/dds/publisher/DataWriter.hpp>
#include <fastdds/dds/publisher/DataWriterListener.hpp>
#include <fastdds/dds/publisher/Publisher.hpp>
#include <fastdds/dds/topic/Topic.hpp>

#include "TopicPubSubTypes.h"
#include "Topic.hpp"

class LivelinessPublisher
{
public:
Expand Down
6 changes: 3 additions & 3 deletions examples/cpp/dds/LivelinessQoS/LivelinessSubscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#ifndef LIVELINESSSUBSCRIBER_H_
#define LIVELINESSSUBSCRIBER_H_

#include "TopicPubSubTypes.h"
#include "Topic.hpp"

#include <fastdds/dds/domain/DomainParticipant.hpp>
#include <fastdds/dds/domain/DomainParticipantListener.hpp>
#include <fastdds/dds/subscriber/DataReader.hpp>
Expand All @@ -31,6 +28,9 @@
#include <fastdds/dds/topic/Topic.hpp>
#include <fastdds/rtps/participant/ParticipantDiscoveryInfo.h>

#include "TopicPubSubTypes.h"
#include "Topic.hpp"

class LivelinessSubscriber
{
public:
Expand Down
4 changes: 0 additions & 4 deletions src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ set(${PROJECT_NAME}_source_files
fastdds/topic/TopicProxyFactory.cpp
fastdds/topic/TypeSupport.cpp
fastdds/utils/QosConverters.cpp
fastdds/xtypes/exception/Exception.cpp
fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx
fastdds/xtypes/type_representation/TypeObjectUtils.cpp
fastdds/xtypes/type_representation/TypeObjectRegistry.cpp
rtps/attributes/PropertyPolicy.cpp
rtps/attributes/RTPSParticipantAttributes.cpp
rtps/attributes/ThreadSettings.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <mutex>

#include <fastdds/builtin/type_lookup_service/TypeLookupManager.hpp>
#include <fastdds/dds/log/Log.hpp>
#include <fastdds/rtps/builtin/data/NetworkConfiguration.hpp>
#include <fastdds/rtps/builtin/data/ParticipantProxyData.h>
Expand All @@ -34,6 +33,7 @@
#include <fastdds/rtps/resources/TimedEvent.h>
#include <fastdds/rtps/writer/StatelessWriter.h>

#include <fastdds/builtin/type_lookup_service/TypeLookupManager.hpp>
#include <fastdds/utils/IPLocator.h>
#include <rtps/builtin/BuiltinProtocols.h>
#include <rtps/builtin/discovery/endpoint/EDPSimple.h>
Expand Down
1 change: 0 additions & 1 deletion test/blackbox/api/dds-pim/PubSubReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include <fastdds/utils/IPLocator.h>

using eprosima::fastdds::dds::DomainParticipantFactory;
using eprosima::fastdds::dds::ReturnCode_t;
using eprosima::fastdds::rtps::UDPTransportDescriptor;
using eprosima::fastdds::rtps::UDPv4TransportDescriptor;
using eprosima::fastdds::rtps::UDPv6TransportDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <fastdds/statistics/topic_names.hpp>
#include <gtest/gtest.h>

#include <statistics/fastdds/domain/DomainParticipantImpl.hpp>
#include "../types/statistics/types.hpp"
#include "../types/statistics/typesPubSubTypes.h"
#include "BlackboxTests.hpp"
Expand Down
29 changes: 6 additions & 23 deletions test/mock/rtps/BuiltinProtocols/rtps/builtin/BuiltinProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,12 @@
#ifndef _FASTDDS_RTPS_BUILTINPROTOCOLS_H_
#define _FASTDDS_RTPS_BUILTINPROTOCOLS_H_

#include <fastdds/builtin/type_lookup_service/TypeLookupManager.hpp>
#include <fastdds/rtps/attributes/RTPSParticipantAttributes.h>
#include <fastdds/rtps/common/Locator.h>

#include <fastdds/builtin/type_lookup_service/TypeLookupManager.hpp>

namespace eprosima {
namespace fastdds {
namespace dds {
namespace builtin {

class TypeLookupManager;

} // namespace builtin
} // namespace dds
} // namespace fastdds
namespace fastrtps {
namespace rtps {

Expand All @@ -45,16 +35,9 @@ class BuiltinProtocols
{
public:

BuiltinProtocols()
: mp_participantImpl(nullptr)
, mp_PDP(nullptr)
, mp_WLP(nullptr)
{
}
BuiltinProtocols() = default;

virtual ~BuiltinProtocols()
{
}
virtual ~BuiltinProtocols() = default;

//!Locator list for metatraffic
LocatorList_t m_metatrafficMulticastLocatorList;
Expand All @@ -70,16 +53,16 @@ class BuiltinProtocols
std::list<eprosima::fastdds::rtps::RemoteServerAttributes> m_DiscoveryServers;

//!Pointer to the RTPSParticipantImpl.
RTPSParticipantImpl* mp_participantImpl;
RTPSParticipantImpl* mp_participantImpl {nullptr};

//!Pointer to the PDPSimple.
PDP* mp_PDP;
PDP* mp_PDP {nullptr};

//!Pointer to the WLP
WLP* mp_WLP;
WLP* mp_WLP {nullptr};

//!Pointer to the TypeLookupManager
fastdds::dds::builtin::TypeLookupManager* typelookup_manager_;
fastdds::dds::builtin::TypeLookupManager* typelookup_manager_ {nullptr};

};

Expand Down
3 changes: 1 addition & 2 deletions test/unittest/statistics/dds/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,10 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX)
${THIRDPARTY_BOOST_INCLUDE_DIR})
target_link_libraries(StatisticsDomainParticipantStatusQueryableTests ${PRIVACY}
fastcdr
fastdds::xtypes::dynamic-types::impl
foonathan_memory
fastdds::log
fastdds::xtypes::dynamic-types::impl
fastdds::xtypes::type-representation
foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS}
${TINYXML2_LIBRARY}
Expand Down
4 changes: 3 additions & 1 deletion versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ Forthcoming
* shared_mutex
* StringMatching
* TimeConversion
* TypeLookupService
* DBQueue
* Added create participant methods that use environment XML profile for participant configuration.
* XML Parser API no longer public.
* New TypeObjectRegistry class to register/query TypeObjects/TypeIdentifiers.
* New TypeObjectUtils class providing API to build and register TypeObjects/TypeIdentifiers.
* Added `non_blocking_send` to TCP Transport.
* Refactor Dynamic Language Binding API according to OMG XTypes v1.3 specification.
* Refactor ReturnCode complying with OMG DDS specification.

Version 2.14.0
--------------
Expand Down

0 comments on commit 9668cfa

Please sign in to comment.