Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches

Class TopicAttributes, used by the user to define the attributes of the topic associated with a Publisher or Subscriber. More...

#include <TopicAttributes.h>

Public Member Functions

 TopicAttributes ()
 Default constructor.
 
 TopicAttributes (const char *name, const char *dataType, rtps::TopicKind_t tKind=rtps::NO_KEY)
 Constructor, you need to provide the topic name and the topic data type.
 
virtual ~TopicAttributes ()
 
bool operator== (const TopicAttributes &b) const
 
const string_255getTopicDataType () const
 Get the topic data type.
 
rtps::TopicKind_t getTopicKind () const
 Get the topic kind.
 
const string_255getTopicName () const
 Get the topic name.
 
bool checkQos () const
 Method to check whether the defined QOS are correct.
 

Public Attributes

rtps::TopicKind_t topicKind
 TopicKind_t, default value NO_KEY.
 
string_255 topicName
 Topic Name.
 
string_255 topicDataType
 Topic Data Type.
 
HistoryQosPolicy historyQos
 QOS Regarding the History to be saved.
 
ResourceLimitsQosPolicy resourceLimitsQos
 QOS Regarding the resources to allocate.
 
TypeIdV1 type_id
 Type Identifier XTYPES 1.1.
 
TypeObjectV1 type
 Type Object XTYPES 1.1.
 
xtypes::TypeInformation type_information
 XTYPES 1.2.
 
bool auto_fill_type_object
 Tries to complete type identifier and type object (TypeObjectV1)
 
bool auto_fill_type_information
 Tries to complete type information (TypeObjectV2)
 

Detailed Description

Class TopicAttributes, used by the user to define the attributes of the topic associated with a Publisher or Subscriber.

Constructor & Destructor Documentation

◆ TopicAttributes() [1/2]

TopicAttributes ( )
inline

Default constructor.

◆ TopicAttributes() [2/2]

TopicAttributes ( const char *  name,
const char *  dataType,
rtps::TopicKind_t  tKind = rtps::NO_KEY 
)
inline

Constructor, you need to provide the topic name and the topic data type.

◆ ~TopicAttributes()

virtual ~TopicAttributes ( )
inlinevirtual

Member Function Documentation

◆ checkQos()

bool checkQos ( ) const

Method to check whether the defined QOS are correct.

Returns
True if they are valid.

◆ getTopicDataType()

const string_255 & getTopicDataType ( ) const
inline

Get the topic data type.

Returns
Topic data type

◆ getTopicKind()

rtps::TopicKind_t getTopicKind ( ) const
inline

Get the topic kind.

Returns
Topic kind

◆ getTopicName()

const string_255 & getTopicName ( ) const
inline

Get the topic name.

Returns
Topic name

◆ operator==()

bool operator== ( const TopicAttributes b) const
inline

Member Data Documentation

◆ auto_fill_type_information

bool auto_fill_type_information

Tries to complete type information (TypeObjectV2)

◆ auto_fill_type_object

bool auto_fill_type_object

Tries to complete type identifier and type object (TypeObjectV1)

◆ historyQos

HistoryQosPolicy historyQos

QOS Regarding the History to be saved.

◆ resourceLimitsQos

ResourceLimitsQosPolicy resourceLimitsQos

QOS Regarding the resources to allocate.

◆ topicDataType

string_255 topicDataType

Topic Data Type.

◆ topicKind

rtps::TopicKind_t topicKind

TopicKind_t, default value NO_KEY.

◆ topicName

string_255 topicName

Topic Name.

◆ type

Type Object XTYPES 1.1.

◆ type_id

TypeIdV1 type_id

Type Identifier XTYPES 1.1.

◆ type_information

xtypes::TypeInformation type_information

XTYPES 1.2.


The documentation for this class was generated from the following file: