home *** CD-ROM | disk | FTP | other *** search
- //
- // COMPONENT_NAME: somi
- //
- // ORIGINS: 27
- //
- //
- // 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
- // All Rights Reserved
- // Licensed Materials - Property of IBM
- // US Government Users Restricted Rights - Use, duplication or
- // disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- //
-
- // AttributeDef: CORBA Interface for attributed definitions
- // See CORBA 7.5.5, p.135
-
- #ifndef attribdf_idl
- #define attribdf_idl
-
- #include <containd.idl>
- #include <somcls.idl>
-
- // CORBA 7.5.5, p.135
- interface AttributeDef : Contained
- {
- enum AttributeMode {NORMAL, READONLY};
-
- struct AttributeDescription {
- Identifier name;
- RepositoryId id;
- RepositoryId defined_in;
- TypeCode type;
- AttributeMode mode;
- };
- // The inherited describe method returns an instance of this
- // (AttributeDescription) structure in the "value" member of the
- // Description structure defined in the Contained interface.
-
- attribute TypeCode type;
- // The TypeCode of the receiving object. The memory used to hold
- // the TypeCode is contained in the receiving object, which retains
- // ownership. Hence, do not free the returned TypeCode. If you want
- // to obtain a separate copy, use the TypeCode_copy operation.
-
- attribute AttributeMode mode;
- // The AttributeMode of the receiving object;
- #ifdef __SOMIDL__
- implementation {
- releaseorder: _get_type,_set_type,_get_mode,_set_mode;
-
- callstyle = idl;
- majorversion = 2;
- minorversion = 1;
- filestem = attribdf;
- dllname = "somir.dll";
-
- passthru C_h =
- ""
- " #include <somtcnst.h>"
- " #include <somir.h>"
- " #include <containd.h>"
- "";
- passthru C_xh =
- ""
- " #include <somtcnst.xh>"
- " #include <somir.xh>"
- " #include <containd.xh>"
- "";
- passthru C_hh =
- ""
- " #include <somtcnst.hh>"
- " #include <somir.hh>"
- " #include <containd.hh>"
- "";
-
- type: nodata;
- mode: noget, noset;
-
- #if defined __SOM_KERNEL_LEVEL && __SOM_KERNEL_LEVEL >= 250
- _get_type : dual_owned_result;
- #else
- _set_type : caller_owns_parameters = "type";
- #endif
-
- somInit: override;
- somUninit: override;
- somDumpSelf: override;
- somDumpSelfInt: override;
- describe: override;
-
- };
- #endif /* __SOMIDL__ */
- };
-
-
- #endif /* attribdf_idl */
-