home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
fsagm.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-22
|
9KB
|
318 lines
/*
* This file was generated by the SOM Compiler.
* FileName: fsagm.h.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emith: 2.47
*/
/*
* COMPONENT_NAME: somp
*
* ORIGINS: 27
*
*
* 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1994,1996
* All Rights Reserved
* Licensed Materials - Property of IBM
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
*/
#ifndef SOM_SOMPAscii_h
#define SOM_SOMPAscii_h
#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 SOMPAscii
#define SOMPAscii SOMObject
#endif
/*
* This is an IO Group Manager which stores groups of objects
* to the file system using the media interface SOMPAsciiMediaInterface.
*
* This IO Group Manager stores non-object data (for example the number
* of objects in the group) in ASCII format.
* The file is readable but should not be editted.
*/
#include <iogma.h>
/*
* Start of bindings for IDL types
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMPMediaInterfaceAbstract
#define SOMPMediaInterfaceAbstract SOMObject
#endif /* SOMPMediaInterfaceAbstract */
#ifndef SOMPIOGroup
#define SOMPIOGroup SOMObject
#endif /* SOMPIOGroup */
#ifndef SOMPPersistentId
#define SOMPPersistentId SOMObject
#endif /* SOMPPersistentId */
#ifndef SOMPPersistentObject
#define SOMPPersistentObject SOMObject
#endif /* SOMPPersistentObject */
typedef
struct SOMPAscii_stack_contents {
string fileName;
long fileOffset;
} SOMPAscii_stack_contents, SOMPAscii_SOMPTStackContents;
/*
* Following structure represents Table of Contents meta-data
*/
typedef
struct SOMPAscii_TOC_meta {
unsigned long numObjects;
long lastOffset;
} SOMPAscii_TOC_meta, SOMPAscii_SOMPTTOCmeta;
/*
* Following structure represents Table of Contents entry data
*/
typedef
struct SOMPAscii_TOC_entry {
long podOffset;
unsigned short flags;
long podPos;
long podLen;
} SOMPAscii_TOC_entry, SOMPAscii_SOMPTTOCentry;
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_SOMPTStackContents
#ifdef SOMPTStackContents
#undef SOMPTStackContents
#define SOMTGD_SOMPTStackContents 1
#else
#define SOMPTStackContents SOMPAscii_SOMPTStackContents
#endif /* SOMPTStackContents */
#endif /* SOMTGD_SOMPTStackContents */
#endif /* SOM_DONT_USE_SHORT_NAMES */
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_SOMPTTOCmeta
#ifdef SOMPTTOCmeta
#undef SOMPTTOCmeta
#define SOMTGD_SOMPTTOCmeta 1
#else
#define SOMPTTOCmeta SOMPAscii_SOMPTTOCmeta
#endif /* SOMPTTOCmeta */
#endif /* SOMTGD_SOMPTTOCmeta */
#endif /* SOM_DONT_USE_SHORT_NAMES */
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_SOMPTTOCentry
#ifdef SOMPTTOCentry
#undef SOMPTTOCentry
#define SOMTGD_SOMPTTOCentry 1
#else
#define SOMPTTOCentry SOMPAscii_SOMPTTOCentry
#endif /* SOMPTTOCentry */
#endif /* SOMTGD_SOMPTTOCentry */
#endif /* SOM_DONT_USE_SHORT_NAMES */
/*
* End of bindings for IDL types.
*/
#define SOMPAscii_MajorVersion 2
#define SOMPAscii_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define SOMPAsciiNewClass c
#pragma linkage(c, system)
#define SOMPAsciiClassData d
#define SOMPAsciiCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define SOMPAscii_classObj SOMPAsciiClassData.classObject
#define _SOMPAscii SOMPAscii_classObj
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMClass * SOMLINK SOMPAsciiNewClass(integer4 somtmajorVersion,
integer4 somtminorVersion);
#pragma linkage(SOMPAsciiNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct SOMPAsciiClassDataStructure {
SOMClass *classObject;
somMToken sompWriteAnObject;
somMToken sompReadAnObject;
somMToken sompWriteTOC;
somMToken sompGroupIsDirty;
somMToken sompObjectIsDirty;
somMToken sompFindObjectInGroup;
somMToken sompSetHeaderLength;
somMToken sompGetHeaderLength;
somMToken sompReadTOCOffset;
somMToken sompWriteTOCOffset;
somMToken sompReadTOCMeta;
somMToken sompWriteTOCMeta;
somMToken sompReadTOCEntry;
somMToken sompWriteTOCEntry;
somMToken sompCalcTOCEntryPos;
somMToken sompCopyGroup;
somMToken sompCopyObjectData;
} SOMDLINK SOMPAsciiClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct SOMPAsciiCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMPAsciiCClassData;
/*
* New and Renew macros for SOMPAscii
*/
#define SOMPAsciiNew() \
( _SOMPAscii ? \
_somNew(_SOMPAscii) \
: ( SOMPAsciiNewClass(\
SOMPAscii_MajorVersion, \
SOMPAscii_MinorVersion),\
_somNew(_SOMPAscii)))
#define SOMPAsciiRenew(buf) \
( _SOMPAscii ? \
_somRenew(_SOMPAscii, buf) \
: ( SOMPAsciiNewClass(\
SOMPAscii_MajorVersion, \
SOMPAscii_MinorVersion),\
_somRenew(_SOMPAscii, buf)))
/*
* Override method: sompNewMediaInterface
*/
#define SOMPAscii_sompNewMediaInterface(somSelf,ev,IOInfo) \
SOMPIOGroupMgrAbstract_sompNewMediaInterface(somSelf,ev,IOInfo)
/*
* Override method: sompGetMediaInterface
*/
#define SOMPAscii_sompGetMediaInterface(somSelf,ev) \
SOMPIOGroupMgrAbstract_sompGetMediaInterface(somSelf,ev)
/*
* Override method: sompFreeMediaInterface
*/
#define SOMPAscii_sompFreeMediaInterface(somSelf,ev) \
SOMPIOGroupMgrAbstract_sompFreeMediaInterface(somSelf,ev)
/*
* Override method: sompInstantiateMediaInterface
*/
#define SOMPAscii_sompInstantiateMediaInterface(somSelf,ev) \
SOMPIOGroupMgrAbstract_sompInstantiateMediaInterface(somSelf,ev)
/*
* Override method: sompWriteGroup
*/
#define SOMPAscii_sompWriteGroup(somSelf,ev,thisPo) \
SOMPIOGroupMgrAbstract_sompWriteGroup(somSelf,ev,thisPo)
/*
* Override method: sompReadGroup
*/
#define SOMPAscii_sompReadGroup(somSelf,ev,objectID) \
SOMPIOGroupMgrAbstract_sompReadGroup(somSelf,ev,objectID)
/*
* Override method: sompReadObjectData
*/
#define SOMPAscii_sompReadObjectData(somSelf,ev,thisPo) \
SOMPIOGroupMgrAbstract_sompReadObjectData(somSelf,ev,thisPo)
/*
* Override method: sompDeleteObjectFromGroup
*/
#define SOMPAscii_sompDeleteObjectFromGroup(somSelf,ev,objectID) \
SOMPIOGroupMgrAbstract_sompDeleteObjectFromGroup(somSelf,ev,objectID)
/*
* Override method: sompGroupExists
*/
#define SOMPAscii_sompGroupExists(somSelf,ev,IOInfo) \
SOMPIOGroupMgrAbstract_sompGroupExists(somSelf,ev,IOInfo)
/*
* Override method: sompObjectInGroup
*/
#define SOMPAscii_sompObjectInGroup(somSelf,ev,objectID) \
SOMPIOGroupMgrAbstract_sompObjectInGroup(somSelf,ev,objectID)
/*
* Override method: sompMediaFormatOk
*/
#define SOMPAscii_sompMediaFormatOk(somSelf,ev,mediaFormatName) \
SOMPIOGroupMgrAbstract_sompMediaFormatOk(somSelf,ev,mediaFormatName)
/*
* Override method: somInit
*/
#define SOMPAscii_somInit(somSelf) \
SOMObject_somInit(somSelf)
/*
* Override method: somUninit
*/
#define SOMPAscii_somUninit(somSelf) \
SOMObject_somUninit(somSelf)
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SOMPAscii_somDefaultInit SOMObject_somDefaultInit
#define SOMPAscii_somDestruct SOMObject_somDestruct
#define SOMPAscii_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SOMPAscii_somDefaultAssign SOMObject_somDefaultAssign
#define SOMPAscii_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SOMPAscii_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SOMPAscii_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SOMPAscii_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SOMPAscii_somDefaultVAssign SOMObject_somDefaultVAssign
#define SOMPAscii_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SOMPAscii_somFree SOMObject_somFree
#define SOMPAscii_somGetClass SOMObject_somGetClass
#define SOMPAscii_somGetClassName SOMObject_somGetClassName
#define SOMPAscii_somGetSize SOMObject_somGetSize
#define SOMPAscii_somIsA SOMObject_somIsA
#define SOMPAscii_somIsInstanceOf SOMObject_somIsInstanceOf
#define SOMPAscii_somRespondsTo SOMObject_somRespondsTo
#define SOMPAscii_somDispatch SOMObject_somDispatch
#define SOMPAscii_somClassDispatch SOMObject_somClassDispatch
#define SOMPAscii_somCastObj SOMObject_somCastObj
#define SOMPAscii_somResetObj SOMObject_somResetObj
#define SOMPAscii_somDispatchV SOMObject_somDispatchV
#define SOMPAscii_somDispatchL SOMObject_somDispatchL
#define SOMPAscii_somDispatchA SOMObject_somDispatchA
#define SOMPAscii_somDispatchD SOMObject_somDispatchD
#define SOMPAscii_somPrintSelf SOMObject_somPrintSelf
#define SOMPAscii_somDumpSelf SOMObject_somDumpSelf
#define SOMPAscii_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_SOMPAscii_h */