home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / constdef.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  2.5 KB  |  98 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. //  ConstantDef: CORBA Interface for constant definitions
  15. //  See CORBA 7.5.9, p.137
  16.  
  17. #ifndef constdef_idl
  18. #define constdef_idl
  19.  
  20. #include <containd.idl>
  21. #include <somcls.idl>
  22.  
  23. // CORBA 7.5.9, p.137
  24. interface ConstantDef : Contained
  25. {
  26.     struct ConstantDescription {
  27.     Identifier    name;
  28.     RepositoryId  id;
  29.     RepositoryId  defined_in;
  30.     TypeCode      type;
  31.     any          value;
  32.     };
  33.     // The inherited describe method returns an instance of this
  34.     // (ConstantDescription) structure in the "value" member of the
  35.     // Description structure defined in the Contained interface.
  36.  
  37.     attribute TypeCode type;
  38.     // The TypeCode of the receiving object.  The memory used to hold
  39.     // the TypeCode is contained in the receiving object, which retains
  40.     // ownership.  Hence, do not free the returned TypeCode.  If you want
  41.     // to obtain a separate copy, use the TypeCode_copy operation.
  42.  
  43.     attribute any value;
  44.     // The value of the receiving constant object;
  45.     // "value" is an any carrying a string per CORBA 7.5.9 p. 123
  46. #ifdef __SOMIDL__
  47.   implementation {
  48.       releaseorder: _get_type,_set_type,_get_value,_set_value;
  49.  
  50.       callstyle = idl;
  51.       majorversion = 2;
  52.       minorversion = 1;
  53.       filestem = constdef;
  54.       dllname = "somir.dll";
  55.  
  56.       passthru C_h =
  57.     ""
  58.     "    #include <somtcnst.h>"
  59.     "    #include <somir.h>"
  60.     "    #include <containd.h>"
  61.     "";
  62.       passthru C_xh =
  63.     ""
  64.     "    #include <somtcnst.xh>"
  65.     "    #include <somir.xh>"
  66.     "    #include <containd.xh>"
  67.     "";
  68.       passthru C_hh =
  69.     ""
  70.     "    #include <somtcnst.hh>"
  71.     "    #include <somir.hh>"
  72.     "    #include <containd.hh>"
  73.     "";
  74.  
  75.       type: nodata;
  76.       value: nodata;
  77.  
  78. #if defined __SOM_KERNEL_LEVEL && __SOM_KERNEL_LEVEL >= 250
  79.       _get_type : dual_owned_result;
  80.       _get_value: dual_owned_result;
  81. #else
  82.       _set_type : caller_owns_parameters = "type";
  83.       _set_value: caller_owns_parameters = "value";
  84. #endif
  85.  
  86.       somInit: override;
  87.       somUninit: override;
  88.       somDumpSelf: override;
  89.       somDumpSelfInt: override;
  90.       describe: override;
  91.  
  92.   };
  93. #endif /* __SOMIDL__ */
  94. };
  95.  
  96.  
  97. #endif    /* constdef_idl */
  98.