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

  1. //#  @(#) 2.10 src/somuc/mlink.idl, somuc, som2.1 12/26/95 15:31:44 [7/30/96 14:49:58]
  2. //
  3. //   COMPONENT_NAME: somuc
  4. //
  5. //   ORIGINS: 82, 81, 27
  6. //
  7. //
  8. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996  
  9. //   All Rights Reserved
  10. //   Licensed Materials - Property of IBM
  11. //   US Government Users Restricted Rights - Use, duplication or
  12. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13. //
  14. //   Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
  15.  
  16. /*
  17.  * CLASS_NAME: somf_MLinkable
  18.  *
  19.  * DESCRIPTION: This class defines the general attributes of objects that
  20.  *              contain links.  For example, TPrimitiveLinkedList uses
  21.  *              somf_MLinkable.
  22.  *
  23.  */
  24.  
  25. #ifndef MLink_idl
  26. #define MLink_idl
  27.  
  28. #include <somobj.idl>
  29.  
  30. interface somf_MLinkable : SOMObject
  31. {
  32.   somf_MLinkable somfMLinkableInit(in somf_MLinkable n,
  33.                 in somf_MLinkable p);
  34.  
  35.   // This method initialized the somf_MLinkable object using n and p.
  36.   //#   MLinkable(MLinkable* n, MLinkable* p)   { fNext = n; fPrevious = p;}
  37.  
  38.   //# since MLinkable has no logic in it's destructor, the
  39.   //# following destructor has been commented out.
  40.   //#
  41.   //#    ~MLinkable() {}
  42.  
  43.   somf_MLinkable somfGetNext();
  44.  
  45.   // This method returns a pointer to the next somf_MLinkable.
  46.   //#   MLinkable* GetNext() const { return fNext;}
  47.  
  48.   void somfSetNext(in somf_MLinkable aLink);
  49.  
  50.   // This method sets the pointer to the next somf_MLinkable.
  51.   //#   void SetNext(MLinkable* aLink) { fNext = aLink;}
  52.  
  53.   somf_MLinkable somfGetPrevious();
  54.  
  55.   // This method returns a pointer to the previous somf_MLinkable.
  56.   //#   MLinkable* GetPrevious() const { return fPrevious;}
  57.  
  58.   void somfSetPrevious(in somf_MLinkable aLink);
  59.  
  60.   // This method sets the pointer to the previous somf_MLinkable.
  61.   //#  void SetPrevious(MLinkable* aLink) { fPrevious = aLink;}
  62.  
  63.  
  64.  
  65. #ifdef __SOMIDL__
  66.   implementation {
  67.  
  68.     releaseorder: somfGetNext,somfSetNext,somfGetPrevious,somfSetPrevious,
  69.           somfMLinkableInit;
  70.  
  71.     //# Class Modifiers
  72.     majorversion = 2;
  73.     minorversion = 1;
  74.     filestem = mlink;
  75.     dllname = "somuc.dll";
  76.  
  77.  
  78.     //# Internal Instance Variables
  79.     somf_MLinkable fNext;
  80.     somf_MLinkable fPrevious;
  81.  
  82.     //# Method Modifiers
  83.     somInit: override;
  84.     somfMLinkableInit: nooverride;
  85.  
  86.     //# Data Modifiers
  87.  
  88.   };
  89. #endif /* __SOMIDL__ */
  90. };
  91.  
  92. #endif  /* MLink_idl */
  93.