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 / Developer University / DU Projects / DataSave / Sources / Pizza.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.0 KB  |  38 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995-96 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ ODF 2 $
  3.  
  4. #ifndef PIZZA_H
  5. #define PIZZA_H
  6.  
  7. //==========================================================================
  8. // ----- Foundation Layer -----
  9. #ifndef FWRUNTYP_H
  10. #include "FWRunTyp.h"
  11. #endif
  12.  
  13. //==========================================================================
  14. class FW_CRect;
  15.  
  16. //==========================================================================
  17. class CPizza {
  18. public:
  19.     FW_DECLARE_CLASS
  20.                         CPizza(FW_CRect bounds);
  21.     virtual                ~CPizza();
  22.     virtual void        Draw(FW_CGraphicContext& gc);
  23.     FW_CRect            GetBounds();
  24. // Persistence members
  25.     static void*         Read(FW_CReadableStream& stream, 
  26.                                 FW_ClassTypeConstant type);
  27.     static void         Write(FW_CWritableStream& stream, 
  28.                                 FW_ClassTypeConstant type, 
  29.                                 const void *object);
  30. protected:
  31.                         CPizza(FW_CReadableStream& stream);
  32.     virtual void         Flatten(FW_CWritableStream& stream);
  33. private:
  34.     FW_CRect            fBounds;
  35. };
  36.  
  37. //==========================================================================
  38. #endif