OpenDDS  Snapshot(2023/04/28-20:55)
TopicDescriptionImpl.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
9 #include "TopicDescriptionImpl.h"
10 #include "DomainParticipantImpl.h"
11 #include "TopicImpl.h"
12 #include "Service_Participant.h"
13 
15 
16 namespace OpenDDS {
17 namespace DCPS {
18 
20  const char* type_name,
21  TypeSupport_ptr type_support,
22  DomainParticipantImpl* participant)
23  : topic_name_(topic_name),
24  type_name_(type_name),
25  participant_(participant),
26  type_support_(OpenDDS::DCPS::TypeSupport::_duplicate(type_support)),
27  entity_refs_(0)
28 {
29 }
30 
32 {
33 }
34 
35 char *
37 {
39 }
40 
41 char *
43 {
45 }
46 
47 DDS::DomainParticipant_ptr
49 {
50  return DDS::DomainParticipant::_duplicate(participant_);
51 }
52 
53 OpenDDS::DCPS::TypeSupport_ptr
55 {
56  return type_support_;
57 }
58 
59 } // namespace DCPS
60 } // namespace OpenDDS
61 
Implements the OpenDDS::DCPS::DomainParticipant interfaces.
const char * c_str(void) const
ACE_CString type_name_
The datatype of the topic.
TopicDescriptionImpl(const char *topic_name, const char *type_name, TypeSupport_ptr type_support, DomainParticipantImpl *participant)
OpenDDS::DCPS::TypeSupport_ptr get_type_support()
T * _duplicate(T *st)
ACE_CString topic_name_
The name of the topic.
char * string_dup(const char *)
OpenDDS::DCPS::TypeSupport_var type_support_
The type_support for this topic.
DomainParticipantImpl * participant_
The participant that creates this topic.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
virtual DDS::DomainParticipant_ptr get_participant()