RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::core::policy::policy_name< Policy > Class Template Reference

Obtains the policy name. More...

#include <PolicyTraits.hpp>

Detailed Description

template<typename Policy>
class dds::core::policy::policy_name< Policy >

Obtains the policy name.

Template Parameters
AQoS policy from the namespaces dds::core::policy or rti::core::policy

Specializations for each QoS policy provide the following method:

static const std::string& name();

For example:

using namespace dds::core::policy;
std::cout << policy_name<Reliability>::name() << std::endl; // Prints "Reliability"

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