From bc90ddb7d99f64ce9688a771339541ddcdd09a89 Mon Sep 17 00:00:00 2001 From: Eduardo Ponz Segrelles Date: Wed, 27 Mar 2024 08:29:57 +0100 Subject: [PATCH] Add ReplierQos and RequesterQos (#113) * Refs #20567: Add ReplierQos and RequesterQos Signed-off-by: EduPonz * Refs #20567: Apply Eliana's suggestions Signed-off-by: EduPonz --------- Signed-off-by: EduPonz --- fastdds_python/src/swig/fastdds.i | 2 + .../dds/domain/qos/ReplierQos.i} | 4 +- .../dds/domain/qos/RequesterQos.i} | 4 +- .../attributes/ParticipantAttributes.i | 19 ------- .../fastrtps/attributes/PublisherAttributes.i | 19 ------- .../fastrtps/attributes/ReplierAttributes.i | 19 ------- .../fastrtps/attributes/RequesterAttributes.i | 19 ------- .../attributes/SubscriberAttributes.i | 19 ------- .../fastrtps/rtps/builtin/BuiltinProtocols.i | 19 ------- .../rtps/builtin/discovery/endpoint/EDP.i | 19 ------- .../builtin/discovery/endpoint/EDPSimple.i | 19 ------- .../builtin/discovery/endpoint/EDPStatic.i | 19 ------- .../rtps/builtin/discovery/participant/PDP.i | 19 ------- .../discovery/participant/PDPListener.i | 19 ------- .../builtin/discovery/participant/PDPSimple.i | 19 ------- .../rtps/builtin/liveliness/WLPListener.i | 19 ------- .../fastrtps/rtps/messages/MessageReceiver.i | 19 ------- .../src/swig/fastrtps/utils/DBQueue.i | 19 ------- .../src/swig/fastrtps/utils/Semaphore.i | 19 ------- .../src/swig/fastrtps/utils/StringMatching.i | 19 ------- fastdds_python/test/api/test_qos.py | 50 +++++++++++++++++++ 21 files changed, 56 insertions(+), 327 deletions(-) rename fastdds_python/src/swig/{fastrtps/utils/TimeConversion.i => fastdds/dds/domain/qos/ReplierQos.i} (86%) rename fastdds_python/src/swig/{fastrtps/rtps/builtin/liveliness/WLP.i => fastdds/dds/domain/qos/RequesterQos.i} (86%) delete mode 100644 fastdds_python/src/swig/fastrtps/attributes/ParticipantAttributes.i delete mode 100644 fastdds_python/src/swig/fastrtps/attributes/PublisherAttributes.i delete mode 100644 fastdds_python/src/swig/fastrtps/attributes/ReplierAttributes.i delete mode 100644 fastdds_python/src/swig/fastrtps/attributes/RequesterAttributes.i delete mode 100644 fastdds_python/src/swig/fastrtps/attributes/SubscriberAttributes.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/BuiltinProtocols.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDP.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDP.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPListener.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPSimple.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLPListener.i delete mode 100644 fastdds_python/src/swig/fastrtps/rtps/messages/MessageReceiver.i delete mode 100644 fastdds_python/src/swig/fastrtps/utils/DBQueue.i delete mode 100644 fastdds_python/src/swig/fastrtps/utils/Semaphore.i delete mode 100644 fastdds_python/src/swig/fastrtps/utils/StringMatching.i diff --git a/fastdds_python/src/swig/fastdds.i b/fastdds_python/src/swig/fastdds.i index 9400e0f9..0e03b74a 100644 --- a/fastdds_python/src/swig/fastdds.i +++ b/fastdds_python/src/swig/fastdds.i @@ -485,6 +485,8 @@ namespace builtin { %include "fastdds/dds/domain/DomainParticipantListener.i" %include "fastdds/dds/domain/qos/DomainParticipantFactoryQos.i" %include "fastdds/dds/domain/qos/DomainParticipantQos.i" +%include "fastdds/dds/domain/qos/ReplierQos.i" +%include "fastdds/dds/domain/qos/RequesterQos.i" %include "fastdds/dds/domain/DomainParticipant.i" %include "fastdds/dds/domain/DomainParticipantFactory.i" diff --git a/fastdds_python/src/swig/fastrtps/utils/TimeConversion.i b/fastdds_python/src/swig/fastdds/dds/domain/qos/ReplierQos.i similarity index 86% rename from fastdds_python/src/swig/fastrtps/utils/TimeConversion.i rename to fastdds_python/src/swig/fastdds/dds/domain/qos/ReplierQos.i index 333220ed..b547e2e8 100644 --- a/fastdds_python/src/swig/fastrtps/utils/TimeConversion.i +++ b/fastdds_python/src/swig/fastdds/dds/domain/qos/ReplierQos.i @@ -13,7 +13,7 @@ // limitations under the License. %{ -#include "fastrtps/utils/TimeConversion.h" +#include "fastdds/dds/domain/qos/ReplierQos.hpp" %} -%include "fastrtps/utils/TimeConversion.h" +%include "fastdds/dds/domain/qos/ReplierQos.hpp" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLP.i b/fastdds_python/src/swig/fastdds/dds/domain/qos/RequesterQos.i similarity index 86% rename from fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLP.i rename to fastdds_python/src/swig/fastdds/dds/domain/qos/RequesterQos.i index f2edc8bc..6210f521 100644 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLP.i +++ b/fastdds_python/src/swig/fastdds/dds/domain/qos/RequesterQos.i @@ -13,7 +13,7 @@ // limitations under the License. %{ -#include "fastrtps/rtps/builtin/liveliness/WLP.h" +#include "fastdds/dds/domain/qos/RequesterQos.hpp" %} -%include "fastrtps/rtps/builtin/liveliness/WLP.h" +%include "fastdds/dds/domain/qos/RequesterQos.hpp" diff --git a/fastdds_python/src/swig/fastrtps/attributes/ParticipantAttributes.i b/fastdds_python/src/swig/fastrtps/attributes/ParticipantAttributes.i deleted file mode 100644 index bbf7186b..00000000 --- a/fastdds_python/src/swig/fastrtps/attributes/ParticipantAttributes.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/attributes/ParticipantAttributes.h" -%} - -%include "fastrtps/attributes/ParticipantAttributes.h" diff --git a/fastdds_python/src/swig/fastrtps/attributes/PublisherAttributes.i b/fastdds_python/src/swig/fastrtps/attributes/PublisherAttributes.i deleted file mode 100644 index 5b62960c..00000000 --- a/fastdds_python/src/swig/fastrtps/attributes/PublisherAttributes.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/attributes/PublisherAttributes.h" -%} - -%include "fastrtps/attributes/PublisherAttributes.h" diff --git a/fastdds_python/src/swig/fastrtps/attributes/ReplierAttributes.i b/fastdds_python/src/swig/fastrtps/attributes/ReplierAttributes.i deleted file mode 100644 index 2ade519e..00000000 --- a/fastdds_python/src/swig/fastrtps/attributes/ReplierAttributes.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/attributes/ReplierAttributes.hpp" -%} - -%include "fastrtps/attributes/ReplierAttributes.hpp" diff --git a/fastdds_python/src/swig/fastrtps/attributes/RequesterAttributes.i b/fastdds_python/src/swig/fastrtps/attributes/RequesterAttributes.i deleted file mode 100644 index 4520b7d4..00000000 --- a/fastdds_python/src/swig/fastrtps/attributes/RequesterAttributes.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/attributes/RequesterAttributes.hpp" -%} - -%include "fastrtps/attributes/RequesterAttributes.hpp" diff --git a/fastdds_python/src/swig/fastrtps/attributes/SubscriberAttributes.i b/fastdds_python/src/swig/fastrtps/attributes/SubscriberAttributes.i deleted file mode 100644 index b72c0ba0..00000000 --- a/fastdds_python/src/swig/fastrtps/attributes/SubscriberAttributes.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/attributes/SubscriberAttributes.h" -%} - -%include "fastrtps/attributes/SubscriberAttributes.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/BuiltinProtocols.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/BuiltinProtocols.i deleted file mode 100644 index 972e3780..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/BuiltinProtocols.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/BuiltinProtocols.h" -%} - -%include "fastrtps/rtps/builtin/BuiltinProtocols.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDP.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDP.i deleted file mode 100644 index 69844323..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDP.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/endpoint/EDP.h" -%} - -%include "fastrtps/rtps/builtin/discovery/endpoint/EDP.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.i deleted file mode 100644 index d3e92e84..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.h" -%} - -%include "fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.i deleted file mode 100644 index 9f4b6de8..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.h" -%} - -%include "fastrtps/rtps/builtin/discovery/endpoint/EDPStatic.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDP.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDP.i deleted file mode 100644 index ec4a97db..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDP.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/participant/PDP.h" -%} - -%include "fastrtps/rtps/builtin/discovery/participant/PDP.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPListener.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPListener.i deleted file mode 100644 index 4d1fd17e..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPListener.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/participant/PDPListener.h" -%} - -%include "fastrtps/rtps/builtin/discovery/participant/PDPListener.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPSimple.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPSimple.i deleted file mode 100644 index 6696aa3d..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/discovery/participant/PDPSimple.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/discovery/participant/PDPSimple.h" -%} - -%include "fastrtps/rtps/builtin/discovery/participant/PDPSimple.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLPListener.i b/fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLPListener.i deleted file mode 100644 index 86da4371..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/builtin/liveliness/WLPListener.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/builtin/liveliness/WLPListener.h" -%} - -%include "fastrtps/rtps/builtin/liveliness/WLPListener.h" diff --git a/fastdds_python/src/swig/fastrtps/rtps/messages/MessageReceiver.i b/fastdds_python/src/swig/fastrtps/rtps/messages/MessageReceiver.i deleted file mode 100644 index b8258bc1..00000000 --- a/fastdds_python/src/swig/fastrtps/rtps/messages/MessageReceiver.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/rtps/messages/MessageReceiver.h" -%} - -%include "fastrtps/rtps/messages/MessageReceiver.h" diff --git a/fastdds_python/src/swig/fastrtps/utils/DBQueue.i b/fastdds_python/src/swig/fastrtps/utils/DBQueue.i deleted file mode 100644 index 16c8a545..00000000 --- a/fastdds_python/src/swig/fastrtps/utils/DBQueue.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/utils/DBQueue.h" -%} - -%include "fastrtps/utils/DBQueue.h" diff --git a/fastdds_python/src/swig/fastrtps/utils/Semaphore.i b/fastdds_python/src/swig/fastrtps/utils/Semaphore.i deleted file mode 100644 index 5dd462b3..00000000 --- a/fastdds_python/src/swig/fastrtps/utils/Semaphore.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/utils/Semaphore.h" -%} - -%include "fastrtps/utils/Semaphore.h" diff --git a/fastdds_python/src/swig/fastrtps/utils/StringMatching.i b/fastdds_python/src/swig/fastrtps/utils/StringMatching.i deleted file mode 100644 index e9e3be15..00000000 --- a/fastdds_python/src/swig/fastrtps/utils/StringMatching.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -%{ -#include "fastrtps/utils/StringMatching.h" -%} - -%include "fastrtps/utils/StringMatching.h" diff --git a/fastdds_python/test/api/test_qos.py b/fastdds_python/test/api/test_qos.py index 02278dc8..fe9e284c 100644 --- a/fastdds_python/test/api/test_qos.py +++ b/fastdds_python/test/api/test_qos.py @@ -1829,3 +1829,53 @@ def test_domain_participant_factory_qos(): assert(not default_factory_qos.entity_factory(). autoenable_created_entities) default_factory_qos = fastdds.DomainParticipantFactoryQos() + + +def test_replier_qos(): + replier_qos = fastdds.ReplierQos() + + replier_qos.service_name = "service_name" + assert("service_name" == replier_qos.service_name) + + replier_qos.request_type = "request_type" + assert("request_type" == replier_qos.request_type) + + replier_qos.reply_type = "reply_type" + assert("reply_type" == replier_qos.reply_type) + + replier_qos.request_topic_name = "request_topic_name" + assert("request_topic_name" == replier_qos.request_topic_name) + + replier_qos.reply_topic_name = "reply_topic_name" + assert("reply_topic_name" == replier_qos.reply_topic_name) + + replier_qos.writer_qos = fastdds.DATAWRITER_QOS_DEFAULT + assert(fastdds.DATAWRITER_QOS_DEFAULT == replier_qos.writer_qos) + + replier_qos.reader_qos = fastdds.DATAREADER_QOS_DEFAULT + assert(fastdds.DATAREADER_QOS_DEFAULT == replier_qos.reader_qos) + + +def test_requester_qos(): + requester_qos = fastdds.RequesterQos() + + requester_qos.service_name = "service_name" + assert("service_name" == requester_qos.service_name) + + requester_qos.request_type = "request_type" + assert("request_type" == requester_qos.request_type) + + requester_qos.reply_type = "reply_type" + assert("reply_type" == requester_qos.reply_type) + + requester_qos.request_topic_name = "request_topic_name" + assert("request_topic_name" == requester_qos.request_topic_name) + + requester_qos.reply_topic_name = "reply_topic_name" + assert("reply_topic_name" == requester_qos.reply_topic_name) + + requester_qos.writer_qos = fastdds.DATAWRITER_QOS_DEFAULT + assert(fastdds.DATAWRITER_QOS_DEFAULT == requester_qos.writer_qos) + + requester_qos.reader_qos = fastdds.DATAREADER_QOS_DEFAULT + assert(fastdds.DATAREADER_QOS_DEFAULT == requester_qos.reader_qos)