17.2.11.1. LivelinessData

struct eprosima::fastrtps::rtps::LivelinessData

A struct keeping relevant liveliness information of a writer.

Public Functions

inline LivelinessData(GUID_t guid_in, LivelinessQosPolicyKind kind_in, Duration_t lease_duration_in)

Constructor.

Parameters
  • guid_in – GUID of the writer

  • kind_in – Liveliness kind

  • lease_duration_in – Liveliness lease duration

inline bool operator==(const LivelinessData &other) const

Equality operator.

Parameters

other – Liveliness data to compare to

Returns

True if equal

inline bool operator!=(const LivelinessData &other) const

Inequality operator.

Parameters

other – Liveliness data to compare to

Returns

True if different

Public Members

GUID_t guid

GUID of the writer.

LivelinessQosPolicyKind kind

Writer liveliness kind.

Duration_t lease_duration

The lease duration.

unsigned int count = 1

The number of times the writer is being counted.

WriterStatus status

The writer status.

std::chrono::steady_clock::time_point time

The time when the writer will lose liveliness.