home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sompar.zip
/
SOM
/
PART.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-06
|
8KB
|
281 lines
/*
* This file was generated by the SOM Compiler.
* FileName: part.h.
* Generated using:
* SOM Precompiler somipc: 2.2
* SOM Emitter emith: 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:
*
*/
#ifndef SOM_Part_h
#define SOM_Part_h
/*
* The SOM_STRICT_IDL macro means that we can ignore stars
* in our declarations of objects.
*/
#define SOM_STRICT_IDL 1
#include <som.h>
/*
* -- 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))
/*
* Define the class name as an object type
*/
#ifndef Part
#define Part SOMObject
#endif
#include <somobj.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#define Part_stackSize 100 /* 100 */
#define Part_setSize 4 /* 4 */
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_stackSize
#ifdef stackSize
#undef stackSize
#define SOMTGD_stackSize 1
#else
#define stackSize Part_stackSize
#endif /* stackSize */
#endif /* SOMTGD_stackSize */
#ifndef SOMTGD_setSize
#ifdef setSize
#undef setSize
#define SOMTGD_setSize 1
#else
#define setSize Part_setSize
#endif /* setSize */
#endif /* SOMTGD_setSize */
#endif /* SOM_DONT_USE_SHORT_NAMES */
/*
* End of user-defined types.
*/
#define Part_MajorVersion 0
#define Part_MinorVersion 0
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define PartNewClass c
#pragma linkage(c, system)
#define PartClassData d
#define PartCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define Part_classObj PartClassData.classObject
#define _Part Part_classObj
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMClass SOMLINK PartNewClass(integer4 somtmajorVersion,
integer4 somtminorVersion);
#pragma linkage(PartNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct PartClassDataStructure {
SOMAny *classObject;
somMToken Search;
somMToken Add;
somMToken Update;
somMToken Size;
somMToken Debug;
} PartClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct PartCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} PartCClassData;
/*
* New and Renew macros for Part
*/
#define PartNew() \
( PartClassData.classObject \
? (_somNew(PartClassData.classObject)) \
: ( PartNewClass(Part_MajorVersion, Part_MinorVersion), (_somNew(PartClassData.classObject)) ) )
#define PartRenew(buf) \
( _somRenew(PartClassData.classObject, buf) )
/*
* Override method: somInit
*/
#define Part_somInit(somSelf) \
SOMObject_somInit(somSelf)
/*
* New Method: Search
*/
typedef boolean SOMLINK somTP_Part_Search(Part somSelf, Environment *ev,
long lSet,
long lAction,
long* ID,
long* Count);
#pragma linkage(somTP_Part_Search, system)
typedef somTP_Part_Search *somTD_Part_Search;
#define somMD_Part_Search "::Part::Search"
#define Part_Search(somSelf,ev,lSet,lAction,ID,Count) \
(SOM_Resolve(somSelf, Part, Search) \
(somSelf,ev,lSet,lAction,ID,Count))
#ifndef SOMGD_Search
#if (defined(_Search) || defined(__Search))
#undef _Search
#undef __Search
#define SOMGD_Search 1
#else
#define _Search Part_Search
#endif /* _Search */
#endif /* SOMGD_Search */
/*
* New Method: Add
*/
typedef boolean SOMLINK somTP_Part_Add(Part somSelf, Environment *ev,
long lSet,
long LAction,
long* ID,
long* Count);
#pragma linkage(somTP_Part_Add, system)
typedef somTP_Part_Add *somTD_Part_Add;
#define somMD_Part_Add "::Part::Add"
#define Part_Add(somSelf,ev,lSet,LAction,ID,Count) \
(SOM_Resolve(somSelf, Part, Add) \
(somSelf,ev,lSet,LAction,ID,Count))
#ifndef SOMGD_Add
#if (defined(_Add) || defined(__Add))
#undef _Add
#undef __Add
#define SOMGD_Add 1
#else
#define _Add Part_Add
#endif /* _Add */
#endif /* SOMGD_Add */
/*
* New Method: Update
*/
typedef boolean SOMLINK somTP_Part_Update(Part somSelf, Environment *ev,
long lSet,
long LAction,
long* ID,
long* Count);
#pragma linkage(somTP_Part_Update, system)
typedef somTP_Part_Update *somTD_Part_Update;
#define somMD_Part_Update "::Part::Update"
#define Part_Update(somSelf,ev,lSet,LAction,ID,Count) \
(SOM_Resolve(somSelf, Part, Update) \
(somSelf,ev,lSet,LAction,ID,Count))
#ifndef SOMGD_Update
#if (defined(_Update) || defined(__Update))
#undef _Update
#undef __Update
#define SOMGD_Update 1
#else
#define _Update Part_Update
#endif /* _Update */
#endif /* SOMGD_Update */
/*
* New Method: Debug
*/
typedef boolean SOMLINK somTP_Part_Debug(Part somSelf, Environment *ev,
boolean NewState);
#pragma linkage(somTP_Part_Debug, system)
typedef somTP_Part_Debug *somTD_Part_Debug;
#define somMD_Part_Debug "::Part::Debug"
#define Part_Debug(somSelf,ev,NewState) \
(SOM_Resolve(somSelf, Part, Debug) \
(somSelf,ev,NewState))
#ifndef SOMGD_Debug
#if (defined(_Debug) || defined(__Debug))
#undef _Debug
#undef __Debug
#define SOMGD_Debug 1
#else
#define _Debug Part_Debug
#endif /* _Debug */
#endif /* SOMGD_Debug */
/*
* New Method: Size
*/
typedef long SOMLINK somTP_Part_Size(Part somSelf, Environment *ev);
#pragma linkage(somTP_Part_Size, system)
typedef somTP_Part_Size *somTD_Part_Size;
#define somMD_Part_Size "::Part::Size"
#define Part_Size(somSelf,ev) \
(SOM_Resolve(somSelf, Part, Size) \
(somSelf,ev))
#ifndef SOMGD_Size
#if (defined(_Size) || defined(__Size))
#undef _Size
#undef __Size
#define SOMGD_Size 1
#else
#define _Size Part_Size
#endif /* _Size */
#endif /* SOMGD_Size */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Part_somFree SOMObject_somFree
#define Part_somDefaultInit SOMObject_somDefaultInit
#define Part_somDestruct SOMObject_somDestruct
#define Part_somUninit SOMObject_somUninit
#define Part_somGetClass SOMObject_somGetClass
#define Part_somGetClassName SOMObject_somGetClassName
#define Part_somGetSize SOMObject_somGetSize
#define Part_somIsA SOMObject_somIsA
#define Part_somIsInstanceOf SOMObject_somIsInstanceOf
#define Part_somRespondsTo SOMObject_somRespondsTo
#define Part_somComputeForwardVisitMask SOMObject_somComputeForwardVisitMask
#define Part_somComputeReverseVisitMask SOMObject_somComputeReverseVisitMask
#define Part_somDispatchV SOMObject_somDispatchV
#define Part_somDispatchL SOMObject_somDispatchL
#define Part_somDispatchA SOMObject_somDispatchA
#define Part_somDispatchD SOMObject_somDispatchD
#define Part_somDispatch SOMObject_somDispatch
#define Part_somClassDispatch SOMObject_somClassDispatch
#define Part_somCastObj SOMObject_somCastObj
#define Part_somResetObj SOMObject_somResetObj
#define Part_somPrintSelf SOMObject_somPrintSelf
#define Part_somDumpSelf SOMObject_somDumpSelf
#define Part_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_Part_h */