CellML API
CGRS::CallbackObjectValue Interface Reference
CGRS::CallbackObjectValue Interface Reference
Represents an object implemented by a generics user. More...
Inheritance diagram for CGRS::CallbackObjectValue:

Collaboration diagram for CGRS::CallbackObjectValue:

Public Member Functions | |
| GenericValue | invokeOnInterface (in string interfaceName, in string methodName, in ValueSequence inValues, out ValueSequence outValues, out boolean wasException) |
| Called to attempt to invoke a user-implemented operation on an object. | |
Additional Inherited Members | |
Public Attributes inherited from CGRS::GenericValue | |
| readonly attribute GenericType | typeOfValue |
| The type corresponding to the value. | |
Detailed Description
Represents an object implemented by a generics user.
The generics user must provide an implementation of this interface, and can then pass this as a callback.
Member Function Documentation
| GenericValue CGRS::CallbackObjectValue::invokeOnInterface | ( | in string | interfaceName, |
| in string | methodName, | ||
| in ValueSequence | inValues, | ||
| out ValueSequence | outValues, | ||
| out boolean | wasException | ||
| ) |
Called to attempt to invoke a user-implemented operation on an object.
The user should at least implement query_interface on XPCOM::IObject, and all required operations and attributes for the supported interfaces. There is no need to implement add_ref and release_ref via invokeOnInterface; such calls will be directed to the CallbackObjectValue object directly rather than via generics.
- Parameters
-
interfaceName The name of the interface on which to invoke the operation. methodName The name of the method to invoke. get is prefixed for attribute getters; set is prefixed for attribute setters. inValues The values of the in and in/out parameters to invoke the method with. outValues The values of the out and in/out parameters returned from the method. wasException If this out parameter comes back true, an exception was raised. In this case, the size and generic type of outValues and the return value are undefined.
- Returns
- A GenericValue representing the return value.

Public Attributes inherited from