home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 16.3 KB | 489 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLSUSink.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- * ----- Our Includes
- */
-
-
- #ifndef SOM_FW_OStorageUnitSink_xih
- #define SOM_FW_OStorageUnitSink_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
- class FW_CPrivSUSinkRep;
-
- #ifndef SOM_FW_OStorageUnitSink_xh
- #include <SLSUSink.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OStorageUnitSink_MaxNoMethods 3
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OStorageUnitSinkData {
- FW_CPrivSUSinkRep* fRep;
- } FW_OStorageUnitSinkData;
- #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_OStorageUnitSinkData* (* SOMLINK somTD_FW_OStorageUnitSink_DataThunk)(void*);
- #define FW_OStorageUnitSinkGetData(somSelf) \
- (((somTD_FW_OStorageUnitSink_DataThunk)(FW_OStorageUnitSinkClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fRep (somThis->fRep)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OStorageUnitSinkMethodDebug
- #define FW_OStorageUnitSinkMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #define _GetReadableBytes somSelf->GetReadableBytes
- #define _GetReadableBytes somSelf->GetReadableBytes
- #define _Read somSelf->Read
- #define _GetWritableBytes somSelf->GetWritableBytes
- #define _Write somSelf->Write
- #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 _InitFromStorageUnitView somSelf->InitFromStorageUnitView
- #define _InitFromStorageUnitAndProperty somSelf->InitFromStorageUnitAndProperty
- #define _GetStorageUnitView somSelf->GetStorageUnitView
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _Read somSelf->Read
- #define _GetWritableBytes somSelf->GetWritableBytes
- #define _Write somSelf->Write
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: InitFromStorageUnitView */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__InitFromStorageUnitView(FW_OStorageUnitSink *somSelf, Environment *ev,
- ODStorageUnitView* storageUnitView);
-
- /* New Method: InitFromStorageUnitAndProperty */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__InitFromStorageUnitAndProperty(FW_OStorageUnitSink *somSelf, Environment *ev,
- ODStorageUnit* storageUnit,
- ODPropertyName propertyName,
- ODValueType valueType);
-
- /* New Method: GetStorageUnitView */
- SOM_Scope ODStorageUnitView* SOMLINK FW_OStorageUnitSink__GetStorageUnitView(FW_OStorageUnitSink *somSelf, Environment *ev);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__somInit(FW_OStorageUnitSink *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_somInit)(FW_OStorageUnitSink *somSelf);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_somInit(FW_OStorageUnitSink *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OStorageUnitSink_parents_somInit(arg0) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__somUninit(FW_OStorageUnitSink *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_somUninit)(FW_OStorageUnitSink *somSelf);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_somUninit(FW_OStorageUnitSink *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OStorageUnitSink_parents_somUninit(arg0) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_somUninit(arg0)
-
- /* Overridden method: Read */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__Read(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* destination,
- long count);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_Read)(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* destination,
- long count);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_Read(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* destination,
- long count)
- {
- ((somTD_xih_FW_OStorageUnitSink_Read)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_OSinkClassData.Read))
- (somSelf,ev,destination,count);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OStorageUnitSink_parents_Read(arg0,arg1,arg2,arg3) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_Read(arg0,arg1,arg2,arg3)
-
- /* Overridden method: GetWritableBytes */
- SOM_Scope long SOMLINK FW_OStorageUnitSink__GetWritableBytes(FW_OStorageUnitSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OStorageUnitSink_GetWritableBytes)(FW_OStorageUnitSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetWritableBytes(FW_OStorageUnitSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OStorageUnitSink_GetWritableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_OSinkClassData.GetWritableBytes))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OStorageUnitSink_GetWritableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_OSinkClassData.GetWritableBytes))
- (somSelf,ev);
- #endif
- }
- #define FW_OStorageUnitSink_parents_GetWritableBytes(arg0,arg1) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetWritableBytes(arg0,arg1)
-
- /* Overridden method: Write */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__Write(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* source,
- long count);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_Write)(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* source,
- long count);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_Write(FW_OStorageUnitSink *somSelf, Environment *ev,
- void* source,
- long count)
- {
- ((somTD_xih_FW_OStorageUnitSink_Write)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_OSinkClassData.Write))
- (somSelf,ev,source,count);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OStorageUnitSink_parents_Write(arg0,arg1,arg2,arg3) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_Write(arg0,arg1,arg2,arg3)
-
- /* Overridden method: GetLength */
- SOM_Scope long SOMLINK FW_OStorageUnitSink__GetLength(FW_OStorageUnitSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OStorageUnitSink_GetLength)(FW_OStorageUnitSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetLength(FW_OStorageUnitSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OStorageUnitSink_GetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.GetLength))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OStorageUnitSink_GetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.GetLength))
- (somSelf,ev);
- #endif
- }
- #define FW_OStorageUnitSink_parents_GetLength(arg0,arg1) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetLength(arg0,arg1)
-
- /* Overridden method: SetLength */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__SetLength(FW_OStorageUnitSink *somSelf, Environment *ev,
- long length);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_SetLength)(FW_OStorageUnitSink *somSelf, Environment *ev,
- long length);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_SetLength(FW_OStorageUnitSink *somSelf, Environment *ev,
- long length)
- {
- ((somTD_xih_FW_OStorageUnitSink_SetLength)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.SetLength))
- (somSelf,ev,length);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OStorageUnitSink_parents_SetLength(arg0,arg1,arg2) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_SetLength(arg0,arg1,arg2)
-
- /* Overridden method: GetPosition */
- SOM_Scope long SOMLINK FW_OStorageUnitSink__GetPosition(FW_OStorageUnitSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_OStorageUnitSink_GetPosition)(FW_OStorageUnitSink *somSelf, Environment *ev);
- inline long SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetPosition(FW_OStorageUnitSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_OStorageUnitSink_GetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.GetPosition))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OStorageUnitSink_GetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.GetPosition))
- (somSelf,ev);
- #endif
- }
- #define FW_OStorageUnitSink_parents_GetPosition(arg0,arg1) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_GetPosition(arg0,arg1)
-
- /* Overridden method: SetPosition */
- SOM_Scope void SOMLINK FW_OStorageUnitSink__SetPosition(FW_OStorageUnitSink *somSelf, Environment *ev,
- long position);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OStorageUnitSink_SetPosition)(FW_OStorageUnitSink *somSelf, Environment *ev,
- long position);
- inline void SOMLINK FW_OStorageUnitSink_parent_FW_ORandomAccessSink_SetPosition(FW_OStorageUnitSink *somSelf, Environment *ev,
- long position)
- {
- ((somTD_xih_FW_OStorageUnitSink_SetPosition)
- somParentNumResolve((somClassDataStructure*)&FW_OStorageUnitSinkClassData, 1, FW_ORandomAccessSinkClassData.SetPosition))
- (somSelf,ev,position);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OStorageUnitSink_parents_SetPosition(arg0,arg1,arg2) \
- (void) FW_OStorageUnitSink_parent_FW_ORandomAccessSink_SetPosition(arg0,arg1,arg2)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OStorageUnitSink_Class_Source) || defined(SOM_Module_slsusink_Source))
-
- /*
- * -- The FW_OStorageUnitSink ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OStorageUnitSinkClassData
- #endif
-
-
- /*
- * -- The FW_OStorageUnitSink Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OStorageUnitSinkClassAncestors [] = {
- (somClassDataStructure*) & FW_ORandomAccessSinkClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- (somClassDataStructure*) & FW_OSinkClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OStorageUnitSink Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OStorageUnitSinkOverrideProcs [] = {
- (somMethodPtr) FW_OStorageUnitSink__GetLength, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OStorageUnitSink__SetLength, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OStorageUnitSink__GetPosition, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OStorageUnitSink__SetPosition, /* override class FW_ORandomAccessSink */
- (somMethodPtr) FW_OStorageUnitSink__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OStorageUnitSink__somUninit, /* override class SOMObject */
- (somMethodPtr) FW_OStorageUnitSink__Read, /* override class FW_OSink */
- (somMethodPtr) FW_OStorageUnitSink__GetWritableBytes, /* override class FW_OSink */
- (somMethodPtr) FW_OStorageUnitSink__Write, /* override class FW_OSink */
- };
-
-
- static void FW_OStorageUnitSinkDLLD ( void ) { }
-
-
- /*
- * -- The FW_OStorageUnitSink Static Class Info Master Table
- */
- static somStaticClassInfo FW_OStorageUnitSinkSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OStorageUnitSinkClassData, /* main token table */
- FW_OStorageUnitSinkOverrideProcs, /* override proc implemenations table */
- FW_OStorageUnitSinkClassAncestors, /* ancestor table */
- FW_OStorageUnitSinkDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OStorageUnitSink Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x03" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x03" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OStorageUnitSink", /* the class name */
- sizeof (FW_OStorageUnitSinkData), /* class instance data size */
-
- /*
- * -- The FW_OStorageUnitSink Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OStorageUnitSink Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00",
-
-
- /*
- * -- The FW_OStorageUnitSink Method Signature Info
- */
- (somSignatureInfo *)
- "\x03\x07" /* InitFromStorageUnitView */
- "\x05\x07" /* InitFromStorageUnitAndProperty */
- "\x02\x0c" /* GetStorageUnitView */
- ,
-
-
- /*
- * -- The FW_OStorageUnitSink Class Method Names
- */
- "InitFromStorageUnitView\0"
- "InitFromStorageUnitAndProperty\0"
- "GetStorageUnitView\0"
- ,
-
-
- /*
- * -- The FW_OStorageUnitSink Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x04" /* parent FW_ORandomAccessSink has 4 overrides */
- "\x00\x00" /* GetLength */
- "\x00\x01" /* SetLength */
- "\x00\x02" /* GetPosition */
- "\x00\x03" /* SetPosition */
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- "\x00\x02\x00\x03" /* parent FW_OSink has 3 overrides */
- "\x00\x03" /* Read */
- "\x00\x04" /* GetWritableBytes */
- "\x00\x05" /* Write */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OStorageUnitSink ClassData Structure
- */
- struct FW_OStorageUnitSinkClassDataStructure SOMDLINK FW_OStorageUnitSinkClassData = {
- 0, /* zero */
- & FW_OStorageUnitSinkSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FW_OStorageUnitSink__InitFromStorageUnitView, /* InitFromStorageUnitView:method */
- (somMToken) FW_OStorageUnitSink__InitFromStorageUnitAndProperty, /* InitFromStorageUnitAndProperty:method */
- (somMToken) FW_OStorageUnitSink__GetStorageUnitView, /* GetStorageUnitView:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OStorageUnitSink_xih */
-