home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 5.1 KB | 217 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SOMPart.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_ODFExamples_defined
- #define SOM_Module_ODFExamples_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODPersistentObject;
- class ODStorageUnit;
- class ODPart;
- class ODCanvas;
- class ODDragItemIterator;
- class ODEmbeddedFramesIterator;
- class ODLink;
- class ODLinkSource;
- class ODObjectSpec;
- class ODShape;
- class ODStorageUnitView;
- class ODTypeList;
- class ODTransform;
- class ODSession;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_ODFExamples_defined */
-
- #ifndef SOM_ODFExamples_ODFForm_xh
- #define SOM_ODFExamples_ODFForm_xh
-
- class ODFExamples_ODFForm;
-
- #define ODFExamples_ODFForm_MajorVersion 0
- #define ODFExamples_ODFForm_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
- class FW_CPart;
- #ifdef __MRC__
- #pragma export on
- extern struct ODFExamples_ODFFormClassDataStructure SOMDLINK ODFExamples_ODFFormClassData;
- #pragma export off
- #endif
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODPart_xh
- #include <Part.xh>
- #endif
-
- #ifndef ODFExamples_ODFForm_API
- #define ODFExamples_ODFForm_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODFExamples_ODFFormCClassData ODFExamples_ODFFormClassData
- #define ODFExamples_ODFFormNewClass(major,minor) somNewVersionedClassReference(ODFExamples_ODFForm,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODFExamples_ODFFormMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODFExamples_ODFForm class object, and the methods it introduces. */
- SOMEXTERN struct ODFExamples_ODFFormClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken GetFrameworkPart;
- somMToken NewFrameworkPart;
- somMToken majorversion;
- } SOMDLINK ODFExamples_ODFFormClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODFExamples_ODFForm_Class_Source) && !defined(SOM_Module_sompart_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODFExamples_ODFFormClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODFExamples_ODFForm Method Procedures
- */
- SOMEXTERN {
- typedef FW_CPart* (* SOMLINK somTD_ODFExamples_ODFForm_GetFrameworkPart)(ODFExamples_ODFForm *somSelf, Environment *ev);
- typedef FW_CPart* (* SOMLINK somTD_ODFExamples_ODFForm_NewFrameworkPart)(ODFExamples_ODFForm *somSelf, Environment *ev,
- ODPart* partWrapper);
- }
-
- #endif /* ODFExamples_ODFForm_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 ODFExamples_ODFForm
- */
- class ODFExamples_ODFForm : public ODPart
- {
- public:
-
- // ODFExamples_ODFForm::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 ODFExamples_ODFForm, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODFExamples_ODFForm);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODFExamples_ODFForm);
- #endif
- }
-
- // ODFExamples_ODFForm::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: GetFrameworkPart */
- FW_CPart* GetFrameworkPart(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_CPart* __somResult =
- SOM_ResolveD(this,ODFExamples_ODFForm,ODFExamples_ODFForm,GetFrameworkPart)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFExamples_ODFForm,ODFExamples_ODFForm,GetFrameworkPart)
- (this,ev);
- #endif
- }
-
- /* method: NewFrameworkPart */
- FW_CPart* NewFrameworkPart(Environment *ev,
- ODPart* partWrapper)
- {
- #ifdef SOMCHKEXCEPT
- FW_CPart* __somResult =
- SOM_ResolveD(this,ODFExamples_ODFForm,ODFExamples_ODFForm,NewFrameworkPart)
- (this,ev,partWrapper);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFExamples_ODFForm,ODFExamples_ODFForm,NewFrameworkPart)
- (this,ev,partWrapper);
- #endif
- }
-
- }; /* ODFExamples_ODFForm */
-
-
-
- #endif /* SOM_ODFExamples_ODFForm_xh */
-