From 9d1675c2f8e5c103015e66e62390767f482e3644 Mon Sep 17 00:00:00 2001 From: Eduardo Ponz Segrelles Date: Wed, 3 Jul 2024 07:33:20 +0200 Subject: [PATCH] Remove doxygen warnings (#154) Signed-off-by: eduponz --- .../src/swig/fastdds/dds/domain/DomainParticipant.i | 8 ++++++-- .../src/swig/fastdds/dds/publisher/DataWriter.i | 1 + .../src/swig/fastdds/dds/subscriber/DataReader.i | 7 +++++-- .../src/swig/fastdds/rtps/common/InstanceHandle.i | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i index 4e62f13c..a9f21c47 100644 --- a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i +++ b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i @@ -84,7 +84,7 @@ if (nullptr != listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(listener); - + if (nullptr != director) { Py_INCREF(director->swig_get_self()); @@ -93,7 +93,7 @@ if (nullptr != old_listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(old_listener); - + if (nullptr != director) { Py_DECREF(director->swig_get_self()); @@ -288,4 +288,8 @@ %ignore eprosima::fastdds::dds::DomainParticipant::delete_subscriber; %ignore eprosima::fastdds::dds::DomainParticipant::create_subscriber_with_profile; +// Template for std::vector +%template(DomainParticipantVector) std::vector; +%typemap(doctype) std::vector "DomainParticipantVector"; + %include "fastdds/dds/domain/DomainParticipant.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i b/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i index 97e0d12c..b2c18500 100644 --- a/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i +++ b/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i @@ -125,6 +125,7 @@ // Template for std::vector %template(DataWriterVector) std::vector; +%typemap(doctype) std::vector "DataWriterVector"; %include "fastdds/dds/publisher/DataWriter.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i b/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i index 37ac006e..eeb63f01 100644 --- a/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i +++ b/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i @@ -18,7 +18,10 @@ // Template for std::vector %template(DataReaderVector) std::vector; +%typemap(doctype) std::vector "DataReaderVector"; + %template(SampleInfoSeq) eprosima::fastdds::dds::LoanableSequence; +%typemap(doctype) eprosima::fastdds::dds::LoanableSequence "SampleInfoSeq"; %extend eprosima::fastdds::dds::LoanableSequence { size_t __len__() const @@ -88,7 +91,7 @@ if (nullptr != listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(listener); - + if (nullptr != director) { Py_INCREF(director->swig_get_self()); @@ -97,7 +100,7 @@ if (nullptr != old_listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(old_listener); - + if (nullptr != director) { Py_DECREF(director->swig_get_self()); diff --git a/fastdds_python/src/swig/fastdds/rtps/common/InstanceHandle.i b/fastdds_python/src/swig/fastdds/rtps/common/InstanceHandle.i index 97a0580c..5ea7b280 100644 --- a/fastdds_python/src/swig/fastdds/rtps/common/InstanceHandle.i +++ b/fastdds_python/src/swig/fastdds/rtps/common/InstanceHandle.i @@ -77,6 +77,7 @@ long hash(const eprosima::fastrtps::rtps::InstanceHandle_t& handle) // Template for std::vector %template(InstanceHandleVector) std::vector; +%typemap(doctype) std::vector"InstanceHandleVector"; %include "fastdds/rtps/common/InstanceHandle.h"