home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / som.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-24  |  1.6 KB  |  74 lines

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