home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / excptdef.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  2.2 KB  |  90 lines

  1. //
  2. //   COMPONENT_NAME: somi
  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.  
  14. //  ExceptionDef: CORBA Interface for exception definitions
  15. //  See CORBA 7.5.10, p.138
  16.  
  17. #ifndef excptdef_idl
  18. #define excptdef_idl
  19.  
  20. #include <containd.idl>
  21. #include <somcls.idl>
  22.  
  23. // CORBA 7.5.10, p.138
  24. interface ExceptionDef : Contained
  25. {
  26.     struct ExceptionDescription {
  27.     Identifier    name;
  28.     RepositoryId  id;
  29.     RepositoryId  defined_in;
  30.     TypeCode      type;
  31.     };
  32.     // The inherited describe method returns an instance of this
  33.     // (ExceptionDescription) structure in the "value" member of the
  34.     // Description structure defined in the Contained interface.
  35.  
  36.     attribute TypeCode type;
  37.     // The TypeCode of the receiving object.  The memory used to hold
  38.     // the TypeCode is contained in the receiving object, which retains
  39.     // ownership.  Hence, do not free the returned TypeCode.  If you want
  40.     // to obtain a separate copy, use the TypeCode_copy operation.
  41. #ifdef __SOMIDL__
  42.   implementation {
  43.       releaseorder: _get_type,_set_type;
  44.  
  45.       callstyle = idl;
  46.       majorversion = 2;
  47.       minorversion = 1;
  48.       filestem = excptdef;
  49.       dllname = "somir.dll";
  50.  
  51.       passthru C_h =
  52.     ""
  53.     "    #include <somtcnst.h>"
  54.     "    #include <somir.h>"
  55.     "    #include <containd.h>"
  56.     "";
  57.       passthru C_xh =
  58.     ""
  59.     "    #include <somtcnst.xh>"
  60.     "    #include <somir.xh>"
  61.     "    #include <containd.xh>"
  62.     "";
  63.       passthru C_hh =
  64.     ""
  65.     "    #include <somtcnst.hh>"
  66.     "    #include <somir.hh>"
  67.     "    #include <containd.hh>"
  68.     "";
  69.  
  70.       type: nodata;
  71.  
  72. #if defined __SOM_KERNEL_LEVEL && __SOM_KERNEL_LEVEL >= 250
  73.       _get_type : dual_owned_result;
  74. #else
  75.       _set_type : caller_owns_parameters = "type";
  76. #endif
  77.  
  78.       somInit: override;
  79.       somUninit: override;
  80.       somDumpSelf: override;
  81.       somDumpSelfInt: override;
  82.       describe: override;
  83.  
  84.   };
  85. #endif /* __SOMIDL__ */
  86. };
  87.  
  88.  
  89. #endif    /* excptdef_idl */
  90.