RTI Connext Modern C++ API Version 7.2.0
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();
basic_string< char, rti::core::memory::OsapiAllocator< char > > string
A string convertible to std::string and with similar functionality.
Definition: String.hpp:266

For example:

using namespace dds::core::policy;
std::cout << policy_name<Reliability>::name() << std::endl; // Prints "Reliability"
Contains the standard Qos policy classes.
Definition: ddscore.hpp:202