Function dds_get_datareader

Function Documentation

dds_entity_t dds_get_datareader(dds_entity_t condition)

Get entity datareader.

This operation returns the datareader to which the given entity belongs. For instance, it will return the DataReader that was used when creating a ReadCondition (when that ReadCondition was provided here).

Parameters

condition[in] Entity from which to get its datareader.

Return values
  • >0 – A valid reader handle.

  • DDS_RETCODE_ERROR – An internal error has occurred.

  • DDS_RETCODE_ILLEGAL_OPERATION – The operation is invoked on an inappropriate object.

  • DDS_RETCODE_ALREADY_DELETED – The entity has already been deleted.

Returns

A valid reader handle or an error code.