Function dds_get_typeobj

Function Documentation

dds_return_t dds_get_typeobj(dds_entity_t entity, const dds_typeid_t *type_id, dds_duration_t timeout, dds_typeobj_t **type_obj)

This function resolves the type for the provided type identifier, which can e.g. be retrieved from endpoint or topic discovery data.

Parameters
  • entity[in] A domain entity or an entity bound to a domain, such as a participant, reader or writer.

  • type_id[in] Type identifier

  • timeout[in] Timeout for waiting for requested type information to be available

  • type_obj[out] The type information, untouched if type is not resolved

Return values
  • DDS_RETCODE_OK – The operation was successful.

  • DDS_BAD_PARAMETER – The entity parameter is not a valid parameter, type_id or type name is not provided, or the sertype out parameter is NULL

  • DDS_RETCODE_NOT_FOUND – A type with the provided type_id and type_name was not found

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

Returns

A dds_return_t indicating success or failure.