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

  1. //#
  2. //#  COMPONENT_NAME: somi
  3. //#
  4. //#  ORIGINS: 27
  5. //#
  6. //#
  7. //#    25H7912  (C)   COPYRIGHT International Business Machines Corp. 1992,1996,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.5 src/somi/ir/somir/typedef.idl, somi.corba, som3.0 1/3/96 14:30:26 [12/24/96 07:40:13]
  14.  
  15.  
  16. //#  TypeDef: CORBA Interface for typedef definitions
  17. //#  See CORBA 1.1, 7.5.8, p.137
  18.  
  19. #ifndef typedef_idl
  20. #define typedef_idl
  21.  
  22. #include <containd.idl>
  23. #include <somcls.idl>
  24.  
  25. interface TypeDef : Contained
  26. // This interface is used to access information associated with
  27. // typedefs, unions, enums, & structs defined in an IDL file.
  28. //
  29. // See CORBA 1.1, 7.5.8, p.137
  30. {
  31.     struct TypeDescription {
  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.     // (TypeDescription) 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.  
  47. #ifdef __SOMIDL__
  48.   implementation {
  49.       releaseorder: _get_type,_set_type
  50.       ;
  51.  
  52.       //# Class Modifiers
  53.       callstyle = idl;
  54.       majorversion = 2;
  55.       minorversion = 3;
  56.       filestem = typedef;
  57.       dllname = "somir.dll";
  58.  
  59.       passthru C_h =
  60.     ""
  61.     "    #include <somtcnst.h>"
  62.     "    #include <somir.h>"
  63.     "    #include <containd.h>"
  64.     "";
  65.       passthru C_xh =
  66.     ""
  67.     "    #include <somtcnst.xh>"
  68.     "    #include <somir.xh>"
  69.     "    #include <containd.xh>"
  70.     "";
  71.  
  72.       //# Attribute Modifiers
  73.       type: nodata;
  74.       _get_type : dual_owned_result;
  75.  
  76.       //# Method Modifiers
  77.       somDefaultInit: override, init;
  78.       somDestruct: override;
  79.       somDumpSelf: override;
  80.       somDumpSelfInt: override;
  81.       describe: override;
  82.  
  83.   };
  84. #endif /* __SOMIDL__ */
  85. };
  86.  
  87. #endif    /* typedef_idl */
  88.