Updated on 2022-03-13 GMT+08:00

DataRecvInterface::RecvData

Defines a subclass of class DataRecvInterface to initialize the object of the subclass. It works as the callback function for receiving data and transfers the API in Graph::SetDataRecvFunctor or Engine::SetDataRecvFunctor. In addition, the RecvData API needs to be overloaded and implemented in the subclass. This API is defined in data_recv_interface.h.

Syntax

virtual HIAI_StatusT DataRecvInterface::RecvData(const std::shared_ptr<void>& message)

Parameter Description

Parameter

Description

Value Range

message

Callback message

-

Return Value

For details about the returned error codes, see "Error Codes."

Error Codes

No.

Error Code

Description

1

HIAI_OK

The running is OK.