Program Listing for File DomainParticipant.hpp
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/dds/domain/DomainParticipant.hpp
)
/*
* Copyright 2010, Object Management Group, Inc.
* Copyright 2010, PrismTech, Corp.
* Copyright 2010, Real-Time Innovations, Inc.
* Copyright 2019, Proyectos y Sistemas de Mantenimiento SL (eProsima).
* All rights reserved.
*
* 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.
*/
#ifndef OMG_DDS_DOMAIN_DOMAINPARTICIPANT_HPP_
#define OMG_DDS_DOMAIN_DOMAINPARTICIPANT_HPP_
#include <string>
#include <dds/core/detail/conformance.hpp>
#include <dds/core/refmacros.hpp>
#include <dds/core/types.hpp>
#include <dds/core/Time.hpp>
#include <dds/core/Entity.hpp>
#include <dds/domain/qos/DomainParticipantQos.hpp>
#include <dds/pub/qos/PublisherQos.hpp>
#include <dds/sub/qos/SubscriberQos.hpp>
#include <dds/topic/qos/TopicQos.hpp>
#include <dds/domain/detail/DomainParticipant.hpp>
namespace dds {
namespace domain {
class DomainParticipantListener;
class DomainParticipant : public ::dds::core::TEntity<detail::DomainParticipant>
{
public:
using Listener = DomainParticipantListener;
public:
OMG_DDS_REF_TYPE_PROTECTED_DC(
DomainParticipant,
dds::core::TEntity,
detail::DomainParticipant)
OMG_DDS_EXPLICIT_REF_BASE_DECL(
DomainParticipant,
dds::core::Entity)
OMG_DDS_API DomainParticipant(
uint32_t id);
OMG_DDS_API DomainParticipant(
uint32_t id,
const dds::domain::qos::DomainParticipantQos& qos,
dds::domain::DomainParticipantListener* listener = NULL,
const dds::core::status::StatusMask& event_mask = dds::core::status::StatusMask::all());
virtual OMG_DDS_API ~DomainParticipant();
OMG_DDS_API void listener(
Listener* listener,
const ::dds::core::status::StatusMask& event_mask);
OMG_DDS_API Listener* listener() const;
OMG_DDS_API const qos::DomainParticipantQos& qos() const;
OMG_DDS_API void qos(
const qos::DomainParticipantQos& qos);
OMG_DDS_API uint32_t domain_id() const;
OMG_DDS_API void assert_liveliness();
OMG_DDS_API bool contains_entity(
const ::dds::core::InstanceHandle& handle);
OMG_DDS_API dds::core::Time current_time() const;
OMG_DDS_API DomainParticipant& operator <<(
const qos::DomainParticipantQos& qos);
OMG_DDS_API const DomainParticipant& operator >>(
qos::DomainParticipantQos& qos) const;
OMG_DDS_API static qos::DomainParticipantQos default_participant_qos();
OMG_DDS_API static void default_participant_qos(
const ::dds::domain::qos::DomainParticipantQos& qos);
OMG_DDS_API dds::pub::qos::PublisherQos default_publisher_qos() const;
OMG_DDS_API DomainParticipant& default_publisher_qos(
const ::dds::pub::qos::PublisherQos& qos);
OMG_DDS_API dds::sub::qos::SubscriberQos default_subscriber_qos() const;
OMG_DDS_API DomainParticipant& default_subscriber_qos(
const ::dds::sub::qos::SubscriberQos& qos);
OMG_DDS_API dds::topic::qos::TopicQos default_topic_qos() const;
OMG_DDS_API DomainParticipant& default_topic_qos(
const dds::topic::qos::TopicQos& qos);
//=============================================================================
};
} //namespace domain
} //namespace dds
#endif //OMG_DDS_DOMAIN_DOMAINPARTICIPANT_HPP_