home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / LinkItr.cpp < prev    next >
C/C++ Source or Header  |  1997-03-21  |  6KB  |  159 lines

  1. /* @(#) 1.11 com/src/storage/LinkItr.cpp, oddataxfer, od96os2, odos29712d 10/31/96 07:56:24 [3/21/97 17:18:54] */
  2. //====START_GENERATED_PROLOG======================================
  3. //
  4. //
  5. //   COMPONENT_NAME: oddataxfer
  6. //
  7. //   CLASSES: none
  8. //
  9. //   ORIGINS: 82,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. /*
  30.         File:           LinkItr.cpp
  31.  
  32.         Contains:       Implementation of class ODLinkIterator
  33.  
  34.         Owned by:       Craig Carper
  35.  
  36.         Copyright:      ⌐ 1994, 1995 by Apple Computer, Inc., all rights reserved.
  37.  
  38.         Change History (most recent first):
  39.  
  40.                  <6>    6/25/96         DJ              23458: Enable compile on AIX platform
  41.                  <5>      8/3/95        RR              #1257260: Collapse B classes. Remove
  42.                                                                         somInit methods. Don't call IsInitialized
  43.                                                                         or SubclassResponsibility
  44.                  <4>     5/26/95        VL              1251403: Multithreading naming support.
  45.                  <3>     5/18/95        CC              1249197: Renamed InitODLinkIterator to
  46.                                                                         InitLinkIterator.
  47.                  <2>     4/11/95        CC              1236452: Added SOM_CATCH to
  48.                                                                         InitODLinkIterator.
  49.                                                                         Changed parent method calls from verbose to
  50.                                                                         simple form (parent_method).
  51.                  <1>     8/11/94        CC              first checked in
  52.  
  53.         To Do:
  54. */
  55.  
  56. #define VARIABLE_MACROS
  57.  
  58. #define ODLinkIterator_Class_Source
  59. #include <LinkItr.xih>
  60.  
  61. #ifndef SOM_ODObject_xh
  62. #include <ODObject.xh>
  63. #endif
  64.  
  65. #ifndef _PLATFORM_OS2_
  66. #pragma segment ODLinkIterator
  67. #endif
  68.  
  69. #ifndef _ODDEBUG_
  70. #include <ODDebug.h>
  71. #endif
  72.  
  73. //==============================================================================
  74. // ODLinkIterator
  75. //==============================================================================
  76.  
  77. //------------------------------------------------------------------------------
  78. // ODLinkIterator: somUninit
  79. //------------------------------------------------------------------------------
  80.  
  81. SOM_Scope void  SOMLINK ODLinkIteratorsomUninit(ODLinkIterator *somSelf)
  82. {
  83.     /* ODLinkIteratorData *somThis = ODLinkIteratorGetData(somSelf); */
  84.     ODLinkIteratorMethodDebug("ODLinkIterator","somUninit");
  85.  
  86.     parent_somUninit(somSelf);
  87. }
  88.  
  89. //------------------------------------------------------------------------------
  90. // ODLinkIterator: InitLinkIterator
  91. //------------------------------------------------------------------------------
  92.  
  93. SOM_Scope void  SOMLINK ODLinkIteratorInitLinkIterator(ODLinkIterator *somSelf, Environment *ev)
  94. {
  95.     /* ODLinkIteratorData *somThis = ODLinkIteratorGetData(somSelf); */
  96.     ODLinkIteratorMethodDebug("ODLinkIterator","InitLinkIterator");
  97.  
  98. #ifdef _PLATFORM_MACINTOSH_
  99.         SOM_CATCH return;
  100. #endif
  101. #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  102.         SOM_TRY
  103. #endif
  104.  
  105.         somSelf->InitObject(ev);
  106.  
  107. #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  108.         SOM_CATCH_ALL
  109.  
  110.         SOM_ENDTRY
  111.           return;
  112. #endif
  113. }
  114.  
  115. //------------------------------------------------------------------------------
  116. // ODLinkIterator: IsNotComplete
  117. //------------------------------------------------------------------------------
  118.  
  119. SOM_Scope ODBoolean  SOMLINK ODLinkIteratorIsNotComplete(ODLinkIterator *somSelf, Environment *ev)
  120. {
  121.     /* ODLinkIteratorData *somThis = ODLinkIteratorGetData(somSelf); */
  122.     ODLinkIteratorMethodDebug("ODLinkIterator","IsNotComplete");
  123.  
  124.         WARNMSG_DEBUG(WARN_INDEX(-1),"A subclass should have overridden this method!");
  125.         ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  126.  
  127.         return kODFalse;
  128. }
  129.  
  130. //------------------------------------------------------------------------------
  131. // ODLinkIterator: First
  132. //------------------------------------------------------------------------------
  133.  
  134. SOM_Scope ODLink*  SOMLINK ODLinkIteratorFirst(ODLinkIterator *somSelf, Environment *ev)
  135. {
  136.     /* ODLinkIteratorData *somThis = ODLinkIteratorGetData(somSelf); */
  137.     ODLinkIteratorMethodDebug("ODLinkIterator","First");
  138.  
  139.         WARNMSG_DEBUG(WARN_INDEX(-1),"A subclass should have overridden this method!");
  140.         ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  141.  
  142.         return kODNULL;
  143. }
  144.  
  145. //------------------------------------------------------------------------------
  146. // ODLinkIterator: Next
  147. //------------------------------------------------------------------------------
  148.  
  149. SOM_Scope ODLink*  SOMLINK ODLinkIteratorNext(ODLinkIterator *somSelf, Environment *ev)
  150. {
  151.     /* ODLinkIteratorData *somThis = ODLinkIteratorGetData(somSelf); */
  152.     ODLinkIteratorMethodDebug("ODLinkIterator","Next");
  153.  
  154.         WARNMSG_DEBUG(WARN_INDEX(-1),"A subclass should have overridden this method!");
  155.         ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  156.  
  157.         return kODNULL;
  158. }
  159.