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