home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / include / excptdef.idl < prev    next >
Text File  |  1996-12-24  |  2KB  |  86 lines

  1. //#
  2. //#  COMPONENT_NAME: somi
  3. //#
  4. //#  ORIGINS: 27
  5. //#
  6. //#
  7. //#    25H7912  (C)   COPYRIGHT International Business Machines Corp. 1992,1994,1996,1996  
  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. //#  @(#) 2.9.1.4 src/somi/ir/somir/excptdef.idl, somi.corba, som3.0 1/3/96 14:28:40 [12/24/96 07:40:06]
  14.  
  15.  
  16. //#  ExceptionDef: CORBA Interface for exception definitions
  17. //#  See CORBA 1.1, 7.5.10, p.138
  18.  
  19. #ifndef excptdef_idl
  20. #define excptdef_idl
  21.  
  22. #include <containd.idl>
  23. #include <somcls.idl>
  24.  
  25. interface ExceptionDef : Contained
  26. // This interface is used to access information associated with
  27. // exceptions defined in an IDL file.
  28. //
  29. // See CORBA 1.1, 7.5.10, p.138
  30. {
  31.     struct ExceptionDescription {
  32.     Identifier    name;
  33.     RepositoryId  id;
  34.     RepositoryId  defined_in;
  35.     TypeCode      type;
  36.     };
  37.     // The inherited describe method returns an instance of this
  38.     // (ExceptionDescription) structure in the "value" member of the
  39.     // Description structure defined in the Contained interface.
  40.  
  41.     attribute TypeCode type;
  42.     // The TypeCode of the receiving object.  The memory used to hold
  43.     // the TypeCode is contained in the receiving object, which retains
  44.     // ownership.  Hence, do not free the returned TypeCode.  If you want
  45.     // to obtain a separate copy, use the TypeCode_copy operation.
  46. #ifdef __SOMIDL__
  47.   implementation {
  48.       releaseorder: _get_type,_set_type
  49.       ;
  50.  
  51.       //# Class Modifiers
  52.       callstyle = idl;
  53.       majorversion = 2;
  54.       minorversion = 3;
  55.       filestem = excptdef;
  56.       dllname = "somir.dll";
  57.  
  58.       passthru C_h =
  59.     ""
  60.     "    #include <somtcnst.h>"
  61.     "    #include <somir.h>"
  62.     "    #include <containd.h>"
  63.     "";
  64.       passthru C_xh =
  65.     ""
  66.     "    #include <somtcnst.xh>"
  67.     "    #include <somir.xh>"
  68.     "    #include <containd.xh>"
  69.     "";
  70.  
  71.       //# Attribute Modifiers
  72.       type: nodata;
  73.       _get_type : dual_owned_result;
  74.       //# Method Modifiers
  75.       somDefaultInit: override, init;
  76.       somDestruct: override;
  77.       somDumpSelf: override;
  78.       somDumpSelfInt: override;
  79.       describe: override;
  80.  
  81.   };
  82. #endif /* __SOMIDL__ */
  83. };
  84.  
  85. #endif    /* excptdef_idl */
  86.