Struct LivelinessData

Struct Documentation

struct LivelinessData

A struct keeping relevant liveliness information of a writer.

Public Types

enum WriterStatus

Values:

enumerator NOT_ASSERTED

Writer is matched but liveliness has not been asserted yet.

enumerator ALIVE

Writer is alive.

enumerator NOT_ALIVE

Writer is not alive.

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 LivelinessData()
inline ~LivelinessData()
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.