Cyclone ISO C++ API Reference Guide
DomainParticipant.hpp
Go to the documentation of this file.
1 #ifndef OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_HPP_
2 #define OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_HPP_
3 
4 /* Copyright 2010, Object Management Group, Inc.
5  * Copyright 2010, PrismTech, Corp.
6  * Copyright 2010, Real-Time Innovations, Inc.
7  * All rights reserved.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #include <string>
23 
24 #include <dds/core/detail/conformance.hpp>
25 #include <dds/core/types.hpp>
26 #include <dds/core/Time.hpp>
27 #include <dds/core/Entity.hpp>
28 //#include <dds/core/cond/StatusCondition.hpp>
30 
32 
35 
36 
37 namespace dds
38 {
39 namespace domain
40 {
41 
42 
43 class DomainParticipant;
44 
45 class DomainParticipantListener;
46 }
47 }
48 
66 {
67 public:
72 
73 public:
76 
77 public:
96  DomainParticipant(uint32_t id);
97 
138  DomainParticipant(uint32_t id,
142  const std::string& config = std::string());
143 
144 public:
146  virtual ~DomainParticipant();
149 public:
150 
177  void listener(Listener* listener,
178  const ::dds::core::status::StatusMask& event_mask);
179 
189  Listener* listener() const;
190 
206 
222 
239  uint32_t domain_id() const;
240 
241 
263  void assert_liveliness();
264 
265 
286  bool contains_entity(const ::dds::core::InstanceHandle& handle);
287 
302 
305 
308 
309 public:
334 
353  static void default_participant_qos(const ::dds::domain::qos::DomainParticipantQos& qos);
354 
379 
405  DomainParticipant& default_publisher_qos(const ::dds::pub::qos::PublisherQos& qos);
406 
431 
457  DomainParticipant& default_subscriber_qos(const ::dds::sub::qos::SubscriberQos& qos);
458 
483 
513 
514  //=============================================================================
515 };
516 
517 
518 #endif /* OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_HPP_ */
dds::domain::DomainParticipant::default_participant_qos
static dds::domain::qos::DomainParticipantQos default_participant_qos()
TopicQos.hpp
dds::pub::qos::PublisherQos
This object provides the basic mechanism for an application to specify Quality of Service attributes ...
Definition: PublisherQos.hpp:58
dds::domain::DomainParticipant::contains_entity
bool contains_entity(const ::dds::core::InstanceHandle &handle)
DomainParticipantQos.hpp
types.hpp
PublisherQos.hpp
dds::domain::DomainParticipant::listener
Listener * listener() const
dds::core::status::StatusMask
StatusMask is a bitmap or bitset field.
Definition: State.hpp:144
OMG_DDS_REF_TYPE_PROTECTED_DC
#define OMG_DDS_REF_TYPE_PROTECTED_DC(TYPE, BASE, DELEGATE)
Definition: refmacros.hpp:164
dds::core::status::StatusMask::none
static StatusMask none()
Definition: State.hpp:205
dds::topic::qos::TopicQos
This struct provides the basic mechanism for an application to specify Quality of Service attributes ...
Definition: TopicQos.hpp:67
dds::domain::DomainParticipant::domain_id
uint32_t domain_id() const
OMG_DDS_EXPLICIT_REF_BASE
#define OMG_DDS_EXPLICIT_REF_BASE(TYPE, FROM)
Definition: refmacros.hpp:118
dds::domain::DomainParticipant::default_subscriber_qos
dds::sub::qos::SubscriberQos default_subscriber_qos() const
dds::sub::qos::SubscriberQos
This class provides the basic mechanism for an application to specify Quality of Service attributes f...
Definition: SubscriberQos.hpp:58
dds::domain::DomainParticipant::operator<<
DomainParticipant & operator<<(const dds::domain::qos::DomainParticipantQos &qos)
dds::domain::DomainParticipant::operator>>
const DomainParticipant & operator>>(dds::domain::qos::DomainParticipantQos &qos) const
dds::domain::qos::DomainParticipantQos
This class provides the basic mechanism for an application to specify Quality of Service attributes f...
Definition: DomainParticipantQos.hpp:58
dds
Definition: array.hpp:30
dds::domain::DomainParticipant::Listener
dds::domain::DomainParticipantListener Listener
Definition: DomainParticipant.hpp:71
dds::core::Entity
This class is the abstract base class for all the DCPS objects.
Definition: Entity.hpp:55
dds::domain::DomainParticipant::current_time
dds::core::Time current_time() const
dds::domain::DomainParticipant::default_publisher_qos
dds::pub::qos::PublisherQos default_publisher_qos() const
SubscriberQos.hpp
dds::domain::DomainParticipantListener
DomainParticipant events Listener.
Definition: DomainParticipantListener.hpp:160
Entity.hpp
dds::domain::DomainParticipant::DomainParticipant
DomainParticipant(uint32_t id)
dds::domain::DomainParticipant::qos
const dds::domain::qos::DomainParticipantQos & qos() const
dds::core::Time
Definition: Time.hpp:42
dds::domain::DomainParticipant::assert_liveliness
void assert_liveliness()
dds::domain::DomainParticipant::default_topic_qos
dds::topic::qos::TopicQos default_topic_qos() const
dds::domain::DomainParticipant
A DomainParticipant represents the local membership of the application in a Domain.
Definition: DomainParticipant.hpp:65
Time.hpp