DDS-PSM-C++
1.0
ISO C++ API for OpenSplice DDS
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
hpp
dds
sub
TSubscriber.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/TEntity.hpp
>
23
#include <
dds/core/cond/StatusCondition.hpp
>
24
#include <
dds/domain/DomainParticipant.hpp
>
25
#include <
dds/sub/qos/DataReaderQos.hpp
>
26
27
namespace
dds {
namespace
sub {
28
template
<
typename
DELEGATE>
29
class
TSubscriber
;
30
31
class
SubscriberListener;
32
} }
33
34
template
<
typename
DELEGATE>
35
class
dds::sub::TSubscriber
:
public
dds::core::TEntity
<DELEGATE> {
36
public
:
37
OMG_DDS_REF_TYPE
(
TSubscriber
,
dds::core::TEntity
, DELEGATE)
38
39
public
:
40
typedef
dds::sub::SubscriberListener
Listener
;
41
42
public
:
50
TSubscriber
(
const ::dds::domain::DomainParticipant
& dp);
51
60
TSubscriber
(
const ::dds::domain::DomainParticipant
& dp,
61
const
dds::sub::qos::SubscriberQos
&
qos
,
62
dds::sub::SubscriberListener
*
listener
= NULL,
63
const
dds::core::status::StatusMask
& mask =
dds::core::status::StatusMask::all
());
64
65
public
:
66
~TSubscriber
();
67
68
public
:
76
void
notify_datareaders
();
77
84
void
listener
(
Listener
*,
85
const
dds::core::status::StatusMask
& event_mask);
86
90
Listener
*
listener
()
const
;
91
92
96
const
dds::sub::qos::SubscriberQos
&
qos
()
const
;
97
103
void
qos
(
const
dds::sub::qos::SubscriberQos
& the_qos);
104
108
dds::sub::qos::DataReaderQos
default_datareader_qos
()
const
;
109
115
TSubscriber
&
default_datareader_qos
(
const
dds::sub::qos::DataReaderQos
&qos)
const
;
116
120
const
dds::domain::DomainParticipant
&
participant
()
const
;
121
};
122
123
124
#endif
/* OMG_TDDS_SUB_SUBSCRIBER_HPP_ */
Generated on Sat Nov 3 2012 00:02:20 for DDS-PSM-C++ by
1.8.2