home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 3.7 KB | 173 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLCySink.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_FW_defined
- #define SOM_Module_FW_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class FW_OSink;
- class CyberStream;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_FW_defined */
-
- #ifndef SOM_FW_OCyberSink_xh
- #define SOM_FW_OCyberSink_xh
-
- class FW_OCyberSink;
-
- #define FW_OCyberSink_MajorVersion 1
- #define FW_OCyberSink_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
- class CyberStream;
- typedef CyberStream* FW_HCyberStream;
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_OSink_xh
- #include <SLASinks.xh>
- #endif
-
- #ifndef FW_OCyberSink_API
- #define FW_OCyberSink_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OCyberSinkCClassData FW_OCyberSinkClassData
- #define FW_OCyberSinkNewClass(major,minor) somNewVersionedClassReference(FW_OCyberSink,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OCyberSinkMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OCyberSink class object, and the methods it introduces. */
- SOMEXTERN struct FW_OCyberSinkClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitFromStream;
- } SOMDLINK FW_OCyberSinkClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OCyberSink_Class_Source) && !defined(SOM_Module_slcysink_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OCyberSinkClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OCyberSink Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_FW_OCyberSink_InitFromStream)(FW_OCyberSink *somSelf, Environment *ev,
- CyberStream* cs);
- }
-
- #endif /* FW_OCyberSink_API */
-
-
- /*
- * -- 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))
-
- /*
- * -- The C++ Wrapper Class for FW_OCyberSink
- */
- class FW_OCyberSink : public FW_OSink
- {
- public:
-
- // FW_OCyberSink::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OCyberSink, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OCyberSink);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OCyberSink);
- #endif
- }
-
- // FW_OCyberSink::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitFromStream */
- void InitFromStream(Environment *ev,
- CyberStream* cs)
- {
- SOM_ResolveD(this,FW_OCyberSink,FW_OCyberSink,InitFromStream)
- (this,ev,cs);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* FW_OCyberSink */
-
-
-
- #endif /* SOM_FW_OCyberSink_xh */
-