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
topic
TTopic.hpp
Go to the documentation of this file.
1
#ifndef OMG_DDS_TTOPIC_TOPIC_HPP_
2
#define OMG_DDS_TTOPIC_TOPIC_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/conformance.hpp
>
23
#include <
dds/core/types.hpp
>
24
#include <
dds/core/ref_traits.hpp
>
25
#include <
dds/core/cond/StatusCondition.hpp
>
26
#include <
dds/domain/DomainParticipant.hpp
>
27
#include <
dds/topic/qos/TopicQos.hpp
>
28
#include <
dds/topic/TopicDescription.hpp
>
29
30
31
namespace
dds {
namespace
topic {
32
template
<
typename
T,
template
<
typename
Q>
class
DELEGATE>
33
class
Topic
;
34
35
template
<
typename
T>
36
class
TopicListener
;
37
} }
49
template
<
typename
T,
template
<
typename
Q>
class
DELEGATE>
50
class
dds::topic::Topic
:
public
dds::topic::TopicDescription
<T, DELEGATE> {
51
public
:
52
typedef
TopicListener<T>
Listener
;
53
54
public
:
55
OMG_DDS_REF_TYPE_T
(
Topic
,
TopicDescription
, T, DELEGATE)
56
57
~Topic
() {}
58
public
:
66
Topic
(
const
dds::domain::DomainParticipant
& dp,
67
const
std::string& topic_name);
68
77
Topic
(
const
dds::domain::DomainParticipant
& dp,
78
const
std::string& topic_name,
79
const
std::string&
type_name
);
80
90
Topic
(
const
dds::domain::DomainParticipant
& dp,
91
const
std::string& topic_name,
92
const
dds::topic::qos::TopicQos
&
qos
,
93
dds::topic::TopicListener<T>
*
listener
= NULL,
94
const
dds::core::status::StatusMask
& mask =
dds::core::status::StatusMask::all
());
95
106
Topic
(
const
dds::domain::DomainParticipant
& dp,
107
const
std::string& topic_name,
108
const
std::string&
type_name
,
109
const
dds::topic::qos::TopicQos
& qos,
110
dds::topic::TopicListener<T>
*
listener
= NULL,
111
const
dds::core::status::StatusMask
& mask =
dds::core::status::StatusMask::all
());
112
113
#if defined (OMG_DDS_X_TYPE_DYNAMIC_TYPE_SUPPORT)
114
124
Topic
(
const
dds::domain::DomainParticipant
& dp,
125
const
std::string& topic_name,
126
const
dds::core::xtypes::DynamicType
type
);
127
140
Topic
(
const
dds::domain::DomainParticipant
& dp,
141
const
std::string& topic_name,
142
const
dds::core::xtypes::DynamicType
type
143
const
dds::topic::qos::TopicQos
& qos,
144
dds::topic::TopicListener<T>
*
listener
= NULL,
145
const
dds::core::status::StatusMask
& mask =
dds::core::status::StatusMask::all
());
146
147
#endif
/* OMG_DDS_X_TYPE_DYNAMIC_TYPE_SUPPORT */
148
149
public
:
153
void
listener
(
Listener
* the_listener,
154
const ::dds::core::status::StatusMask& event_mask);
155
159
Listener
*
listener
()
const
;
160
161
165
const
dds::topic::qos::TopicQos
&
qos
()
const
;
166
170
void
qos
(
const
dds::topic::qos::TopicQos
& the_qos);
171
182
const ::dds::core::status::InconsistentTopicStatus
&
183
inconsistent_topic_status
()
const
;
184
};
185
186
187
#endif
/* OMG_DDS_TTOPIC_TOPIC_HPP_ */
Generated on Sat Nov 3 2012 00:02:20 for DDS-PSM-C++ by
1.8.2