Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fastdds_python/src/swig/fastdds.i
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
19 changes: 19 additions & 0 deletions fastdds_python/src/swig/fastdds/dds/domain/qos/ReplierQos.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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 "fastdds/dds/domain/qos/ReplierQos.hpp"
%}

%include "fastdds/dds/domain/qos/ReplierQos.hpp"
19 changes: 19 additions & 0 deletions fastdds_python/src/swig/fastdds/dds/domain/qos/RequesterQos.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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 "fastdds/dds/domain/qos/RequesterQos.hpp"
%}

%include "fastdds/dds/domain/qos/RequesterQos.hpp"
50 changes: 50 additions & 0 deletions fastdds_python/test/api/test_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)