home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Includes / XAutoReleasePool.hh < prev    next >
Encoding:
Text File  |  2000-06-24  |  291 b   |  17 lines

  1. /* XAutoReleasePool.hh */
  2.  
  3. #pragma once
  4.  
  5. #include "XObject.hh"
  6. #include "XList.hh"
  7.  
  8. class XAutoReleasePool : virtual public XObject {
  9. public:
  10.     virtual void Add(XObject *inObject) {
  11.         if (inObject) mList.Append(inObject);
  12.     }
  13.     virtual void Flush() {mList.Purge();}
  14. protected:
  15.     XList mList;
  16. };
  17.