home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Pict2Ascii 1.03 / Utils / GWorldSaver.h < prev    next >
Encoding:
Text File  |  1997-05-19  |  475 b   |  19 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    GWorldSaver.h                            1997 BB's Team inc. All rights reserved
  3. // =================================================================================
  4.  
  5. class GWorldSaver {
  6. public:
  7.     GWorldSaver (GWorldPtr gw) {
  8.         ::GetGWorld (&savePort, &saveDevice);
  9.         ::SetGWorld (gw, nil);
  10.     }
  11.     ~GWorldSaver () {
  12.         ::SetGWorld (savePort, saveDevice);
  13.     }
  14.  
  15. private:
  16.     CGrafPtr    savePort;
  17.     GDHandle    saveDevice;
  18. };
  19.