IDL Programming > Objects > Miscellaneous Object Classes > IDL_IDLBridge Properties

IDL_IDLBridge Properties

IDL_IDLBridge objects have the following properties. Properties with the word “Yes” in the “Get” column of the property table can be retrieved via IDL_IDLBridge::GetProperty . Properties with the word “Yes” in the “Init” column of the property table can be set via IDL_IDLBridge::Init. Properties with the word “Yes” in the “Set” column in the property table can be set via IDL_IDLBridge::SetProperty .

Note: For more information about the “Property Type”, “Name String”, and “Registered” columns, see Modifying Object Properties.

Objects of this class have the following properties:

CALLBACK

The name of a user-defined callback procedure that is automatically called when an asynchronous command is completed. When an asynchronous command is done (completed, aborted, or halted due to an error) the procedure specified by the CALLBACK property is called.

This callback procedure must have the following signature:

PRO BridgeCallbackName, Status, Error, Objref [, Userdata]

where each argument of the BridgeCallbackName procedure is given the following values:

When the asynchronous command is completed, aborted, or halted due to an error, the child IDL process calls back into the main IDL process. The main IDL process puts a callback event into the callback event queue for the bridge object. The callback queue for this bridge object is flushed (and the CALLBACK procedure or OnCallback method is called) when one of the following occurs:

Property Type

String

Name String

not displayed

Get: Yes

Set: Yes

Init: Yes

Registered: No

Note: See the IDL_IDLBridge Examples for samples of setting the CALLBACK property. Also see the IDL_IDLBridge::OnCallback.

OUTPUT

A string supplying the path and name of a file to which messages generated in the child process will be written. By default, any output written by the child process is quietly discarded by the IDL_IDLBridge object, and is not seen by the user. This is useful for debugged production quality code, but can be inconvenient when the code being executed by the child encounters errors, since you cannot see the text of the error messages.

Note: Under UNIX, but not Microsoft Windows, you may also set the OUTPUT keyword to a NULL file string (e.g. OUTPUT=''). In this case, the child process output is not diverted by the IDL_IDLBridge object, and is written by the operating system directly to stdout and stderr, which is usually the user’s tty.

Property Type

String

Name String

not displayed

Get: Yes

Set: No

Init: Yes

Registered: No

USERDATA

A value of any type containing any information you wish. If USERDATA is set, the value contained within the USERDATA property is passed to the CALLBACK procedure after completion of an asynchronous command.

Note: Object references or pointers contained in the USERDATA property are not automatically cleaned up when the IDL_IDLBridge object is destroyed.

Property Type

Userdef

Name String

not displayed

Get: Yes

Set: Yes

Init: Yes

Registered: No