RTI Connext Modern C++ API  Version 6.1.0
dds::topic::topic_type_name< T > Struct Template Reference

Provides the name of a topic-type. More...

#include <TopicTraits.hpp>

Detailed Description

template<typename T>
struct dds::topic::topic_type_name< T >

Provides the name of a topic-type.

For example:

std::cout << dds::topic::topic_type_name<Foo>::value() << std::endl;
std::cout << dds::topic::topic_type_name<dds::core::StringTopicType>::value() << std::endl;
// output:
// Foo
// DDS::String

Note that topic_type_name<dds::core::xtypes::DynamicData>::value() is undefined, because DynamicData is used to dynamically represent any type so its actual topic-type is unknown at compilation time.