home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / som.hc < prev    next >
Text File  |  1999-02-22  |  2KB  |  69 lines

  1. #ifndef som_h 
  2. #define SOM_STRICT_IDL 1 
  3. #endif 
  4. /*
  5.  *   COMPONENT_NAME: somk
  6.  *
  7.  *   ORIGINS: 27
  8.  *
  9.  *
  10.  *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996 
  11.  *   All Rights Reserved
  12.  *   Licensed Materials - Property of IBM
  13.  *   US Government Users Restricted Rights - Use, duplication or
  14.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  15.  */
  16. /* @(#) 2.7.1.1 src/somk/som.h, somk.api, som2.1 12/26/95 16:44:31 [7/30/96 14:46:34] */
  17.  
  18. /*
  19.  */
  20.  
  21. /*
  22.  *    SOM.H
  23.  *    First level include file for System Object Model
  24.  *    Multiple Inheritance Version
  25.  */
  26.  
  27. #ifndef som_h
  28. #define som_h
  29.  
  30. #include <somnames.h>
  31. #include <somltype.h>
  32. #include <somtypes.h>
  33. #include <somcdev.h>
  34. #include <somcorba.h>
  35. #include <somapi.h>
  36.  
  37. /*
  38.  * C usage bindings for the primitive classes are responsible
  39.  * for indicating the coding style they support (i.e., original vs.
  40.  * CORBA style) by #defining SOM_STRICT_IDL if the CORBA style of
  41.  * usage bindings is desired. Thus, when this file (som.h) is 
  42.  * included by C usage bindings, the following #ifdef provides
  43.  * definitions for the primitive classes appropriate to the
  44.  * usage bindings.
  45.  */
  46.  
  47. #ifdef SOM_STRICT_IDL
  48.  
  49.    #undef SOMObject
  50.    #undef SOMClass
  51.    #undef SOMClassMgr
  52.  
  53.    typedef SOMAny *SOMAnyStrict;
  54.  
  55.    #define SOMObject SOMAnyStrict
  56.    #define SOMClass SOMAnyStrict
  57.    #define SOMClassMgr SOMAnyStrict
  58.  
  59. #endif
  60.  
  61. #ifndef SOM_NO_OBJECTS
  62.    #define SOMObject_VA_EXTERN
  63.    #include <somobj.h>
  64.    #include <somcls.h>
  65.    #include <somcm.h>
  66. #endif /* !SOM_NO_OBJECTS */
  67.  
  68. #endif /* som_h */
  69.