NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IRemote_ready_callback Class Referenceabstract

Callback interface to report completion of remote asynchronous operations. More...

Inheritance diagram for mi::neuraylib::IRemote_ready_callback:
Inheritance graph
[legend]

Public Member Functions

virtual void  ready (Sint32 async_token, Sint32 error_code, const char *str)=0
  The callback method that signals the completion of the asynchronous operation. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x782b9d2e, 0x7ffc, 0x4f5c, 0x8b, 0xa0, 0x2d, 0x81, 0x5d, 0xa3, 0xd2, 0xe2 >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x782b9d2e, 0x7ffc, 0x4f5c, 0x8b, 0xa0, 0x2d, 0x81, 0x5d, 0xa3, 0xd2, 0xe2 >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

Callback interface to report completion of remote asynchronous operations.

Note
Instances of this interface should not be created on the stack, since this might lead to premature destruction of such instances while still being in use by the Iray library.

Member Function Documentation

virtual void mi::neuraylib::IRemote_ready_callback::ready ( Sint32  async_token,
Sint32  error_code,
const char *  str 
)
pure virtual

The callback method that signals the completion of the asynchronous operation.

It can be called at any time from any thread.

Parameters
async_token The identifier of the asynchronous operation this callback address.
error_code 0 on success, -1 if canceled, -2 on connection error, <-2 unspecified error.
str A string with data that depends on the operation and error code.