/////////////////////////////////////////////////////////////////////////// // NAME: MemoryManager.h // FUNCTION: Header file // DESCRIPTION: Interface for the CMemoryManager class // REFERENCE: none // CALLING SEQUENCE: none // INPUTS: none // OUTPUTS: none // DEPENDENCIES: none // RESTRICTIONS: none // HISTORY: none ////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MEMORYMANAGER_H_6CDF3B45_8C8A_4CDD_98AF_6348D92CABB6_INCLUDED) #define AFX_MEMORYMANAGER_H_6CDF3B45_8C8A_4CDD_98AF_6348D92CABB6_INCLUDED #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include #include #include #include "hdf.h" class CMemoryManager { public: void show(); CMemoryManager(char *objName); virtual ~CMemoryManager(); VOIDP allocate(int Bytes, int32 ArraySize, char *name); void freeAllPointers(); private: char *m_objName; int m_pointers; long m_totalBytesAllocated; VOIDP m_pPointers[500]; }; #endif // !defined(AFX_MEMORYMANAGER_H_6CDF3B45_8C8A_4CDD_98AF_6348D92CABB6_INCLUDED)