home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / FWArOper.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  801 b   |  29 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWArOper.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWAROPER_H
  11. #include "FWArOper.h"
  12. #endif
  13.  
  14. #ifndef SOM_SOMObject_xh
  15. #include <somobj.xh>
  16. #endif
  17.  
  18. //----------------------------------------------------------------------------------------
  19. // FW_SomCast
  20. //----------------------------------------------------------------------------------------
  21.  
  22. SOMObject* FW_SomCast(SOMObject *object, SOMClass *className)
  23. {
  24.     FW_ASSERT(somIsObj(object));
  25.     FW_ASSERT(somIsObj(className));
  26.     return object->somIsA(className) ? object : 0;
  27. }
  28.  
  29.