RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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.


RTI Connext Modern C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc