home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 10.8 KB | 412 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLFilRep.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- *
- * File: SLFilRep.idl
- *
- * Contains: Interface for FW_OFile class
- * Release Version: $ ODF 2 $
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- */
-
-
- #ifndef SOM_FW_OFile_xih
- #define SOM_FW_OFile_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
- class FW_CPrivFileRep;
-
- #ifndef SOM_FW_OFile_xh
- #include <SLFilRep.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OFile_MaxNoMethods 13
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OFileData {
- FW_CPrivFileRep* fRep;
- } FW_OFileData;
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef FW_OFileData* (* SOMLINK somTD_FW_OFile_DataThunk)(void*);
- #define FW_OFileGetData(somSelf) \
- (((somTD_FW_OFile_DataThunk)(FW_OFileClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fRep (somThis->fRep)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OFileMethodDebug
- #define FW_OFileMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _Acquire somSelf->Acquire
- #define _Release somSelf->Release
- #define _GetRefCount somSelf->GetRefCount
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _InitWithExclusiveAccess somSelf->InitWithExclusiveAccess
- #define _InitWithPermissions somSelf->InitWithPermissions
- #define _Read somSelf->Read
- #define _Write somSelf->Write
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #define _BytesToEndOfFile somSelf->BytesToEndOfFile
- #define _GetPermissions somSelf->GetPermissions
- #define _GetFileSpecification somSelf->GetFileSpecification
- #define _GetFileHandle somSelf->GetFileHandle
- #define _IsEqual somSelf->IsEqual
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: InitWithExclusiveAccess */
- SOM_Scope void SOMLINK FW_OFile__InitWithExclusiveAccess(FW_OFile *somSelf, Environment *ev,
- FW_OFileSpecification* fileSpecification,
- FW_Boolean allowCreate);
-
- /* New Method: InitWithPermissions */
- SOM_Scope void SOMLINK FW_OFile__InitWithPermissions(FW_OFile *somSelf, Environment *ev,
- FW_OFileSpecification* fileSpecification,
- FW_SAccessPermission* permission,
- FW_Boolean allowCreate);
-
- /* New Method: Read */
- SOM_Scope void SOMLINK FW_OFile__Read(FW_OFile *somSelf, Environment *ev,
- void* destination,
- long count);
-
- /* New Method: Write */
- SOM_Scope void SOMLINK FW_OFile__Write(FW_OFile *somSelf, Environment *ev,
- void* source,
- long count);
-
- /* New Method: GetLength */
- SOM_Scope long SOMLINK FW_OFile__GetLength(FW_OFile *somSelf, Environment *ev);
-
- /* New Method: SetLength */
- SOM_Scope void SOMLINK FW_OFile__SetLength(FW_OFile *somSelf, Environment *ev,
- long length);
-
- /* New Method: GetPosition */
- SOM_Scope long SOMLINK FW_OFile__GetPosition(FW_OFile *somSelf, Environment *ev);
-
- /* New Method: SetPosition */
- SOM_Scope void SOMLINK FW_OFile__SetPosition(FW_OFile *somSelf, Environment *ev,
- long positioningMode,
- long markOffset);
-
- /* New Method: BytesToEndOfFile */
- SOM_Scope long SOMLINK FW_OFile__BytesToEndOfFile(FW_OFile *somSelf, Environment *ev);
-
- /* New Method: GetPermissions */
- SOM_Scope void SOMLINK FW_OFile__GetPermissions(FW_OFile *somSelf, Environment *ev,
- FW_SAccessPermission* thePerms);
-
- /* New Method: GetFileSpecification */
- SOM_Scope FW_OFileSpecification* SOMLINK FW_OFile__GetFileSpecification(FW_OFile *somSelf, Environment *ev);
-
- /* New Method: GetFileHandle */
- SOM_Scope FW_PlatformFileHandle* SOMLINK FW_OFile__GetFileHandle(FW_OFile *somSelf, Environment *ev);
-
- /* New Method: IsEqual */
- SOM_Scope FW_Boolean SOMLINK FW_OFile__IsEqual(FW_OFile *somSelf, Environment *ev,
- FW_OFile* theOtherFile);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OFile__somInit(FW_OFile *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFile_somInit)(FW_OFile *somSelf);
- inline void SOMLINK FW_OFile_parent_FW_ORefCount_somInit(FW_OFile *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OFile_parents_somInit(arg0) \
- (void) FW_OFile_parent_FW_ORefCount_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OFile__somUninit(FW_OFile *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OFile_somUninit)(FW_OFile *somSelf);
- inline void SOMLINK FW_OFile_parent_FW_ORefCount_somUninit(FW_OFile *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OFile_parents_somUninit(arg0) \
- (void) FW_OFile_parent_FW_ORefCount_somUninit(arg0)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OFile_Class_Source) || defined(SOM_Module_slfilrep_Source))
-
- /*
- * -- The FW_OFile ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OFileClassData
- #endif
-
-
- /*
- * -- The FW_OFile Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OFileClassAncestors [] = {
- (somClassDataStructure*) & FW_ORefCountClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OFile Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OFileOverrideProcs [] = {
- (somMethodPtr) FW_OFile__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OFile__somUninit, /* override class SOMObject */
- };
-
-
- static void FW_OFileDLLD ( void ) { }
-
-
- /*
- * -- The FW_OFile Static Class Info Master Table
- */
- static somStaticClassInfo FW_OFileSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OFileClassData, /* main token table */
- FW_OFileOverrideProcs, /* override proc implemenations table */
- FW_OFileClassAncestors, /* ancestor table */
- FW_OFileDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OFile Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x0f" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x01" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OFile", /* the class name */
- sizeof (FW_OFileData), /* class instance data size */
-
- /*
- * -- The FW_OFile Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OFile Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x33\x00\x00\x00\x00\x00\x00",
-
-
- /*
- * -- The FW_OFile Method Signature Info
- */
- (somSignatureInfo *)
- "\x04\x17\xcc\x00" /* InitWithExclusiveAccess */
- "\x05\x17\xcc\xc0" /* InitWithPermissions */
- "\x04\x07" /* Read */
- "\x04\x07" /* Write */
- "\x02\x05" /* GetLength */
- "\x03\x07" /* SetLength */
- "\x02\x05" /* GetPosition */
- "\x04\x07" /* SetPosition */
- "\x02\x05" /* BytesToEndOfFile */
- "\x03\x07" /* GetPermissions */
- "\x02\x0c" /* GetFileSpecification */
- "\x02\x0c" /* GetFileHandle */
- "\x03\x00" /* IsEqual */
- ,
-
-
- /*
- * -- The FW_OFile Class Method Names
- */
- "somInit\0"
- "somUninit\0"
- "InitWithExclusiveAccess\0"
- "InitWithPermissions\0"
- "Read\0"
- "Write\0"
- "GetLength\0"
- "SetLength\0"
- "GetPosition\0"
- "SetPosition\0"
- "BytesToEndOfFile\0"
- "GetPermissions\0"
- "GetFileSpecification\0"
- "GetFileHandle\0"
- "IsEqual\0"
- ,
-
-
- /*
- * -- The FW_OFile Override Slots Table
- */
- (somOverrideData *)
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OFile ClassData Structure
- */
- struct FW_OFileClassDataStructure SOMDLINK FW_OFileClassData = {
- 0, /* zero */
- & FW_OFileSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) 0, /* somInit:empty */
- (somMToken) 0, /* somUninit:empty */
- (somMToken) FW_OFile__InitWithExclusiveAccess, /* InitWithExclusiveAccess:method */
- (somMToken) FW_OFile__InitWithPermissions, /* InitWithPermissions:method */
- (somMToken) FW_OFile__Read, /* Read:method */
- (somMToken) FW_OFile__Write, /* Write:method */
- (somMToken) FW_OFile__GetLength, /* GetLength:method */
- (somMToken) FW_OFile__SetLength, /* SetLength:method */
- (somMToken) FW_OFile__GetPosition, /* GetPosition:method */
- (somMToken) FW_OFile__SetPosition, /* SetPosition:method */
- (somMToken) FW_OFile__BytesToEndOfFile, /* BytesToEndOfFile:method */
- (somMToken) FW_OFile__GetPermissions, /* GetPermissions:method */
- (somMToken) FW_OFile__GetFileSpecification, /* GetFileSpecification:method */
- (somMToken) FW_OFile__GetFileHandle, /* GetFileHandle:method */
- (somMToken) FW_OFile__IsEqual, /* IsEqual:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OFile_xih */
-