RTI Connext Micro C++ API Version 4.3.0
Loading...
Searching...
No Matches
DDS_EntityNameQosPolicy Struct Reference

Policy used to name an entity. More...

#include <dds_c_infrastructure.h>

Public Member Functions

bool set_name (const char *const name)
 Set the EntityName policy
 

Public Attributes

char name [DDS_ENTITYNAME_QOS_NAME_MAX+1]
 The actual name string.
 

Detailed Description

Policy used to name an entity.

Entity:
DDSDomainParticipant
Properties:
RxO = NO;
Changeable = NO

Usage

The purpose of this QoS is to allow the user to attach naming information to created DDSEntity objects.

The name must not exceed 255 characters in length.

The name must be a NULL-terminated string allocated with DDS_String_alloc or DDS_String_dup.

When getting the QoS with a non-NULL pointer, ensure it points to valid memory. This prevents potential failures.

Use DDS_EntityNameQosPolicy_set_name to set the name.

Member Data Documentation

◆ name

char DDS_EntityNameQosPolicy::name[DDS_ENTITYNAME_QOS_NAME_MAX+1]

The actual name string.

[default] "[ENTITY]"

[range] Null-terminated string with maximum length of 255 characters, or NULL.

Referenced by set_name().