home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / somd.hh < prev    next >
Text File  |  1999-02-22  |  3KB  |  110 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.  
  15.  
  16. /*
  17.  *  somd.hh - global DTS C++ include file for DSOM definitions
  18.  */
  19.  
  20. #ifndef SOMD_HH_DTS_Included
  21. #define SOMD_HH_DTS_Included
  22.  
  23. /*  --- base SOM and DSOM types ---  */
  24.  
  25. #pragma SOMAsDefault (off)
  26. #define CORBA_FUNCTION_NAMES
  27. #pragma SOMAsDefault (pop)
  28.  
  29. #include <som.hh>
  30. #include <somtcnst.hh>
  31. #include <somir.hh>
  32.  
  33.  
  34. #include <somdtype.hh>
  35.  
  36. /*  --- DSOM error codes ---  */
  37.  
  38. #pragma SOMAsDefault (off)
  39. #include <somderr.h>
  40. #pragma SOMAsDefault (pop)
  41.  
  42.  
  43. /*  --- DSOM externals --- */
  44.  
  45. #pragma SOMAsDefault (off)
  46. #include <somdext.h>
  47. #pragma SOMAsDefault (pop)
  48.  
  49.  
  50.  
  51. /* For DSOM users, CORBA's exception_free should be mapped to
  52.  * somdExceptionFree rather than somExceptionFree, as in somcorba.h.
  53.  */
  54. #pragma SOMAsDefault (off)
  55.  
  56. #ifdef exception_free
  57.  #undef exception_free
  58. #endif
  59. #define exception_free somdExceptionFree
  60.  
  61. #ifndef OBJECT_NIL
  62. #define OBJECT_NIL ((SOMObject *) NULL)
  63. #endif
  64.  
  65. #pragma SOMAsDefault (pop)
  66.  
  67. /*  --- DSOM global variables ---
  68.  *
  69.  *  Several global variables point to DSOM objects that are always or often
  70.  *  used by DSOM applications.
  71.  *
  72.  *  SOMD_ObjectMgr, SOMD_ORBObject, and SOMD_ImplRepObject are initialized
  73.  *  by SOMD_Init().
  74.  *
  75.  *  SOMD_ImplDefObject is initially NULL.   DSOM servers *MUST* set this to
  76.  *  an ImplementationDef object which describes the server implementation.
  77.  *  DSOM clients *MUST* leave this variable NULL.
  78.  *
  79.  *  SOMD_SOMOAObject is initially NULL.  DSOM servers should use the SOM
  80.  *  Object Adapter can use this variable to refer to the instantiated SOMOA.
  81.  *  It is not used by client processes.
  82.  *
  83.  *  The external references to these global variables are defined in the
  84.  *  .hh files for their respective classes.
  85.  */
  86.  
  87. #include <somdom.hh>            /* SOMD_ObjectMgr (incl. Factory) */
  88. #include <orb.hh>               /* SOMD_ORBObject */
  89. #include <implrep.hh>           /* SOMD_ImplRepObject */
  90. #include <impldef.hh>           /* SOMD_ImplDefObject */
  91. #include <somoa.hh>             /* SOMD_SOMOAObject */
  92.  
  93. /*  --- DSOM interfaces ---
  94.  *
  95.  *  Include the interfaces for other commonly used DSOM classes.
  96.  */
  97.  
  98. #include <somdobj.hh>           /* SOMDObject */
  99. #include <somdcprx.hh>          /* SOMDClientProxy */
  100. #include <cntxt.hh>             /* Context */
  101. #include <nvlist.hh>            /* NVList */
  102. #include <request.hh>           /* Request */
  103. // #include <stexcep.hh>           /* standard exceptions */
  104. #pragma SOMAsDefault (off)
  105. #include <stexcep.xh>
  106. #pragma SOMAsDefault (pop)
  107.  
  108.  
  109. #endif /* SOMD_HH_DTS_Included */
  110.