Skip to content

Commit 748f67a

Browse files
Add export to 'create_listener' (backport #153) (#155)
* Add export to 'create_listener' (#153) Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> (cherry picked from commit 4fde39f) # Conflicts: # ddspipe_participants/include/ddspipe_participants/participant/dynamic_types/DynTypesParticipant.hpp * Solve conflicts Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> --------- Signed-off-by: cferreiragonz <carlosferreira@eprosima.com> Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
1 parent edde48f commit 748f67a

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

ddspipe_participants/include/ddspipe_participants/participant/dynamic_types/DynTypesParticipant.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ class DynTypesParticipant : public rtps::SimpleParticipant
9898
const eprosima::fastrtps::string_255 type_name,
9999
const eprosima::fastrtps::types::TypeInformation& type_information) override;
100100

101-
//! Type Object Reader getter
102-
inline std::shared_ptr<InternalReader> type_object_reader() const
103-
{
104-
return type_object_reader_;
105-
}
106-
107101
protected:
108102

109103
void internal_notify_type_object_(
@@ -124,6 +118,7 @@ class DynTypesParticipant : public rtps::SimpleParticipant
124118
std::shared_ptr<InternalReader> type_object_reader_;
125119

126120
//! Override method from \c CommonParticipant to create the internal RTPS participant listener
121+
DDSPIPE_PARTICIPANTS_DllAPI
127122
std::unique_ptr<fastrtps::rtps::RTPSParticipantListener> create_listener_() override;
128123

129124
};

ddspipe_participants/src/cpp/participant/dynamic_types/DynTypesParticipant.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ std::shared_ptr<IReader> DynTypesParticipant::create_reader(
8787
// If type object topic, return the internal reader for type objects
8888
if (is_type_object_topic(topic))
8989
{
90-
return static_cast<DynTypesParticipant::DynTypesRtpsListener*>(rtps_participant_listener_.get())->
91-
type_object_reader();
90+
return type_object_reader_;
9291
}
9392

9493
// If not type object, use the parent method

0 commit comments

Comments
 (0)