home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / nameable.idl < prev    next >
Text File  |  1999-02-22  |  1KB  |  61 lines

  1. //
  2. //   COMPONENT_NAME: somr
  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. //#  @(#) 2.8 src/somr/nameable.idl, somr, som2.1 9/1/94 15:51:27 [7/30/96 14:49:26]
  14.  
  15.  
  16.  
  17. #ifndef nameable_idl
  18. #define nameable_idl
  19.  
  20. #include <somobj.idl>
  21. interface SOMRNameable : SOMObject
  22.  
  23. //Any object derived from this class would have a string name.
  24.  
  25. {
  26.   void somrSetObjName(in string name);
  27.  
  28.   // Sets the internal pointer to "name" .
  29.   //           The OWNERSHIP of the string is transferred to this object.
  30.  
  31.   string somrGetObjName();
  32.  
  33.   // Returns a pointer to the name string.
  34.   //          The OWNERSHIP of the string stays with this object.
  35.  
  36.   #ifdef __SOMIDL__
  37.  
  38.   implementation
  39.   {
  40.     callstyle=idl;
  41.  
  42.     releaseorder: somrSetObjName, somrGetObjName;
  43.  
  44.     // Class Modifiers
  45.     majorversion = 2;
  46.     minorversion = 1;
  47.     filestem = nameable;
  48.  
  49.     // Internal Instance Variables
  50.     string name;
  51.  
  52.     // Method Modifiers
  53.     somInit: override;
  54.     somUninit: override;
  55.  
  56.   };
  57. #endif /* __SOMIDL__ */
  58.  
  59. };
  60. #endif  /* nameable_idl */
  61.