home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sompar.zip
/
SOM
/
PART.IH
< prev
next >
Wrap
Text File
|
1994-01-06
|
10KB
|
379 lines
/*
* This file was generated by the SOM Compiler.
* FileName: part.ih.
* Generated using:
* SOM Precompiler somipc: 2.2
* SOM Emitter emitih: 2.7
*/
/*
*
* Project: Digitalk Parts like Toolbar and SOMObjects Containers Demo
* File: part.idl
* Author: Stewart Hyde
* Created: Dec 18, 1993
* Updated: Dec 18, 1993
*
* Description:
*
*/
/*
* The SOM_STRICT_IDL macro means that we can ignore stars
* in our declarations of objects.
*/
#define SOM_STRICT_IDL 1
#ifndef SOM_Part_ih
#define SOM_Part_ih
#pragma checkout(suspend)
#include <part.h>
/*
* Set the scope of methods functions
*/
#ifndef SOM_Scope
#define SOM_Scope static
#endif /* SOM_Scope */
#ifndef SOM_CurrentClass
#define SOM_CurrentClass PartCClassData.parentMtab
#endif /* SOM_CurrentClass */
#define Part_MaxNoMethods 5
/*
* Instance data
*/
typedef struct {
boolean DebugState;
long stackCount;
long stackSet[100];
long stackAction[100];
long stackActionCount[100];
} PartData;
/*
* Getdata macro
*/
#define PartGetData(somSelf) \
((PartData *) \
SOM_DataResolve(somSelf, PartCClassData.instanceDataToken))
/*
* Instance variable access macros
*/
#define _DebugState (somThis->DebugState)
#define _stackCount (somThis->stackCount)
#define _stackSet (somThis->stackSet)
#define _stackAction (somThis->stackAction)
#define _stackActionCount (somThis->stackActionCount)
/*
* Begin stuff that only goes in the primary file
*/
#if (defined(Part_Class_Source) || defined(SOM_Module_part_Source))
/*
* Trace/Debug macro
*/
#ifndef PartMethodDebug
#define PartMethodDebug(c,m) SOMMethodDebug(c,m)
#endif /* PartMethodDebug */
/*
* Current class macros for Instance and Meta classes.
*/
#undef SOMMeta
#define SOMMeta M_PartCClassData.parentMtab
#undef SOMInstance
#define SOMInstance PartCClassData.parentMtab
#ifndef M_Part_Class_Source
#define M_Part_Class_Source
#endif /* M_Part_Class_Source */
/*
* Overridden method: somInit
*/
#pragma linkage(somInit, system)
SOM_Scope void SOMLINK somInit(Part somSelf);
#ifndef somMN_somInit_defined
#define somMN_somInit_defined
static char *somMN_somInit = "somInit";
static somId somId_somInit = &somMN_somInit;
#endif /* somMN_somInit_defined */
#define Part_parent_SOMObject_somInit(somSelf) \
((SOM_ParentNumResolve(SOMObject, 1, PartCClassData.parentMtab, somInit)) \
(somSelf))
#ifndef SOMGD_pmc_SOMObject_somInit
#ifdef parent_SOMObject_somInit
#undef parent_SOMObject_somInit
#define SOMGD_pmc_SOMObject_somInit 1
#else
#define parent_SOMObject_somInit Part_parent_SOMObject_somInit
#endif /* parent_SOMObject_somInit */
#endif /* SOMGD_pmc_SOMObject_somInit */
#ifndef parent_somInit
#define parent_somInit(somSelf) \
((SOM_ParentNumResolve(SOMObject, 1, SOM_CurrentClass, somInit)) \
(somSelf))
#endif /* parent_somInit */
#define Part_parents_somInit(arg0) \
(void) Part_parent_SOMObject_somInit(arg0);
/*
* Initialize the class data structure
*/
struct PartClassDataStructure PartClassData = {(SOMAny *) NULL};
/*
* Define the C class data structure
*/
struct PartCClassDataStructure PartCClassData = {(somMethodTabs) NULL};
/*
* New Method: Search
*/
#pragma linkage(Search, system)
SOM_Scope boolean SOMLINK Search(Part somSelf, Environment *ev,
long lSet,
long lAction,
long* ID,
long* Count);
#ifndef somMN_Search_defined
#define somMN_Search_defined
static char *somMN_Search = "Search";
static somId somId_Search = &somMN_Search;
#endif /* somMN_Search_defined */
#ifndef somDS_Search_defined
#define somDS_Search_defined
static char *somDS_Search = somMD_Part_Search;
static somId somDI_Search = &somDS_Search;
#endif /* somDS_Search_defined */
static somMethodInfo SearchMethodInfo = {10, 24, 0};
static somApRdInfo SearchStubs = {0, 0, &SearchMethodInfo};
/*
* New Method: Add
*/
#pragma linkage(Add, system)
SOM_Scope boolean SOMLINK Add(Part somSelf, Environment *ev,
long lSet,
long LAction,
long* ID,
long* Count);
#ifndef somMN_Add_defined
#define somMN_Add_defined
static char *somMN_Add = "Add";
static somId somId_Add = &somMN_Add;
#endif /* somMN_Add_defined */
#ifndef somDS_Add_defined
#define somDS_Add_defined
static char *somDS_Add = somMD_Part_Add;
static somId somDI_Add = &somDS_Add;
#endif /* somDS_Add_defined */
static somMethodInfo AddMethodInfo = {10, 24, 0};
static somApRdInfo AddStubs = {0, 0, &AddMethodInfo};
/*
* New Method: Update
*/
#pragma linkage(Update, system)
SOM_Scope boolean SOMLINK Update(Part somSelf, Environment *ev,
long lSet,
long LAction,
long* ID,
long* Count);
#ifndef somMN_Update_defined
#define somMN_Update_defined
static char *somMN_Update = "Update";
static somId somId_Update = &somMN_Update;
#endif /* somMN_Update_defined */
#ifndef somDS_Update_defined
#define somDS_Update_defined
static char *somDS_Update = somMD_Part_Update;
static somId somDI_Update = &somDS_Update;
#endif /* somDS_Update_defined */
static somMethodInfo UpdateMethodInfo = {10, 24, 0};
static somApRdInfo UpdateStubs = {0, 0, &UpdateMethodInfo};
/*
* New Method: Debug
*/
#pragma linkage(Debug, system)
SOM_Scope boolean SOMLINK Debug(Part somSelf, Environment *ev,
boolean NewState);
#ifndef somMN_Debug_defined
#define somMN_Debug_defined
static char *somMN_Debug = "Debug";
static somId somId_Debug = &somMN_Debug;
#endif /* somMN_Debug_defined */
#ifndef somDS_Debug_defined
#define somDS_Debug_defined
static char *somDS_Debug = somMD_Part_Debug;
static somId somDI_Debug = &somDS_Debug;
#endif /* somDS_Debug_defined */
static somMethodInfo DebugMethodInfo = {10, 12, 0};
static somApRdInfo DebugStubs = {0, 0, &DebugMethodInfo};
/*
* New Method: Size
*/
#pragma linkage(Size, system)
SOM_Scope long SOMLINK Size(Part somSelf, Environment *ev);
#ifndef somMN_Size_defined
#define somMN_Size_defined
static char *somMN_Size = "Size";
static somId somId_Size = &somMN_Size;
#endif /* somMN_Size_defined */
#ifndef somDS_Size_defined
#define somDS_Size_defined
static char *somDS_Size = somMD_Part_Size;
static somId somDI_Size = &somDS_Size;
#endif /* somDS_Size_defined */
#define Size_somApRdDefault
/*
* Routines and Structures to create the class object
*/
/*
* Declare the Static Methods table.
*/
static somStaticMethod_t PartSM[] = {
{ &PartClassData.Search,
&somId_Search,
&somDI_Search,
(somMethodProc *) Search,
(somMethodProc *)((void*)-1),
#ifdef Search_somApRdDefault
0},
#else
(somMethodProc *) ((void*)&SearchStubs) },
#endif
{ &PartClassData.Add,
&somId_Add,
&somDI_Add,
(somMethodProc *) Add,
(somMethodProc *)((void*)-1),
#ifdef Add_somApRdDefault
0},
#else
(somMethodProc *) ((void*)&AddStubs) },
#endif
{ &PartClassData.Update,
&somId_Update,
&somDI_Update,
(somMethodProc *) Update,
(somMethodProc *)((void*)-1),
#ifdef Update_somApRdDefault
0},
#else
(somMethodProc *) ((void*)&UpdateStubs) },
#endif
{ &PartClassData.Debug,
&somId_Debug,
&somDI_Debug,
(somMethodProc *) Debug,
(somMethodProc *)((void*)-1),
#ifdef Debug_somApRdDefault
0},
#else
(somMethodProc *) ((void*)&DebugStubs) },
#endif
{ &PartClassData.Size,
&somId_Size,
&somDI_Size,
(somMethodProc *) Size,
(somMethodProc *)((void*)-1),
#ifdef Size_somApRdDefault
0},
#else
(somMethodProc *) ((void*)&SizeStubs) },
#endif
};
/*
* Declare the Override Methods table.
*/
static somOverrideMethod_t PartOM[] = {
{ &somId_somInit,
(somMethodProc *) somInit },
};
/*
* Initializers for class Ids
*/
static char * somCN_Part = "Part";
static char * somPCN_Part_SOMObject = "SOMObject";
static somId somPCPart[] = {
&somPCN_Part_SOMObject,
};
static somStaticClassInfo PartSCI = {
3, 5, 1, 0, 0, 0,
Part_MajorVersion, Part_MinorVersion,
sizeof(PartData), Part_MaxNoMethods, 1,
&somCN_Part,
(somId) NULL, 1,
somPCPart,
(somClassDataStructure *) &PartClassData,
(somCClassDataStructure *) &PartCClassData,
PartSM, PartOM,
(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 */
};
Part SOMLINK PartNewClass (integer4 somtmajorVersion,
integer4 somtminorVersion)
{
SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion); /* static reference */
return (somBuildClass(1,&PartSCI, somtmajorVersion, somtminorVersion));
}
/*
* Functions for attributes.
*/
#endif /* Part_Class_Source */
#pragma checkout(resume)
#endif /* SOM_Part_ih */