home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / oath.lha / oath / src / obj.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-29  |  1.6 KB  |  53 lines

  1. //***************************************************************************
  2. //             OATH :: Object-oriented Abstract Type Hierarchy
  3. //***************************************************************************
  4. //
  5. //  Copyright (C) 1991, 1990  Texas Instruments Incorporated
  6. //  Permission is granted to any individual or institution
  7. //  to use, copy, modify, and distribute this software,
  8. //  provided that this complete copyright and permission notice
  9. //  is maintained, intact, in all copies and supporting documentation.
  10. //
  11. //  Texas Instruments Incorporated provides this software "as is"
  12. //  without express or implied warranty.
  13. //
  14. //***************************************************************************
  15. //  obj (objA, objG)
  16. //
  17. //  History:
  18. //    07/91  Brian M Kennedy  import & utility fns: callSelf, callMakeCopy
  19. //    06/91  Brian M Kennedy  New macros & format; remove printDiagnostic
  20. //    10/90  Brian M Kennedy  Major Rewrite
  21. //    02/90  Brian M Kennedy  Original
  22. //
  23. //***************************************************************************
  24.  
  25. #include "copyright.h"
  26.  
  27. #include <oath/obj.h>
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // obj Outlines
  31.  
  32. OUTLINES(obj, oathCore)
  33.  
  34.     objA objG::
  35. import (importP&)
  36.    {ensure(FALSE, "throw: badImportData");
  37.     return objA::Nil;
  38.    }
  39.  
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // Utility functions
  43.  
  44.     objA
  45. callSelf (objA O)
  46.    {return O.self();}
  47.  
  48.     objA
  49. callMakeCopy (objA O)
  50.    {return O.makeCopy();}
  51.  
  52. //***************************************************************************
  53.