home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-02 | 3.7 KB | 166 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SimpleCyberService.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * SimpleCyberService
- *
- */
-
-
- #ifndef SOM_SimpleCyberService_xh
- #define SOM_SimpleCyberService_xh
-
- class SimpleCyberService;
-
- #define SimpleCyberService_MajorVersion 0
- #define SimpleCyberService_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_CyberService_xh
- #include <CyberService.xh>
- #endif
-
- #ifndef SimpleCyberService_API
- #define SimpleCyberService_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class CyberService;
- class CyberItem;
- class ODMenuBar;
- class ODPart;
- typedef
- somToken CyberMenuData;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define SimpleCyberServiceCClassData SimpleCyberServiceClassData
- #define SimpleCyberServiceNewClass(major,minor) somNewVersionedClassReference(SimpleCyberService,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define SimpleCyberServiceMetaClass SOMClass
-
-
- /* The API to the SimpleCyberService class object, and the methods it introduces. */
- SOMEXTERN struct SimpleCyberServiceClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken DoMenuItemSelected;
- } SOMDLINK SimpleCyberServiceClassData;
-
- #if !defined(SimpleCyberService_Class_Source) && !defined(SOM_Module_simplecyberservice_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list SimpleCyberServiceClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for SimpleCyberService Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_SimpleCyberService_DoMenuItemSelected)(SimpleCyberService *somSelf, Environment *ev,
- long index,
- ODFrame* frame,
- CyberMenuData menuData);
- }
-
- #endif /* SimpleCyberService_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 SimpleCyberService
- */
- class SimpleCyberService : public CyberService
- {
- public:
-
- // SimpleCyberService::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 SimpleCyberService, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(SimpleCyberService);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(SimpleCyberService);
- #endif
- }
-
- // SimpleCyberService::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: DoMenuItemSelected */
- void DoMenuItemSelected(Environment *ev,
- long index,
- ODFrame* frame,
- CyberMenuData menuData)
- {
- SOM_ResolveD(this,SimpleCyberService,SimpleCyberService,DoMenuItemSelected)
- (this,ev,index,frame,menuData);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* SimpleCyberService */
-
-
-
- #endif /* SOM_SimpleCyberService_xh */
-