Go to the documentation of this file.00001 #ifndef OMG_DDS_TOPIC_DETAIL_PARENT_HPP_
00002 #define OMG_DDS_TOPIC_DETAIL_PARENT_HPP_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <dds/topic/topicfwd.hpp>
00023 #include <dds/domain/DomainParticipant.hpp>
00024
00025
00026 namespace dds { namespace topic { namespace detail {
00027
00028 dds::domain::DomainParticipant parent(
00029 const dds::topic::AnyTopicDescription& topic_desc);
00030
00031
00032 template <typename T>
00033 dds::domain::DomainParticipant parent(
00034 const dds::topic::TopicDescription<T>& topic_desc) {
00035 return topic_desc->parent()->get();
00036 }
00037
00038 } } }
00039
00040
00041 #endif