RTI Connext Modern C++ API
Version 6.0.1
|
Abstract base class of Topic and ContentFilteredTopic. More...
#include <dds/topic/TopicDescription.hpp>
Public Member Functions | |
const std::string & | name () const |
Gets the topic name. | |
const std::string & | type_name () const |
Gets the type name. | |
const dds::domain::DomainParticipant & | participant () const |
Gets the related dds::domain::DomainParticipant. | |
Public Member Functions inherited from dds::core::Entity | |
void | enable () |
Enables this entity (if it was created disabled) | |
const dds::core::status::StatusMask | status_changes () |
Retrieves the list of communication statuses that are triggered. | |
const dds::core::InstanceHandle | instance_handle () const |
Get the instance handle that represents this entity. | |
void | close () |
Forces the destruction of this entity. | |
void | retain () |
Disables the automatic destruction of this entity. | |
Additional Inherited Members | |
Related Functions inherited from dds::core::Entity | |
template<typename TO , typename FROM > | |
TO | polymorphic_cast (const FROM &from) |
Downcasts an Entity to a subclass. | |
Abstract base class of Topic and ContentFilteredTopic.
TopicDescription represents the fact that both publications and subscriptions are tied to a single data-type. Its attribute type_name
defines a unique resulting type for the publication or the subscription and therefore creates an implicit association with a TypeSupport.
TopicDescription has also a name
that allows it to be retrieved locally.
T | The topic-type |
|
inline |
Gets the topic name.
|
inline |
Gets the type name.
The type name defines a locally unique type for the publication or the subscription.
The association between the topic and the type name is automatic through the template parameter T
, via the trait dds::topic::topic_type_name<T>::name(), that is given
When T
is rti::core::xtypes::DynamicData, the type name is obtained by default from the rti::core::xtypes::DynamicType.
|
inline |
Gets the related dds::domain::DomainParticipant.