home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / utils / iodlink.idl < prev    next >
Text File  |  1997-04-02  |  3KB  |  144 lines

  1. //# @(#) 1.2 com/src/samples/utils/iodlink.idl, odutilspart, od96os2, odos29712d 10/1/96 09:45:22 [ 3/21/97 17:48:03 ]
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odsamples
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28.  
  29. #ifndef _IODLinkedList_
  30. #define _IODLinkedList_
  31.  
  32. #ifndef _ODOBJECT_
  33. #include "ODObject.idl"
  34. #endif
  35.  
  36.  
  37. //==============================================================================
  38. // Classes defined in this interface
  39. //==============================================================================
  40.  
  41. interface IODLink;
  42. interface IODLinkedList;
  43.  
  44. //==============================================================================
  45. // typedefs
  46. //==============================================================================
  47.  
  48. //==============================================================================
  49. // IODLink
  50. //==============================================================================
  51.  
  52.  
  53. interface IODLink :  ODObject
  54. {
  55.  
  56.  
  57.   ODPtr Content ();
  58.  
  59.   IODLink Next();
  60.  
  61. #ifdef __PRIVATE__
  62.  
  63.   void  setContent(in ODPtr content);
  64.  
  65.   void  setNext   (in IODLink next);
  66.  
  67. #endif
  68.  
  69. #ifdef __SOMIDL__
  70.   implementation
  71.   {
  72.      majorversion = 1; minorversion = 0;
  73.      functionprefix = IODLink;
  74.  
  75.      override:
  76.         somInit,
  77.         somUninit;
  78.  
  79.      releaseorder:
  80.         Content,
  81.         Next,
  82. #ifdef __PRIVATE__
  83.         setContent,
  84.         setNext;
  85. #else
  86.         dummy2,
  87.         dummy1;
  88. #endif
  89.  
  90.         ODPtr fContent;
  91.         IODLink fNext;
  92.  
  93.   };
  94. #endif //# __SOMIDL__
  95. };
  96.  
  97.  
  98. interface IODLinkedList :  ODObject
  99. {
  100.   IODLink First ();
  101.  
  102.   void AddFirst (in ODPtr content);
  103.  
  104.   void AddLast (in ODPtr content);
  105.  
  106.   void Remove (in ODPtr content);
  107.  
  108.   void RemoveAll ();
  109.  
  110.   ODBoolean Contains (in ODPtr content);
  111.  
  112.   ODULong Count ();
  113.  
  114.  
  115. #ifdef __SOMIDL__
  116.   implementation
  117.   {
  118.      majorversion = 1; minorversion = 0;
  119.      functionprefix = IODLinkedList;
  120.  
  121.      override:
  122.         somInit,
  123.         somUninit;
  124.  
  125.      releaseorder:
  126.         First,
  127.         AddFirst,
  128.         AddLast,
  129.         Remove,
  130.         RemoveAll,
  131.         Contains,
  132.         Count;
  133.  
  134.         IODLink fRoot;
  135.  
  136.   };
  137. #endif //# __SOMIDL__
  138. };
  139.  
  140.  
  141.  
  142. #endif // _IODLinkedList_ (end of file)
  143.  
  144.