Class ResponseHeader

Inheritance Relationships

Base Type

Class Documentation

class ResponseHeader : public iox::popo::RpcBaseHeader

Public Functions

explicit ResponseHeader(const cxx::UniqueId &uniqueClientQueueId, const uint32_t lastKnownClientQueueIndex, const int64_t sequenceId) noexcept

Constructs and initializes a RpcBaseHeader.

Parameters:
  • uniqueClientQueueId[in] is the cxx::UniqueId of the client queue to which the response shall be delivered

  • lastKnownClientQueueIndex[in] is the last know index of the client queue in the ChunkDistributor for fast lookup

  • sequenceId[in] is a custom ID to map a response to a request

ResponseHeader(const ResponseHeader &other) = delete
ResponseHeader &operator=(const ResponseHeader&) = delete
ResponseHeader(ResponseHeader &&rhs) noexcept = default
ResponseHeader &operator=(ResponseHeader &&rhs) noexcept = default
~ResponseHeader() noexcept = default
void setServerError() noexcept

Sets the server error flag.

bool hasServerError() const noexcept

Obtains the server error flag.

Returns:

true if there is an error, false otherwise

Public Static Functions

static ResponseHeader *fromPayload(void *const payload) noexcept
static const ResponseHeader *fromPayload(const void *const payload) noexcept