home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Messaging / TempSI.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  830 b   |  46 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TempSI.cpp
  3.  
  4.     Contains:    Utility for exception-safe temporary reference to ODSemanticInterface
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>     6/22/95    jpa        first checked in
  13.  
  14.     Theory Of Operation:
  15.         See the utility TempObj.h.
  16. */
  17.  
  18. #ifndef _TEMPSI_
  19. #include "TempSI.h"
  20. #endif
  21.  
  22. #ifndef _USE_TEMPLATES_
  23.  
  24.     #ifdef __MWERKS__
  25.         // Make sure 'pragma once' mode is off so the .th files can be included
  26.         // more than once!
  27.         #pragma push
  28.         #pragma once off
  29.     #endif
  30.  
  31.     // Define the non-inline methods of the various template classes:
  32.  
  33.     #define _TMPL_IMPL_
  34.     
  35.     #define _T_        ODSemanticInterface
  36.     #define _C_        TempODSemanticInterface
  37.     #include "TempRef.th"
  38.  
  39.     #undef _TMPL_IMPL_
  40.  
  41.     #ifdef __MWERKS__
  42.         #pragma pop
  43.     #endif
  44.  
  45. #endif /*_USE_TEMPLATES_*/
  46.