Cyclone ISO C++ API Reference Guide
Subscriber.hpp
Go to the documentation of this file.
1 #ifndef OMG_TDDS_SUB_SUBSCRIBER_HPP_
2 #define OMG_TDDS_SUB_SUBSCRIBER_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 <dds/core/Entity.hpp>
25 
26 namespace dds
27 {
28 namespace sub
29 {
30 
31 class Subscriber;
32 
33 class SubscriberListener;
34 }
35 }
36 
54 {
55 public:
58 
59 public:
64 
65 public:
81  Subscriber(const ::dds::domain::DomainParticipant& dp);
82 
105  Subscriber(const ::dds::domain::DomainParticipant& dp,
109 
110 public:
112  virtual ~Subscriber();
115 public:
145  void notify_datareaders();
146 
173  void listener(Listener* listener,
174  const dds::core::status::StatusMask& event_mask);
175 
185  Listener* listener() const;
186 
201  const dds::sub::qos::SubscriberQos& qos() const;
202 
217  void qos(const dds::sub::qos::SubscriberQos& sqos);
218 
243 
273 
286 
289 
292 };
293 
294 
295 #endif /* OMG_TDDS_SUB_SUBSCRIBER_HPP_ */
dds::sub::Subscriber
A Subscriber is the object responsible for the actual reception of the data resulting from its subscr...
Definition: Subscriber.hpp:53
dds::sub::Subscriber::default_datareader_qos
dds::sub::qos::DataReaderQos default_datareader_qos() const
dds::sub::Subscriber::Listener
dds::sub::SubscriberListener Listener
Definition: Subscriber.hpp:63
dds::sub::Subscriber::operator<<
Subscriber & operator<<(const dds::sub::qos::SubscriberQos &qos)
dds::core::status::StatusMask
StatusMask is a bitmap or bitset field.
Definition: State.hpp:144
OMG_DDS_IMPLICIT_REF_BASE
#define OMG_DDS_IMPLICIT_REF_BASE(TYPE)
Definition: refmacros.hpp:75
dds::sub::Subscriber::Subscriber
Subscriber(const ::dds::domain::DomainParticipant &dp)
dds::sub::Subscriber::participant
const dds::domain::DomainParticipant & participant() const
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
DomainParticipant.hpp
DataReaderQos.hpp
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
Definition: array.hpp:30
dds::sub::SubscriberListener
Subscriber events Listener.
Definition: SubscriberListener.hpp:124
dds::sub::Subscriber::listener
Listener * listener() const
dds::core::Entity
This class is the abstract base class for all the DCPS objects.
Definition: Entity.hpp:55
Entity.hpp
dds::sub::Subscriber::qos
const dds::sub::qos::SubscriberQos & qos() const
dds::sub::qos::DataReaderQos
This class provides the basic mechanism for an application to specify Quality of Service attributes f...
Definition: DataReaderQos.hpp:66
dds::sub::Subscriber::operator>>
const Subscriber & operator>>(dds::sub::qos::SubscriberQos &qos) const
dds::sub::Subscriber::notify_datareaders
void notify_datareaders()
dds::domain::DomainParticipant
A DomainParticipant represents the local membership of the application in a Domain.
Definition: DomainParticipant.hpp:65