Line data Source code
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 : 14 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 15 : 16 : namespace OpenDDS { 17 : namespace DCPS { 18 : 19 0 : TopicDescriptionImpl::TopicDescriptionImpl(const char* topic_name, 20 : const char* type_name, 21 : TypeSupport_ptr type_support, 22 0 : DomainParticipantImpl* participant) 23 0 : : topic_name_(topic_name), 24 0 : type_name_(type_name), 25 0 : participant_(participant), 26 0 : type_support_(OpenDDS::DCPS::TypeSupport::_duplicate(type_support)), 27 0 : entity_refs_(0) 28 : { 29 0 : } 30 : 31 0 : TopicDescriptionImpl::~TopicDescriptionImpl() 32 : { 33 0 : } 34 : 35 : char * 36 0 : TopicDescriptionImpl::get_type_name() 37 : { 38 0 : return CORBA::string_dup(type_name_.c_str()); 39 : } 40 : 41 : char * 42 0 : TopicDescriptionImpl::get_name() 43 : { 44 0 : return CORBA::string_dup(topic_name_.c_str()); 45 : } 46 : 47 : DDS::DomainParticipant_ptr 48 0 : TopicDescriptionImpl::get_participant() 49 : { 50 0 : return DDS::DomainParticipant::_duplicate(participant_); 51 : } 52 : 53 : OpenDDS::DCPS::TypeSupport_ptr 54 0 : TopicDescriptionImpl::get_type_support() 55 : { 56 0 : return type_support_; 57 : } 58 : 59 : } // namespace DCPS 60 : } // namespace OpenDDS 61 : 62 : OPENDDS_END_VERSIONED_NAMESPACE_DECL