home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpentk.zip
/
WBPENTK4.DSK
/
IDFCOMM.IH
< prev
next >
Wrap
Text File
|
1994-10-07
|
10KB
|
343 lines
/*
* This file was generated by the SOM Compiler.
* FileName: ..\..\pentkt\h\idfcomm.ih.
* Generated using:
* SOM Precompiler somipc: 2.7
* SOM Emitter emitih: 2.22
*/
#ifndef SOM_IDFCommon_ih
#define SOM_IDFCommon_ih
#pragma checkout(suspend)
#include <idfcomm.h>
/*
* Set the scope of methods functions
*/
#ifndef SOM_Scope
#ifdef __cplusplus
#define SOM_Scope extern "C"
#else
#define SOM_Scope extern
#endif /* __cplusplus */
#endif /* SOM_Scope */
#ifndef SOM_CurrentClass
#define SOM_CurrentClass IDFCommonCClassData.parentMtab
#endif /* SOM_CurrentClass */
#define IDFCommon_MaxNoMethods 4
/*
* Instance data
*/
typedef struct {
ULONG User1;
ULONG User2;
} IDFCommonData;
/*
* Getdata macro
*/
#define IDFCommonGetData(somSelf) \
((IDFCommonData *) \
SOM_DataResolve(somSelf, IDFCommonCClassData.instanceDataToken))
/*
* Instance variable access macros
*/
#define _User1 (somThis->User1)
#define _User2 (somThis->User2)
/*
* Begin stuff that only goes in the primary file
*/
#if (defined(IDFCommon_Class_Source) || defined(SOM_Module_idfcomm_Source))
/*
* Trace/Debug macro
*/
#ifndef IDFCommonMethodDebug
#define IDFCommonMethodDebug(c,m) SOMMethodDebug(c,m)
#endif /* IDFCommonMethodDebug */
/*
* Current class macros for Instance and Meta classes.
*/
#undef SOMMeta
#define SOMMeta M_IDFCommonCClassData.parentMtab
#undef SOMInstance
#define SOMInstance IDFCommonCClassData.parentMtab
#ifndef M_IDFCommon_Class_Source
#define M_IDFCommon_Class_Source
#endif /* M_IDFCommon_Class_Source */
/*
* Generate the Apply Stubs.
*/
#pragma linkage(somAP_IDFCommonidfSetUser1, system)
static void SOMLINK somAP_IDFCommonidfSetUser1(IDFCommon *somSelf,
void *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
void *__somSelf = va_arg(__ap, void*);
Environment *ev = va_arg(__ap, Environment*);
ULONG user1 = va_arg(__ap, ULONG);
SOM_IgnoreWarning(__retVal);
((somTD_IDFCommon_idfSetUser1) __methodPtr) (somSelf, ev, user1);
}
#pragma linkage(somAP_IDFCommonidfGetUser1, system)
static void SOMLINK somAP_IDFCommonidfGetUser1(IDFCommon *somSelf,
ULONG *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
void *__somSelf = va_arg(__ap, void*);
Environment *ev = va_arg(__ap, Environment*);
SOM_IgnoreWarning(__ap);
*__retVal = ((somTD_IDFCommon_idfGetUser1) __methodPtr) (somSelf, ev);
}
#pragma linkage(somAP_IDFCommonidfSetUser2, system)
static void SOMLINK somAP_IDFCommonidfSetUser2(IDFCommon *somSelf,
void *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
void *__somSelf = va_arg(__ap, void*);
Environment *ev = va_arg(__ap, Environment*);
ULONG user2 = va_arg(__ap, ULONG);
SOM_IgnoreWarning(__retVal);
((somTD_IDFCommon_idfSetUser2) __methodPtr) (somSelf, ev, user2);
}
#pragma linkage(somAP_IDFCommonidfGetUser2, system)
static void SOMLINK somAP_IDFCommonidfGetUser2(IDFCommon *somSelf,
ULONG *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
void *__somSelf = va_arg(__ap, void*);
Environment *ev = va_arg(__ap, Environment*);
SOM_IgnoreWarning(__ap);
*__retVal = ((somTD_IDFCommon_idfGetUser2) __methodPtr) (somSelf, ev);
}
/*
* Initialize the class data structure
*/
struct IDFCommonClassDataStructure IDFCommonClassData = {(SOMAny *) NULL};
/*
* Define the C class data structure
*/
struct IDFCommonCClassDataStructure IDFCommonCClassData = {(somMethodTabs) NULL};
/*
* New Method: idfSetUser1
*/
#pragma linkage(IDFCommonidfSetUser1, system)
SOM_Scope void SOMLINK IDFCommonidfSetUser1(IDFCommon *somSelf, Environment *ev,
ULONG user1);
#ifndef somMN_idfSetUser1_defined
#define somMN_idfSetUser1_defined
static char *somMN_idfSetUser1 = "idfSetUser1";
static somId somId_idfSetUser1 = &somMN_idfSetUser1;
#endif /* somMN_idfSetUser1_defined */
#ifndef somDS_idfSetUser1_defined
#define somDS_idfSetUser1_defined
static char *somDS_idfSetUser1 = somMD_IDFCommon_idfSetUser1;
static somId somDI_idfSetUser1 = &somDS_idfSetUser1;
#endif /* somDS_idfSetUser1_defined */
#pragma linkage(somRD_IDFCommonidfSetUser1, system)
static void SOMLINK somRD_IDFCommonidfSetUser1(IDFCommon *somSelf, Environment *ev,
ULONG user1)
{
void* __retVal;
va_somDispatch(somSelf, (void **)&__retVal, somId_idfSetUser1, somSelf , ev
,user1);
}
/*
* New Method: idfGetUser1
*/
#pragma linkage(IDFCommonidfGetUser1, system)
SOM_Scope ULONG SOMLINK IDFCommonidfGetUser1(IDFCommon *somSelf, Environment *ev);
#ifndef somMN_idfGetUser1_defined
#define somMN_idfGetUser1_defined
static char *somMN_idfGetUser1 = "idfGetUser1";
static somId somId_idfGetUser1 = &somMN_idfGetUser1;
#endif /* somMN_idfGetUser1_defined */
#ifndef somDS_idfGetUser1_defined
#define somDS_idfGetUser1_defined
static char *somDS_idfGetUser1 = somMD_IDFCommon_idfGetUser1;
static somId somDI_idfGetUser1 = &somDS_idfGetUser1;
#endif /* somDS_idfGetUser1_defined */
#pragma linkage(somRD_IDFCommonidfGetUser1, system)
static ULONG SOMLINK somRD_IDFCommonidfGetUser1(IDFCommon *somSelf, Environment *ev)
{
ULONG __retVal;
va_somDispatch(somSelf, (void **)&__retVal, somId_idfGetUser1, somSelf , ev
);
return __retVal;
}
/*
* New Method: idfSetUser2
*/
#pragma linkage(IDFCommonidfSetUser2, system)
SOM_Scope void SOMLINK IDFCommonidfSetUser2(IDFCommon *somSelf, Environment *ev,
ULONG user2);
#ifndef somMN_idfSetUser2_defined
#define somMN_idfSetUser2_defined
static char *somMN_idfSetUser2 = "idfSetUser2";
static somId somId_idfSetUser2 = &somMN_idfSetUser2;
#endif /* somMN_idfSetUser2_defined */
#ifndef somDS_idfSetUser2_defined
#define somDS_idfSetUser2_defined
static char *somDS_idfSetUser2 = somMD_IDFCommon_idfSetUser2;
static somId somDI_idfSetUser2 = &somDS_idfSetUser2;
#endif /* somDS_idfSetUser2_defined */
#pragma linkage(somRD_IDFCommonidfSetUser2, system)
static void SOMLINK somRD_IDFCommonidfSetUser2(IDFCommon *somSelf, Environment *ev,
ULONG user2)
{
void* __retVal;
va_somDispatch(somSelf, (void **)&__retVal, somId_idfSetUser2, somSelf , ev
,user2);
}
/*
* New Method: idfGetUser2
*/
#pragma linkage(IDFCommonidfGetUser2, system)
SOM_Scope ULONG SOMLINK IDFCommonidfGetUser2(IDFCommon *somSelf, Environment *ev);
#ifndef somMN_idfGetUser2_defined
#define somMN_idfGetUser2_defined
static char *somMN_idfGetUser2 = "idfGetUser2";
static somId somId_idfGetUser2 = &somMN_idfGetUser2;
#endif /* somMN_idfGetUser2_defined */
#ifndef somDS_idfGetUser2_defined
#define somDS_idfGetUser2_defined
static char *somDS_idfGetUser2 = somMD_IDFCommon_idfGetUser2;
static somId somDI_idfGetUser2 = &somDS_idfGetUser2;
#endif /* somDS_idfGetUser2_defined */
#pragma linkage(somRD_IDFCommonidfGetUser2, system)
static ULONG SOMLINK somRD_IDFCommonidfGetUser2(IDFCommon *somSelf, Environment *ev)
{
ULONG __retVal;
va_somDispatch(somSelf, (void **)&__retVal, somId_idfGetUser2, somSelf , ev
);
return __retVal;
}
/*
* Routines and Structures to create the class object
*/
/*
* Declare the Static Methods table.
*/
static somStaticMethod_t IDFCommonSM[] = {
{ &IDFCommonClassData.idfSetUser1,
&somId_idfSetUser1,
&somDI_idfSetUser1,
(somMethodProc *) IDFCommonidfSetUser1,
(somMethodProc *) somRD_IDFCommonidfSetUser1,
(somMethodProc *) somAP_IDFCommonidfSetUser1 },
{ &IDFCommonClassData.idfGetUser1,
&somId_idfGetUser1,
&somDI_idfGetUser1,
(somMethodProc *) IDFCommonidfGetUser1,
(somMethodProc *) somRD_IDFCommonidfGetUser1,
(somMethodProc *) somAP_IDFCommonidfGetUser1 },
{ &IDFCommonClassData.idfSetUser2,
&somId_idfSetUser2,
&somDI_idfSetUser2,
(somMethodProc *) IDFCommonidfSetUser2,
(somMethodProc *) somRD_IDFCommonidfSetUser2,
(somMethodProc *) somAP_IDFCommonidfSetUser2 },
{ &IDFCommonClassData.idfGetUser2,
&somId_idfGetUser2,
&somDI_idfGetUser2,
(somMethodProc *) IDFCommonidfGetUser2,
(somMethodProc *) somRD_IDFCommonidfGetUser2,
(somMethodProc *) somAP_IDFCommonidfGetUser2 },
};
/*
* Initializers for class Ids
*/
static char * somCN_IDFCommon = "IDFCommon";
static char * somPCN_IDFCommon_SOMObject = "SOMObject";
static somId somPCIDFCommon[] = {
&somPCN_IDFCommon_SOMObject,
};
static somStaticClassInfo IDFCommonSCI = {
3, 4, 0, 0, 0, 0,
IDFCommon_MajorVersion, IDFCommon_MinorVersion,
sizeof(IDFCommonData), IDFCommon_MaxNoMethods, 1,
&somCN_IDFCommon,
(somId) NULL, 1,
somPCIDFCommon,
(somClassDataStructure *) &IDFCommonClassData,
(somCClassDataStructure *) &IDFCommonCClassData,
IDFCommonSM, (somOverrideMethod_t *) NULL,
(char *) NULL,
(somNonInternalData_t *) NULL, (somProcMethods_t *) NULL,
(somVarargsFuncs_t *) NULL,
(somTP_somClassInitFunc *) NULL,
0,
0, /* old style class, zero directinitclasses */
0, /* no directinitclasses */
0, /* number of methods */
0, /* methods of the class */
0, /* dataOffset1 */
0, /* dataOffset2 */
0, /* number of SelectInheritedMethods */
0, /* SelectInheritedMethods */
0, /* number of releaseorder entries */
0, /* ReleaseOrder */
0, /* number of migrated methods */
0, /* migrated method implementations */
0, /* number of initializers */
0, /* initializers */
0, /* used to identify a DTS class */
0, /* used to register dynamically computed info */
};
IDFCommon * SOMLINK IDFCommonNewClass (integer4 somtmajorVersion,
integer4 somtminorVersion)
{
SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion); /* static reference */
return (somBuildClass(1,&IDFCommonSCI, somtmajorVersion, somtminorVersion));
}
/*
* Functions for attributes.
*/
#endif /* IDFCommon_Class_Source */
#pragma checkout(resume)
#endif /* SOM_IDFCommon_ih */