home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
fmi.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-22
|
18KB
|
533 lines
/*
* This file was generated by the SOM Compiler.
* FileName: fmi.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_SOMPAsciiMediaInterface_h
#define SOM_SOMPAsciiMediaInterface_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 SOMPAsciiMediaInterface
#define SOMPAsciiMediaInterface SOMObject
#endif
/*
* The AsciiMediaInterface class is responsible for providing the
* interface to the file system. The numeric data it writes is in
* ASCII format.
*/
#include <fma.h>
/*
* Start of bindings for IDL types
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
typedef
struct SOMPAsciiMediaInterface_mediaFlags_Type {
octet open_for_read;
/*
* 1=read only
*/
octet open_for_readwrite;
/*
* 1=read/write
*/
octet create_if_nonexistent;
/*
* 1=create if file nonexistent
*/
octet share;
/*
* 1=allow multiple readers
*/
} SOMPAsciiMediaInterface_mediaFlags_Type, SOMPAsciiMediaInterface_mediaFlagsType;
typedef
struct SOMPAsciiMediaInterface_mediaInfo_Type {
string Name;
/*
* file name
*/
SOMPAsciiMediaInterface_mediaFlagsType Flags;
/*
* flags, see mediaFlagsType
*/
unsigned short unix_file_permissions;
/*
* file permissions (unused on OS/2)
*/
} SOMPAsciiMediaInterface_mediaInfo_Type, SOMPAsciiMediaInterface_mediaInfoType;
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_mediaFlagsType
#ifdef mediaFlagsType
#undef mediaFlagsType
#define SOMTGD_mediaFlagsType 1
#else
#define mediaFlagsType SOMPAsciiMediaInterface_mediaFlagsType
#endif /* mediaFlagsType */
#endif /* SOMTGD_mediaFlagsType */
#endif /* SOM_DONT_USE_SHORT_NAMES */
#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_mediaInfoType
#ifdef mediaInfoType
#undef mediaInfoType
#define SOMTGD_mediaInfoType 1
#else
#define mediaInfoType SOMPAsciiMediaInterface_mediaInfoType
#endif /* mediaInfoType */
#endif /* SOMTGD_mediaInfoType */
#endif /* SOM_DONT_USE_SHORT_NAMES */
/*
* End of bindings for IDL types.
*/
#define SOMPAsciiMediaInterface_MajorVersion 2
#define SOMPAsciiMediaInterface_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define SOMPAsciiMediaInterfaceNewClass c
#pragma linkage(c, system)
#define SOMPAsciiMediaInterfaceClassData d
#define SOMPAsciiMediaInterfaceCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define SOMPAsciiMediaInterface_classObj SOMPAsciiMediaInterfaceClassData.classObject
#define _SOMPAsciiMediaInterface SOMPAsciiMediaInterface_classObj
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMClass * SOMLINK SOMPAsciiMediaInterfaceNewClass(integer4 somtmajorVersion,
integer4 somtminorVersion);
#pragma linkage(SOMPAsciiMediaInterfaceNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct SOMPAsciiMediaInterfaceClassDataStructure {
SOMClass *classObject;
somMToken sompStat;
somMToken sompTruncate;
somMToken sompQueryBlockSize;
somMToken sompGetMediaName;
somMToken sompInitSpecific;
} SOMDLINK SOMPAsciiMediaInterfaceClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct SOMPAsciiMediaInterfaceCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMPAsciiMediaInterfaceCClassData;
/*
* New and Renew macros for SOMPAsciiMediaInterface
*/
#define SOMPAsciiMediaInterfaceNew() \
( _SOMPAsciiMediaInterface ? \
_somNew(_SOMPAsciiMediaInterface) \
: ( SOMPAsciiMediaInterfaceNewClass(\
SOMPAsciiMediaInterface_MajorVersion, \
SOMPAsciiMediaInterface_MinorVersion),\
_somNew(_SOMPAsciiMediaInterface)))
#define SOMPAsciiMediaInterfaceRenew(buf) \
( _SOMPAsciiMediaInterface ? \
_somRenew(_SOMPAsciiMediaInterface, buf) \
: ( SOMPAsciiMediaInterfaceNewClass(\
SOMPAsciiMediaInterface_MajorVersion, \
SOMPAsciiMediaInterface_MinorVersion),\
_somRenew(_SOMPAsciiMediaInterface, buf)))
/*
* Override method: sompInitReadWrite
*/
#define SOMPAsciiMediaInterface_sompInitReadWrite(somSelf,ev,mediaInfo) \
SOMPFileMediaAbstract_sompInitReadWrite(somSelf,ev,mediaInfo)
/*
* Override method: sompInitReadOnly
*/
#define SOMPAsciiMediaInterface_sompInitReadOnly(somSelf,ev,mediaInfo) \
SOMPFileMediaAbstract_sompInitReadOnly(somSelf,ev,mediaInfo)
/*
* Override method: sompOpen
*/
#define SOMPAsciiMediaInterface_sompOpen(somSelf,ev) \
SOMPMediaInterfaceAbstract_sompOpen(somSelf,ev)
/*
* Override method: sompClose
*/
#define SOMPAsciiMediaInterface_sompClose(somSelf,ev) \
SOMPMediaInterfaceAbstract_sompClose(somSelf,ev)
/*
* Override method: sompSeekPosition
*/
#define SOMPAsciiMediaInterface_sompSeekPosition(somSelf,ev,offset) \
SOMPFileMediaAbstract_sompSeekPosition(somSelf,ev,offset)
/*
* Override method: sompSeekPositionRel
*/
#define SOMPAsciiMediaInterface_sompSeekPositionRel(somSelf,ev,offset) \
SOMPFileMediaAbstract_sompSeekPositionRel(somSelf,ev,offset)
/*
* Override method: sompGetOffset
*/
#define SOMPAsciiMediaInterface_sompGetOffset(somSelf,ev) \
SOMPFileMediaAbstract_sompGetOffset(somSelf,ev)
/*
* Override method: sompReadBytes
*/
#define SOMPAsciiMediaInterface_sompReadBytes(somSelf,ev,byteStream,length) \
SOMPFileMediaAbstract_sompReadBytes(somSelf,ev,byteStream,length)
/*
* Override method: sompWriteBytes
*/
#define SOMPAsciiMediaInterface_sompWriteBytes(somSelf,ev,byteStream,length) \
SOMPFileMediaAbstract_sompWriteBytes(somSelf,ev,byteStream,length)
/*
* Override method: somInit
*/
#define SOMPAsciiMediaInterface_somInit(somSelf) \
SOMObject_somInit(somSelf)
/*
* Override method: somUninit
*/
#define SOMPAsciiMediaInterface_somUninit(somSelf) \
SOMObject_somUninit(somSelf)
/*
* Override method: sompWriteOctet
*/
#define SOMPAsciiMediaInterface_sompWriteOctet(somSelf,ev,i1) \
SOMPFileMediaAbstract_sompWriteOctet(somSelf,ev,i1)
/*
* Override method: sompWriteShort
*/
#define SOMPAsciiMediaInterface_sompWriteShort(somSelf,ev,i2) \
SOMPFileMediaAbstract_sompWriteShort(somSelf,ev,i2)
/*
* Override method: sompWriteUnsignedShort
*/
#define SOMPAsciiMediaInterface_sompWriteUnsignedShort(somSelf,ev,u2) \
SOMPFileMediaAbstract_sompWriteUnsignedShort(somSelf,ev,u2)
/*
* Override method: sompWriteLong
*/
#define SOMPAsciiMediaInterface_sompWriteLong(somSelf,ev,i4) \
SOMPFileMediaAbstract_sompWriteLong(somSelf,ev,i4)
/*
* Override method: sompWriteUnsignedLong
*/
#define SOMPAsciiMediaInterface_sompWriteUnsignedLong(somSelf,ev,u4) \
SOMPFileMediaAbstract_sompWriteUnsignedLong(somSelf,ev,u4)
/*
* Override method: sompWriteDouble
*/
#define SOMPAsciiMediaInterface_sompWriteDouble(somSelf,ev,f8) \
SOMPFileMediaAbstract_sompWriteDouble(somSelf,ev,f8)
/*
* Override method: sompWriteFloat
*/
#define SOMPAsciiMediaInterface_sompWriteFloat(somSelf,ev,f4) \
SOMPFileMediaAbstract_sompWriteFloat(somSelf,ev,f4)
/*
* Override method: sompWriteCharacter
*/
#define SOMPAsciiMediaInterface_sompWriteCharacter(somSelf,ev,c) \
SOMPFileMediaAbstract_sompWriteCharacter(somSelf,ev,c)
/*
* Override method: sompWriteSomobject
*/
#define SOMPAsciiMediaInterface_sompWriteSomobject(somSelf,ev,so,parentObject) \
SOMPFileMediaAbstract_sompWriteSomobject(somSelf,ev,so,parentObject)
/*
* Override method: sompWriteString
*/
#define SOMPAsciiMediaInterface_sompWriteString(somSelf,ev,wstring) \
SOMPFileMediaAbstract_sompWriteString(somSelf,ev,wstring)
/*
* Override method: sompReadOctet
*/
#define SOMPAsciiMediaInterface_sompReadOctet(somSelf,ev,i1) \
SOMPFileMediaAbstract_sompReadOctet(somSelf,ev,i1)
/*
* Override method: sompReadShort
*/
#define SOMPAsciiMediaInterface_sompReadShort(somSelf,ev,i2) \
SOMPFileMediaAbstract_sompReadShort(somSelf,ev,i2)
/*
* Override method: sompReadUnsignedShort
*/
#define SOMPAsciiMediaInterface_sompReadUnsignedShort(somSelf,ev,u2) \
SOMPFileMediaAbstract_sompReadUnsignedShort(somSelf,ev,u2)
/*
* Override method: sompReadLong
*/
#define SOMPAsciiMediaInterface_sompReadLong(somSelf,ev,i4) \
SOMPFileMediaAbstract_sompReadLong(somSelf,ev,i4)
/*
* Override method: sompReadUnsignedLong
*/
#define SOMPAsciiMediaInterface_sompReadUnsignedLong(somSelf,ev,i4) \
SOMPFileMediaAbstract_sompReadUnsignedLong(somSelf,ev,i4)
/*
* Override method: sompReadDouble
*/
#define SOMPAsciiMediaInterface_sompReadDouble(somSelf,ev,f8) \
SOMPFileMediaAbstract_sompReadDouble(somSelf,ev,f8)
/*
* Override method: sompReadFloat
*/
#define SOMPAsciiMediaInterface_sompReadFloat(somSelf,ev,f4) \
SOMPFileMediaAbstract_sompReadFloat(somSelf,ev,f4)
/*
* Override method: sompReadCharacter
*/
#define SOMPAsciiMediaInterface_sompReadCharacter(somSelf,ev,c) \
SOMPFileMediaAbstract_sompReadCharacter(somSelf,ev,c)
/*
* Override method: sompReadSomobject
*/
#define SOMPAsciiMediaInterface_sompReadSomobject(somSelf,ev,so) \
SOMPFileMediaAbstract_sompReadSomobject(somSelf,ev,so)
/*
* Override method: sompReadString
*/
#define SOMPAsciiMediaInterface_sompReadString(somSelf,ev,rstring) \
SOMPFileMediaAbstract_sompReadString(somSelf,ev,rstring)
/*
* Override method: sompReadStringToBuffer
*/
#define SOMPAsciiMediaInterface_sompReadStringToBuffer(somSelf,ev,buffer,bufsize) \
SOMPFileMediaAbstract_sompReadStringToBuffer(somSelf,ev,buffer,bufsize)
/*
* Override method: sompWriteLine
*/
#define SOMPAsciiMediaInterface_sompWriteLine(somSelf,ev,buffer) \
SOMPFileMediaAbstract_sompWriteLine(somSelf,ev,buffer)
/*
* Override method: sompReadLine
*/
#define SOMPAsciiMediaInterface_sompReadLine(somSelf,ev,buffer,bufsize) \
SOMPFileMediaAbstract_sompReadLine(somSelf,ev,buffer,bufsize)
/*
* Override method: sompWriteTypeCode
*/
#define SOMPAsciiMediaInterface_sompWriteTypeCode(somSelf,ev,tc) \
SOMPFileMediaAbstract_sompWriteTypeCode(somSelf,ev,tc)
/*
* Override method: sompReadTypeCode
*/
#define SOMPAsciiMediaInterface_sompReadTypeCode(somSelf,ev,tc) \
SOMPFileMediaAbstract_sompReadTypeCode(somSelf,ev,tc)
/*
* New Method: sompInitSpecific
*/
typedef void SOMLINK somTP_SOMPAsciiMediaInterface_sompInitSpecific(SOMPAsciiMediaInterface *somSelf, Environment *ev,
SOMPAsciiMediaInterface_mediaInfoType* mediaInfo);
#pragma linkage(somTP_SOMPAsciiMediaInterface_sompInitSpecific, system)
typedef somTP_SOMPAsciiMediaInterface_sompInitSpecific *somTD_SOMPAsciiMediaInterface_sompInitSpecific;
/*
* Initialize MediaInterface with specific permissions and/or flags.
*/
#define somMD_SOMPAsciiMediaInterface_sompInitSpecific "::SOMPAsciiMediaInterface::sompInitSpecific"
#define SOMPAsciiMediaInterface_sompInitSpecific(somSelf,ev,mediaInfo) \
(SOM_Resolve(somSelf, SOMPAsciiMediaInterface, sompInitSpecific) \
(somSelf,ev,mediaInfo))
#ifndef SOMGD_sompInitSpecific
#if (defined(_sompInitSpecific) || defined(__sompInitSpecific))
#undef _sompInitSpecific
#undef __sompInitSpecific
#define SOMGD_sompInitSpecific 1
#else
#define _sompInitSpecific SOMPAsciiMediaInterface_sompInitSpecific
#endif /* _sompInitSpecific */
#endif /* SOMGD_sompInitSpecific */
/*
* New Method: sompStat
*/
typedef void SOMLINK somTP_SOMPAsciiMediaInterface_sompStat(SOMPAsciiMediaInterface *somSelf, Environment *ev,
SOMPStatDef_sompstat* fileStats);
#pragma linkage(somTP_SOMPAsciiMediaInterface_sompStat, system)
typedef somTP_SOMPAsciiMediaInterface_sompStat *somTD_SOMPAsciiMediaInterface_sompStat;
/*
* Fills the stat structure for the file associated with this object.
*/
#define somMD_SOMPAsciiMediaInterface_sompStat "::SOMPAsciiMediaInterface::sompStat"
#define SOMPAsciiMediaInterface_sompStat(somSelf,ev,fileStats) \
(SOM_Resolve(somSelf, SOMPAsciiMediaInterface, sompStat) \
(somSelf,ev,fileStats))
#ifndef SOMGD_sompStat
#if (defined(_sompStat) || defined(__sompStat))
#undef _sompStat
#undef __sompStat
#define SOMGD_sompStat 1
#else
#define _sompStat SOMPAsciiMediaInterface_sompStat
#endif /* _sompStat */
#endif /* SOMGD_sompStat */
/*
* New Method: sompQueryBlockSize
*/
typedef unsigned long SOMLINK somTP_SOMPAsciiMediaInterface_sompQueryBlockSize(SOMPAsciiMediaInterface *somSelf, Environment *ev);
#pragma linkage(somTP_SOMPAsciiMediaInterface_sompQueryBlockSize, system)
typedef somTP_SOMPAsciiMediaInterface_sompQueryBlockSize *somTD_SOMPAsciiMediaInterface_sompQueryBlockSize;
/*
* This method returns an optimal block size for I/O operations. This
* method would likely be called prior to allocating a buffer to be used
* for reading/writing.
*/
#define somMD_SOMPAsciiMediaInterface_sompQueryBlockSize "::SOMPAsciiMediaInterface::sompQueryBlockSize"
#define SOMPAsciiMediaInterface_sompQueryBlockSize(somSelf,ev) \
(SOM_Resolve(somSelf, SOMPAsciiMediaInterface, sompQueryBlockSize) \
(somSelf,ev))
#ifndef SOMGD_sompQueryBlockSize
#if (defined(_sompQueryBlockSize) || defined(__sompQueryBlockSize))
#undef _sompQueryBlockSize
#undef __sompQueryBlockSize
#define SOMGD_sompQueryBlockSize 1
#else
#define _sompQueryBlockSize SOMPAsciiMediaInterface_sompQueryBlockSize
#endif /* _sompQueryBlockSize */
#endif /* SOMGD_sompQueryBlockSize */
/*
* New Method: sompGetMediaName
*/
typedef string SOMLINK somTP_SOMPAsciiMediaInterface_sompGetMediaName(SOMPAsciiMediaInterface *somSelf, Environment *ev,
string toBuffer);
#pragma linkage(somTP_SOMPAsciiMediaInterface_sompGetMediaName, system)
typedef somTP_SOMPAsciiMediaInterface_sompGetMediaName *somTD_SOMPAsciiMediaInterface_sompGetMediaName;
/*
* Puts the name of the file for the fmi object into toBuffer and returns
* the address of the buffer. The buffer must be allocated (and freed)
* by the client.
*/
#define somMD_SOMPAsciiMediaInterface_sompGetMediaName "::SOMPAsciiMediaInterface::sompGetMediaName"
#define SOMPAsciiMediaInterface_sompGetMediaName(somSelf,ev,toBuffer) \
(SOM_Resolve(somSelf, SOMPAsciiMediaInterface, sompGetMediaName) \
(somSelf,ev,toBuffer))
#ifndef SOMGD_sompGetMediaName
#if (defined(_sompGetMediaName) || defined(__sompGetMediaName))
#undef _sompGetMediaName
#undef __sompGetMediaName
#define SOMGD_sompGetMediaName 1
#else
#define _sompGetMediaName SOMPAsciiMediaInterface_sompGetMediaName
#endif /* _sompGetMediaName */
#endif /* SOMGD_sompGetMediaName */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SOMPAsciiMediaInterface_somDefaultInit SOMObject_somDefaultInit
#define SOMPAsciiMediaInterface_somDestruct SOMObject_somDestruct
#define SOMPAsciiMediaInterface_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SOMPAsciiMediaInterface_somDefaultAssign SOMObject_somDefaultAssign
#define SOMPAsciiMediaInterface_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SOMPAsciiMediaInterface_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SOMPAsciiMediaInterface_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SOMPAsciiMediaInterface_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SOMPAsciiMediaInterface_somDefaultVAssign SOMObject_somDefaultVAssign
#define SOMPAsciiMediaInterface_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SOMPAsciiMediaInterface_somFree SOMObject_somFree
#define SOMPAsciiMediaInterface_somGetClass SOMObject_somGetClass
#define SOMPAsciiMediaInterface_somGetClassName SOMObject_somGetClassName
#define SOMPAsciiMediaInterface_somGetSize SOMObject_somGetSize
#define SOMPAsciiMediaInterface_somIsA SOMObject_somIsA
#define SOMPAsciiMediaInterface_somIsInstanceOf SOMObject_somIsInstanceOf
#define SOMPAsciiMediaInterface_somRespondsTo SOMObject_somRespondsTo
#define SOMPAsciiMediaInterface_somDispatch SOMObject_somDispatch
#define SOMPAsciiMediaInterface_somClassDispatch SOMObject_somClassDispatch
#define SOMPAsciiMediaInterface_somCastObj SOMObject_somCastObj
#define SOMPAsciiMediaInterface_somResetObj SOMObject_somResetObj
#define SOMPAsciiMediaInterface_somDispatchV SOMObject_somDispatchV
#define SOMPAsciiMediaInterface_somDispatchL SOMObject_somDispatchL
#define SOMPAsciiMediaInterface_somDispatchA SOMObject_somDispatchA
#define SOMPAsciiMediaInterface_somDispatchD SOMObject_somDispatchD
#define SOMPAsciiMediaInterface_somPrintSelf SOMObject_somPrintSelf
#define SOMPAsciiMediaInterface_somDumpSelf SOMObject_somDumpSelf
#define SOMPAsciiMediaInterface_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_SOMPAsciiMediaInterface_h */