Class TopicAttributes

Class Documentation

class TopicAttributes

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

Public Functions

inline TopicAttributes()

Default constructor

inline 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.

inline virtual ~TopicAttributes()
inline bool operator==(const TopicAttributes &b) const
inline const string_255 &getTopicDataType() const

Get the topic data type

Returns:

Topic data type

inline rtps::TopicKind_t getTopicKind() const

Get the topic kind

Returns:

Topic kind

inline const string_255 &getTopicName() const

Get the topic name

Returns:

Topic name

bool checkQos() const

Method to check whether the defined QOS are correct.

Returns:

True if they are valid.

Public Members

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)