home *** CD-ROM | disk | FTP | other *** search
- #ifndef __BUILDINGBLOCKSTEST__
- #define __BUILDINGBLOCKSTEST__
-
- #ifndef __IOSTREAM__
- #include "IOStream.h"
- #endif
-
- #ifndef __STRING__
- #include "String.h"
- #endif
-
- #ifndef __DEBUGFLAG__
- #include "DebugFlag.h"
- #endif
-
- #ifndef __DEBUGASSERT__
- #include "DebugAssert.h"
- #endif
-
- #ifndef __DEBUGCONSTANTS__
- #include "DebugConstants.h"
- #endif
-
- #ifndef __DEBUGGINGGEAR__
- #include "DebuggingGear.h"
- #endif
-
- #ifndef __DIRECTOBJECT__
- #include "DirectObject.h"
- #endif
-
- extern TDebugFlag chrisFlag;
-
- #define TEST_REPORT(F) chris << "#### " << #F << "\nFILE " << __FILE__ << "; LINE " << deco << __LINE__ << '\n'
-
- /*
- File: BuildingBlocksTest.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- class CLeakChecker : public TDirectObject
- {
- public: CLeakChecker ( ostream& );
- virtual ~CLeakChecker ();
-
- virtual void Remember ();
- virtual void ReportIfChanged ();
- long GetDelta () const;
-
- virtual ostream& operator >> ( ostream& s ) const;
-
- protected: unsigned long GetFreeBytes () const;
- private: ostream& fReportTo;
- unsigned long fRememberedFree;
- };
-
- /***********************************|****************************************/
-
- #endif // __BUILDINGBLOCKSTEST__
-