home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
warphead.zip
/
H
/
SCRCOMP.XH
< prev
next >
Wrap
Text File
|
1997-02-28
|
31KB
|
964 lines
/*
* This file was generated by the SOM Compiler.
* FileName: F:\build\os2\ship\include\scrcomp.xh.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emitxh: 2.47
*/
#ifndef SOM_ODScriptComponent_xh
#define SOM_ODScriptComponent_xh
class ODScriptComponent;
#define ODScriptComponent_MajorVersion 1
#define ODScriptComponent_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <ODTypes.h>
//
// Define the 'type' that is used by the component manager
#define kODCompTypeDirectScript "ODDS"
// Define the 'flags' used to identify scripting features
// A component will identify what subset of these flags it supports.
// (specified as part of the data registered with the Component Manager)
//
// A part must set both a 'requires' mask that is set of these bits
// that represents the support required by the part and a 'significant'
// mask that indicates which bits are to be tested. e.g. requires 0x06
// and significant 0x07 indicates that mask 0x01 must be off and mask
// 0x06 must be on for a component that is to support the part.
//
#define kODDSSupportsRegistration 0x0001
#define kODDSSupportsEventSink 0x0002
#define kODDSSupportsPersistance 0x0004
#define kODDSSupportsSourceEdit 0x0008
typedef long ODScrRegRet ;
#define ODScrRegOK 0 // no error
#define ODScrRegDup 1 // Requested name previously used
#define ODScrRegMem 2 // Memory allocation error.
#define ODScrRegNone 3 // Registration not done - no script comp.
#define ODScrRegOver 4 // Method not overridden (AddContainedPart)
#define ODScrRegErr 5 // Component failure - call _GetComponentInstanceError
// for specific error value
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_Component_xh
#include <comp.xh>
#endif
#ifndef ODScriptComponent_API
#define ODScriptComponent_API
/*
* -- The Class API
*/
/*
* Start of bindings for IDL types
*/
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class Component;
class ODScriptComponent;
class ODScriptExtension;
/*
* End of bindings for IDL types.
*/
/* A procedure to create the ODScriptComponent Class */
SOMEXTERN SOMClass * SOMLINK ODScriptComponentNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the ODScriptComponent class object, and the methods it introduces. */
SOMEXTERN struct ODScriptComponentClassDataStructure {
SOMClass *classObject;
somMToken InitScriptComponent;
somMToken ActivateScriptComponent;
somMToken ReleaseAll;
somMToken AddClass;
somMToken AddInstance;
somMToken AddContainer;
somMToken DropInstance;
somMToken DropContainer;
somMToken InitEditor;
somMToken CloseScripting;
somMToken GetComponentData;
somMToken Rename;
} SOMDLINK ODScriptComponentClassData;
#define _ODScriptComponent ODScriptComponentClassData.classObject
/* The API to parentMtabs for ODScriptComponent, and the instance data it introduces. */
SOMEXTERN struct ODScriptComponentCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK ODScriptComponentCClassData;
/*
* -- Typedefs for ODScriptComponent Method Procedures
*/
SOMEXTERN {
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_InitScriptComponent(ODScriptComponent *somSelf, Environment *ev,
ODScriptExtension* theExt,
ODBoolean hasInitData);
typedef somTP_ODScriptComponent_InitScriptComponent *somTD_ODScriptComponent_InitScriptComponent;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_ActivateScriptComponent(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_ActivateScriptComponent *somTD_ODScriptComponent_ActivateScriptComponent;
typedef void SOMLINK somTP_ODScriptComponent_ReleaseAll(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_ReleaseAll *somTD_ODScriptComponent_ReleaseAll;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_InitEditor(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_InitEditor *somTD_ODScriptComponent_InitEditor;
typedef void SOMLINK somTP_ODScriptComponent_CloseScripting(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_CloseScripting *somTD_ODScriptComponent_CloseScripting;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_AddClass(ODScriptComponent *somSelf, Environment *ev,
string classname);
typedef somTP_ODScriptComponent_AddClass *somTD_ODScriptComponent_AddClass;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_DropInstance(ODScriptComponent *somSelf, Environment *ev,
SOMObject* instance);
typedef somTP_ODScriptComponent_DropInstance *somTD_ODScriptComponent_DropInstance;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_DropContainer(ODScriptComponent *somSelf, Environment *ev,
ODScriptExtension* container);
typedef somTP_ODScriptComponent_DropContainer *somTD_ODScriptComponent_DropContainer;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_AddInstance(ODScriptComponent *somSelf, Environment *ev,
SOMObject* instance,
string classname,
string instanceName,
ODScriptExtension* DefiningExt);
typedef somTP_ODScriptComponent_AddInstance *somTD_ODScriptComponent_AddInstance;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_AddContainer(ODScriptComponent *somSelf, Environment *ev,
SOMObject* instance,
string classname,
string containerName,
ODScriptExtension* DefiningExt);
typedef somTP_ODScriptComponent_AddContainer *somTD_ODScriptComponent_AddContainer;
typedef void SOMLINK somTP_ODScriptComponent_GetComponentData(ODScriptComponent *somSelf, Environment *ev,
long* pBufferSize,
void* pBuffer);
typedef somTP_ODScriptComponent_GetComponentData *somTD_ODScriptComponent_GetComponentData;
typedef ODScrRegRet SOMLINK somTP_ODScriptComponent_Rename(ODScriptComponent *somSelf, Environment *ev,
SOMObject* pObject,
char* pNewName);
typedef somTP_ODScriptComponent_Rename *somTD_ODScriptComponent_Rename;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef OSErr SOMLINK somTP_ODScriptComponent_GetComponentInstanceError(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_GetComponentInstanceError *somTD_ODScriptComponent_GetComponentInstanceError;
typedef void SOMLINK somTP_ODScriptComponent_SetComponentInstanceError(ODScriptComponent *somSelf, Environment *ev,
OSErr theError);
typedef somTP_ODScriptComponent_SetComponentInstanceError *somTD_ODScriptComponent_SetComponentInstanceError;
typedef ODULong SOMLINK somTP_ODScriptComponent_GetComponentVersion(ODScriptComponent *somSelf, Environment *ev);
typedef somTP_ODScriptComponent_GetComponentVersion *somTD_ODScriptComponent_GetComponentVersion;
typedef void SOMLINK somTP_ODScriptComponent_somDefaultInit(ODScriptComponent *somSelf,
som3InitCtrl* ctrl);
typedef somTP_ODScriptComponent_somDefaultInit *somTD_ODScriptComponent_somDefaultInit;
typedef void SOMLINK somTP_ODScriptComponent_somDestruct(ODScriptComponent *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_ODScriptComponent_somDestruct *somTD_ODScriptComponent_somDestruct;
typedef void SOMLINK somTP_ODScriptComponent_somDefaultCopyInit(ODScriptComponent *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultCopyInit *somTD_ODScriptComponent_somDefaultCopyInit;
typedef ODScriptComponent* SOMLINK somTP_ODScriptComponent_somDefaultAssign(ODScriptComponent *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultAssign *somTD_ODScriptComponent_somDefaultAssign;
typedef void SOMLINK somTP_ODScriptComponent_somDefaultConstCopyInit(ODScriptComponent *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultConstCopyInit *somTD_ODScriptComponent_somDefaultConstCopyInit;
typedef void SOMLINK somTP_ODScriptComponent_somDefaultVCopyInit(ODScriptComponent *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultVCopyInit *somTD_ODScriptComponent_somDefaultVCopyInit;
typedef void SOMLINK somTP_ODScriptComponent_somDefaultConstVCopyInit(ODScriptComponent *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultConstVCopyInit *somTD_ODScriptComponent_somDefaultConstVCopyInit;
typedef ODScriptComponent* SOMLINK somTP_ODScriptComponent_somDefaultConstAssign(ODScriptComponent *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultConstAssign *somTD_ODScriptComponent_somDefaultConstAssign;
typedef ODScriptComponent* SOMLINK somTP_ODScriptComponent_somDefaultVAssign(ODScriptComponent *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultVAssign *somTD_ODScriptComponent_somDefaultVAssign;
typedef ODScriptComponent* SOMLINK somTP_ODScriptComponent_somDefaultConstVAssign(ODScriptComponent *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ODScriptComponent_somDefaultConstVAssign *somTD_ODScriptComponent_somDefaultConstVAssign;
typedef void SOMLINK somTP_ODScriptComponent_somInit(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somInit *somTD_ODScriptComponent_somInit;
typedef void SOMLINK somTP_ODScriptComponent_somFree(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somFree *somTD_ODScriptComponent_somFree;
typedef void SOMLINK somTP_ODScriptComponent_somUninit(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somUninit *somTD_ODScriptComponent_somUninit;
typedef SOMClass* SOMLINK somTP_ODScriptComponent_somGetClass(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somGetClass *somTD_ODScriptComponent_somGetClass;
typedef string SOMLINK somTP_ODScriptComponent_somGetClassName(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somGetClassName *somTD_ODScriptComponent_somGetClassName;
typedef long SOMLINK somTP_ODScriptComponent_somGetSize(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somGetSize *somTD_ODScriptComponent_somGetSize;
typedef boolean SOMLINK somTP_ODScriptComponent_somIsA(ODScriptComponent *somSelf,
SOMClass* aClassObj);
typedef somTP_ODScriptComponent_somIsA *somTD_ODScriptComponent_somIsA;
typedef boolean SOMLINK somTP_ODScriptComponent_somIsInstanceOf(ODScriptComponent *somSelf,
SOMClass* aClassObj);
typedef somTP_ODScriptComponent_somIsInstanceOf *somTD_ODScriptComponent_somIsInstanceOf;
typedef boolean SOMLINK somTP_ODScriptComponent_somRespondsTo(ODScriptComponent *somSelf,
somId mId);
typedef somTP_ODScriptComponent_somRespondsTo *somTD_ODScriptComponent_somRespondsTo;
typedef boolean SOMLINK somTP_ODScriptComponent_somDispatch(ODScriptComponent *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_ODScriptComponent_somDispatch *somTD_ODScriptComponent_somDispatch;
typedef boolean SOMLINK somTP_ODScriptComponent_somClassDispatch(ODScriptComponent *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_ODScriptComponent_somClassDispatch *somTD_ODScriptComponent_somClassDispatch;
typedef boolean SOMLINK somTP_ODScriptComponent_somCastObj(ODScriptComponent *somSelf,
SOMClass* cls);
typedef somTP_ODScriptComponent_somCastObj *somTD_ODScriptComponent_somCastObj;
typedef boolean SOMLINK somTP_ODScriptComponent_somResetObj(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somResetObj *somTD_ODScriptComponent_somResetObj;
typedef void SOMLINK somTP_ODScriptComponent_somDispatchV(ODScriptComponent *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_ODScriptComponent_somDispatchV *somTD_ODScriptComponent_somDispatchV;
typedef long SOMLINK somTP_ODScriptComponent_somDispatchL(ODScriptComponent *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_ODScriptComponent_somDispatchL *somTD_ODScriptComponent_somDispatchL;
typedef void* SOMLINK somTP_ODScriptComponent_somDispatchA(ODScriptComponent *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_ODScriptComponent_somDispatchA *somTD_ODScriptComponent_somDispatchA;
typedef double SOMLINK somTP_ODScriptComponent_somDispatchD(ODScriptComponent *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_ODScriptComponent_somDispatchD *somTD_ODScriptComponent_somDispatchD;
typedef SOMObject* SOMLINK somTP_ODScriptComponent_somPrintSelf(ODScriptComponent *somSelf);
typedef somTP_ODScriptComponent_somPrintSelf *somTD_ODScriptComponent_somPrintSelf;
typedef void SOMLINK somTP_ODScriptComponent_somDumpSelf(ODScriptComponent *somSelf,
long level);
typedef somTP_ODScriptComponent_somDumpSelf *somTD_ODScriptComponent_somDumpSelf;
typedef void SOMLINK somTP_ODScriptComponent_somDumpSelfInt(ODScriptComponent *somSelf,
long level);
typedef somTP_ODScriptComponent_somDumpSelfInt *somTD_ODScriptComponent_somDumpSelfInt;
}
#endif /* ODScriptComponent_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for ODScriptComponent
*/
class ODScriptComponent : public Component
{
public:
// ODScriptComponent::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
if (!_ODScriptComponent) ODScriptComponentNewClass(ODScriptComponent_MajorVersion,ODScriptComponent_MinorVersion);
return (void*)
SOM_Resolve(_ODScriptComponent,SOMClass,somNewNoInit)
((SOMClass *)((void*)_ODScriptComponent));
}
// ODScriptComponent::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
ODScriptComponent& operator=(ODScriptComponent& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
ODScriptComponent()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(ODScriptComponentCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
ODScriptComponent(ODScriptComponent* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(ODScriptComponentCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
ODScriptComponent(const ODScriptComponent* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(ODScriptComponentCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: InitScriptComponent */
ODScrRegRet InitScriptComponent(Environment *ev,
ODScriptExtension* theExt,
ODBoolean hasInitData)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,InitScriptComponent)
(this, ev,theExt,hasInitData);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,InitScriptComponent)
(this, ev,theExt,hasInitData);
#endif
}
/* method: ActivateScriptComponent */
ODScrRegRet ActivateScriptComponent(Environment *ev)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,ActivateScriptComponent)
(this, ev);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,ActivateScriptComponent)
(this, ev);
#endif
}
/* method: ReleaseAll */
void ReleaseAll(Environment *ev)
{
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,ReleaseAll)
(this, ev);
#ifdef SOMCHKEXCEPT
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
#endif
}
/* method: InitEditor */
ODScrRegRet InitEditor(Environment *ev)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,InitEditor)
(this, ev);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,InitEditor)
(this, ev);
#endif
}
/* method: CloseScripting */
void CloseScripting(Environment *ev)
{
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,CloseScripting)
(this, ev);
#ifdef SOMCHKEXCEPT
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
#endif
}
/* method: AddClass */
ODScrRegRet AddClass(Environment *ev,
string classname)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddClass)
(this, ev,classname);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddClass)
(this, ev,classname);
#endif
}
/* method: DropInstance */
ODScrRegRet DropInstance(Environment *ev,
SOMObject* instance)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,DropInstance)
(this, ev,instance);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,DropInstance)
(this, ev,instance);
#endif
}
/* method: DropContainer */
ODScrRegRet DropContainer(Environment *ev,
ODScriptExtension* container)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,DropContainer)
(this, ev,container);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,DropContainer)
(this, ev,container);
#endif
}
/* method: AddInstance */
ODScrRegRet AddInstance(Environment *ev,
SOMObject* instance,
string classname,
string instanceName,
ODScriptExtension* DefiningExt)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddInstance)
(this, ev,instance,classname,instanceName,DefiningExt);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddInstance)
(this, ev,instance,classname,instanceName,DefiningExt);
#endif
}
/* method: AddContainer */
ODScrRegRet AddContainer(Environment *ev,
SOMObject* instance,
string classname,
string containerName,
ODScriptExtension* DefiningExt)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddContainer)
(this, ev,instance,classname,containerName,DefiningExt);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,AddContainer)
(this, ev,instance,classname,containerName,DefiningExt);
#endif
}
/* method: GetComponentData */
void GetComponentData(Environment *ev,
long* pBufferSize,
void* pBuffer)
{
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,GetComponentData)
(this, ev,pBufferSize,pBuffer);
#ifdef SOMCHKEXCEPT
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
#endif
}
/* method: Rename */
ODScrRegRet Rename(Environment *ev,
SOMObject* pObject,
char* pNewName)
{
#ifdef SOMCHKEXCEPT
ODScrRegRet __somResult =
SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,Rename)
(this, ev,pObject,pNewName);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,ODScriptComponent,Rename)
(this, ev,pObject,pNewName);
#endif
}
/*
* Reintroduce inherited methods
*/
/* method: GetComponentInstanceError */
OSErr GetComponentInstanceError(Environment *ev)
{
#ifdef SOMCHKEXCEPT
OSErr __somResult =
SOM_ResolveD(this,ODScriptComponent,Component,GetComponentInstanceError)
(this, ev);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,Component,GetComponentInstanceError)
(this, ev);
#endif
}
/* method: SetComponentInstanceError */
void SetComponentInstanceError(Environment *ev,
OSErr theError)
{
SOM_ResolveD(this,ODScriptComponent,Component,SetComponentInstanceError)
(this, ev,theError);
#ifdef SOMCHKEXCEPT
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
#endif
}
/* method: GetComponentVersion */
ODULong GetComponentVersion(Environment *ev)
{
#ifdef SOMCHKEXCEPT
ODULong __somResult =
SOM_ResolveD(this,ODScriptComponent,Component,GetComponentVersion)
(this, ev);
if ( ev->_major != NO_EXCEPTION )
SOMCHKEXCEPT;
return __somResult;
#else
return SOM_ResolveD(this,ODScriptComponent,Component,GetComponentVersion)
(this, ev);
#endif
}
/* initializer method: somDefaultInit */
void somDefaultInit(som3InitCtrl* ctrl)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultInit)
(this,ctrl);
}
/* method: somDestruct */
void somDestruct(octet doFree,
som3DestructCtrl* ctrl)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDestruct)
(this,doFree,ctrl);
}
/* initializer method: somDefaultCopyInit */
void somDefaultCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
ODScriptComponent* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultAssign)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstCopyInit */
void somDefaultConstCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultConstCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultVCopyInit */
void somDefaultVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultVCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstVCopyInit */
void somDefaultConstVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
ODScriptComponent* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
ODScriptComponent* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
ODScriptComponent* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somInit)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somFree)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somUninit)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somRespondsTo)
(this,mId);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean ODScriptComponent_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean ODScriptComponent_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,ODScriptComponent,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
SOM_ResolveD(this,ODScriptComponent,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/* the va_list invocation form */
void ODScriptComponent_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void somDispatchV(somId methodId,
somId descriptor,
...)
{
va_list ap;
va_start(ap, descriptor);
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/* the va_list invocation form */
long ODScriptComponent_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
long somDispatchL(somId methodId,
somId descriptor,
...)
{
va_list ap;
va_start(ap, descriptor);
long __somResult =
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchA */
/* the va_list invocation form */
void* ODScriptComponent_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void* somDispatchA(somId methodId,
somId descriptor,
...)
{
va_list ap;
va_start(ap, descriptor);
void* __somResult =
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchD */
/* the va_list invocation form */
double ODScriptComponent_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
double somDispatchD(somId methodId,
somId descriptor,
...)
{
va_list ap;
va_start(ap, descriptor);
double __somResult =
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,ODScriptComponent,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,ODScriptComponent,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* ODScriptComponent */
#endif /* SOM_ODScriptComponent_xh */