#ifndef T2DLL_T2TENANTARRAY_H #define T2DLL_T2TENANTARRAY_H #include "../common.h" #include "T2ObjectArray.h" class AFX_CLASS_EXPORT T2TenantArray : public T2ObjectArray { public: enum { kGroupSize = 128 }; T2TenantArray(unsigned int startID = 1000); virtual ~T2TenantArray(); virtual void DispatchIdle(T2TowerDoc*, int); T2Tenant* FindUnusedTenant(); int CalcMentenanceCost(T2TowerDoc*) const; void TenantRemoved(unsigned int); T2Tenant* GetTenantByPID(DWORD); void BreakoutEmergency(T2TowerDoc*); void RecoverRelatedTenantList(T2RegistedTenantDB*); void Read(T2Archive&, T2TowerDoc*); void Write(T2Archive&); T2Tenant* GetIndexTenant(int i) { return &mTenants[i]; } protected: friend class T2TenantArrayList; friend class T2TowerDoc; friend class T2TowerMainView; T2Tenant *mTenants; }; #endif