RTI Connext Modern C++ API
Version 5.2.0
|
<<reference-type>> This class provides an non-template holder for representing a Topic of any type More...
#include "dds/pub/AnyDataWriter.hpp"
Public Member Functions | |
template<typename T > | |
AnyTopic (const dds::topic::Topic< T > &topic) | |
Create an AnyTopic that represents a generic, untyped Topic. | |
dds::domain::DomainParticipant | domain_participant () const |
Gets the DomainParticipant this topic belongs to. | |
dds::core::status::InconsistentTopicStatus | inconsistent_topic_status () |
Gets the InconsistentTopicStatus of this topic. | |
dds::topic::qos::TopicQos | qos () const |
Get the TopicQos. | |
void | qos (const dds::topic::qos::TopicQos &the_qos) |
Sets the TopicQos. | |
std::string | name () const |
Gets the topic name. | |
std::string | type_name () const |
Gets the type name. | |
void | close () |
Closes the Topic. | |
template<typename T > | |
Topic< T > | get () |
Gets the typed Topic from this AnyTopic. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
Topic< T > | get (const AnyTopic &any_topic) |
Same as AnyTopic::get() | |
<<reference-type>> This class provides an non-template holder for representing a Topic of any type
This class is useful for code that uses Topics of different types. It provides access to type-independent Topic functions.
An AnyTopic is always created from a typed Topic, increasing its reference count. The member function get() allows getting the typed Topic back.
|
inline |
|
inline |
Gets the DomainParticipant this topic belongs to.
|
inline |
Gets the InconsistentTopicStatus of this topic.
|
inline |
Get the TopicQos.
|
inline |
Sets the TopicQos.
|
inline |
Gets the topic name.
|
inline |
Gets the type name.
|
inline |
Closes the Topic.
|
inline |
Same as AnyTopic::get()