RTI Connext Modern C++ API  Version 5.2.0
 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 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc