#include "TclXPCOMPrivate.h"
Go to the source code of this file.
Functions | |
void | InterpDeletedCallback (ClientData clientData, Tcl_Interp *interp) |
TclXPCOMComponent * | NewTclXPCOMComponent (Tcl_Interp *interp, Tcl_ThreadId thread, ClassInfo *cinfo) |
void | UnsetDestructorBinding (TclXPCOMComponent *component) |
void | SetDestructorBinding (TclXPCOMComponent *component, Tcl_Obj *script) |
void | FreeTclXPCOMComponent (TclXPCOMComponent *component) |
int | BindScript (Tcl_Interp *interp, TclXPCOMComponent *component, Tcl_Obj *identifier, Tcl_Obj *script, int flags) |
Contains functions for manipulating Tcl components.
Definition in file TclXPCOMComponent.cpp.
|
Callback that is executed when a Tcl component's interpreter is prematurely deleted. Once a component's interpreter is killed, any attempts to invoke methods on it will return 'NS_ERROR_FAILURE'.
Definition at line 49 of file TclXPCOMComponent.cpp. Referenced by FreeTclXPCOMComponent, and NewTclXPCOMComponent. |
|
Creates a new Tcl component.
Definition at line 71 of file TclXPCOMComponent.cpp. References TclXPCOMComponent::cinfo, TclXPCOMStub::component, TclXPCOMComponent::destructor, ClassInfoSignature::infocount, ClassInfoSignature::infolist, TclXPCOMComponent::interp, InterpDeletedCallback, TclXPCOMComponent::nesting, TclXPCOMComponent::refcount, ClassInfo_::signature, TclXPCOMComponent::stubs, and TclXPCOMComponent::thread. |
|
Unsets a component's destructor.
Definition at line 115 of file TclXPCOMComponent.cpp. References TclXPCOMComponent::destructor. Referenced by FreeTclXPCOMComponent, and SetDestructorBinding. |
|
Sets a component's destructor. This will be executed just before the component is freed.
Definition at line 134 of file TclXPCOMComponent.cpp. References TclXPCOMComponent::destructor, and UnsetDestructorBinding. Referenced by BindScript. |
|
Frees a Tcl component.
Definition at line 156 of file TclXPCOMComponent.cpp. References TclXPCOMComponent::cinfo, ClassInfoSignature::infocount, TclXPCOMComponent::interp, InterpDeletedCallback, ClassInfo_::signature, TclXPCOMComponent::stubs, and UnsetDestructorBinding. |
|
Binds a Tcl script to an attribute or method for a Tcl component. If a non-reflectable interface or method is attempted to be bound, an error will be generated. 'flags' can be used to force the binding of a non-reflectable interface or method.
Definition at line 190 of file TclXPCOMComponent.cpp. References ClassInfo_::attributecount, ClassInfo_::attributes, TclXPCOMComponent::cinfo, TclXPCOMComponent::destructor, FORCE_HIDDEN, FORCE_NOTSCRIPTABLE, FORCE_NOTXPCOM, ClassIdentifierInfo::idinfo, IdentifierInfo_::indices, ClassIdentifierInfo::info, ClassInfoSignature::infocount, ClassInfoSignature::infolist, INTERFACEINFO_GETTER, INTERFACEINFO_METHOD, INTERFACEINFO_SETTER, IsInInterface, ClassInfo_::methodcount, ClassInfo_::methods, IdentifierInfo_::name, TclXPCOMStub::SetBinding, SetDestructorBinding, ClassInfo_::signature, TclXPCOMComponent::stubs, TclXPCOM_CheckInterfaceIsReflectable, TclXPCOM_CheckMethodIsReflectable, and IdentifierInfo_::type. |