
CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 212
call()
ESerror_t call (SoHObject hObject, SoCClientName* name, int argc, TaggedData* argv,
TaggedData* pResult);
hObject
The SoHObject reference for this instance.
name
The name of the method, an SoCClientName.
argc, argv
The number and pointer to arguments passed to the call, in the form of TaggedDatas.
pResult
A buffer in which to return the result of the call, in the form of TaggedDatas.
Called when JavaScript code calls a method of this class:
xx.mymethod()
Required in order for JavaScript to call any methods of this class.
Returns an error code,
kESErrOK on success.
valueOf()
ESerror_t valueOf (SoHObject hObject, TaggedData* pResult);
hObject
The SoHObject reference for this instance.
pResult
A buffer in which to return the result of the value, in the form of TaggedDatas.
Creates and returns the value of the object, with no type conversion.
Returns an error code,
kESErrOK on success.
toString()
ESerror_t toString (SoHObject hObject, TaggedData* pResult);
hObject
The SoHObject reference for this instance.
pResult
A buffer in which to return the result of the string, in the form of TaggedDatas.
Creates and returns a string representing the value of this object.
Returns an error code,
kESErrOK on success.
finalize()
ESerror_t finalize (SoHObject hObject);
hObject
The SoHObject reference for this instance.
Required. Called when JavaScript deletes an instance of this class. Use this function to free any
memory you have allocated.
Returns an error code,
kESErrOK on success.
Kommentare zu diesen Handbüchern