home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SOM / INCLUDE / PARAMDEF.IDL < prev    next >
Text File  |  1995-08-24  |  2KB  |  71 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. //  ParameterDef: CORBA Interface for parameter definitions
  14. //  See CORBA 7.5.7, p.136
  15. #ifndef paramdef_idl
  16. #define paramdef_idl
  17. #include <containd.idl>
  18. #include <somcls.idl>
  19. // CORBA 7.5.7, p.136
  20. interface ParameterDef : Contained
  21. {
  22.     enum ParameterMode {IN, OUT, INOUT};
  23.     struct ParameterDescription {
  24.     Identifier    name;
  25.     RepositoryId  id;
  26.     RepositoryId  defined_in;
  27.     TypeCode      type;
  28.     ParameterMode mode;
  29.     };
  30.     // The inherited describe method returns an instance of this
  31.     // (ParameterDescription) structure in the "value" member of the
  32.     // Description structure defined in the Contained interface.
  33.     attribute TypeCode type;
  34.     // The TypeCode of the receiving object.  The memory used to hold
  35.     // the TypeCode is contained in the receiving object, which retains
  36.     // ownership.  Hence, do not free the returned TypeCode.  If you want
  37.     // to obtain a separate copy, use the TypeCode_copy operation.
  38.     attribute ParameterMode mode;
  39.     // The ParameterMode of the receiving object;
  40. #ifdef __SOMIDL__
  41.   implementation {
  42.       releaseorder: _get_type,_set_type,_get_mode,_set_mode;
  43.       callstyle = idl;
  44.       majorversion = 2;
  45.       minorversion = 1;
  46.       filestem = paramdef;
  47.       dllname = "somir.dll";
  48.       passthru C_h =
  49.     ""
  50.     "    #include <somtcnst.h>"
  51.     "    #include <somir.h>"
  52.     "    #include <containd.h>"
  53.     "";
  54.       passthru C_xh =
  55.     ""
  56.     "    #include <somtcnst.xh>"
  57.     "    #include <somir.xh>"
  58.     "    #include <containd.xh>"
  59.     "";
  60.       type: nodata;
  61.       mode: noget, noset;
  62.       somInit: override;
  63.       somUninit: override;
  64.       somDumpSelf: override;
  65.       somDumpSelfInt: override;
  66.       describe: override;
  67.   };
  68. #endif /* __SOMIDL__ */
  69. };
  70. #endif    /* paramdef_idl */
  71.