home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / somd.hh < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.9 KB  |  111 lines

  1. /*
  2.  *   COMPONENT_NAME: somd
  3.  *
  4.  *   ORIGINS: 27
  5.  *
  6.  *
  7.  *   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,
  8. 1994
  9.  *   All Rights Reserved
  10.  *   Licensed Materials - Property of IBM
  11.  *   US Government Users Restricted Rights - Use, duplication or
  12.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13.  */
  14. /* %Z% %I% %W% %G% %U% [%H% %T%] */ 
  15.  
  16.  
  17. /*
  18.  *  somd.hh - global DTS C++ include file for DSOM definitions
  19.  */
  20.  
  21. #ifndef SOMD_HH_DTS_Included
  22. #define SOMD_HH_DTS_Included
  23.  
  24. /*  --- base SOM and DSOM types ---  */
  25.  
  26. #pragma SOMAsDefault (off)
  27. #define CORBA_FUNCTION_NAMES
  28. #pragma SOMAsDefault (pop)
  29.  
  30. #include <som.hh>
  31. #include <somtcnst.hh>
  32. #include <somir.hh>
  33.  
  34.  
  35. #include <somdtype.hh>
  36.  
  37. /*  --- DSOM error codes ---  */
  38.  
  39. #pragma SOMAsDefault (off)
  40. #include <somderr.h>
  41. #pragma SOMAsDefault (pop)
  42.  
  43.  
  44. /*  --- DSOM externals --- */
  45.  
  46. #pragma SOMAsDefault (off)
  47. #include <somdext.h>
  48. #pragma SOMAsDefault (pop)
  49.  
  50.  
  51.  
  52. /* For DSOM users, CORBA's exception_free should be mapped to
  53.  * somdExceptionFree rather than somExceptionFree, as in somcorba.h.
  54.  */
  55. #pragma SOMAsDefault (off)
  56.  
  57. #ifdef exception_free
  58.  #undef exception_free
  59. #endif
  60. #define exception_free somdExceptionFree
  61.  
  62. #ifndef OBJECT_NIL
  63. #define OBJECT_NIL ((SOMObject *) NULL)
  64. #endif
  65.  
  66. #pragma SOMAsDefault (pop)
  67.  
  68. /*  --- DSOM global variables ---
  69.  *
  70.  *  Several global variables point to DSOM objects that are always or often
  71.  *  used by DSOM applications.
  72.  *
  73.  *  SOMD_ObjectMgr, SOMD_ORBObject, and SOMD_ImplRepObject are initialized
  74.  *  by SOMD_Init().
  75.  *
  76.  *  SOMD_ImplDefObject is initially NULL.   DSOM servers *MUST* set this to
  77.  *  an ImplementationDef object which describes the server implementation.
  78.  *  DSOM clients *MUST* leave this variable NULL.
  79.  *
  80.  *  SOMD_SOMOAObject is initially NULL.  DSOM servers should use the SOM
  81.  *  Object Adapter can use this variable to refer to the instantiated SOMOA.
  82.  *  It is not used by client processes.
  83.  *
  84.  *  The external references to these global variables are defined in the
  85.  *  .hh files for their respective classes.
  86.  */
  87.  
  88. #include <somdom.hh>            /* SOMD_ObjectMgr (incl. Factory) */
  89. #include <orb.hh>               /* SOMD_ORBObject */
  90. #include <implrep.hh>           /* SOMD_ImplRepObject */
  91. #include <impldef.hh>           /* SOMD_ImplDefObject */
  92. #include <somoa.hh>             /* SOMD_SOMOAObject */
  93.  
  94. /*  --- DSOM interfaces ---
  95.  *
  96.  *  Include the interfaces for other commonly used DSOM classes.
  97.  */
  98.  
  99. #include <somdobj.hh>           /* SOMDObject */
  100. #include <somdcprx.hh>          /* SOMDClientProxy */
  101. #include <cntxt.hh>             /* Context */
  102. #include <nvlist.hh>            /* NVList */
  103. #include <request.hh>           /* Request */
  104. // #include <stexcep.hh>           /* standard exceptions */
  105. #pragma SOMAsDefault (off)
  106. #include <stexcep.xh>
  107. #pragma SOMAsDefault (pop)
  108.  
  109.  
  110. #endif /* SOMD_HH_DTS_Included */
  111.