Contents Up Previous Next

Instance table

wxCLIPS provides some functions for mapping between the integer identifiers used to represent objects in wxCLIPS funtions, and COOL instance names. When creating object-oriented wrappers around wxCLIPS function groups, you can add an instance name entry in the init handler, and delete it in the delete handler. For each event, you can register a callback which retrieves the instance name from the identifier passed to the callback, and sends an appropriate message to that instance.

See also wxclips-object-exists.

instance-table-add-entry
instance-table-delete-entry
instance-table-get-instance


instance-table-add-entry

long ( instance-table-add-entry long id instance instance-name)

Adds an entry to the instance table, indexing on the integer id.


instance-table-delete-entry

long ( instance-table-delete-entry long id)

Deletes an entry from the instance table.


instance-table-get-instance

instance-name ( instance-table-get-instance long id)

Retrieves an instance name for the integer id.