RTI Connext Modern C++ API  Version 6.1.2
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"