#pragma once #include "common.h" #include "LArray.h" class AFX_CLASS_EXPORT T2TenantArrayList : public LArray { public: T2TenantArrayList(); virtual ~T2TenantArrayList(); void Add(T2TenantArray*); unsigned int GetItemCount(); T2TenantArray* GetItemAt(int); T2Tenant* GetTenantByID(unsigned int); T2Tenant* GetTenantByPID(DWORD); T2Tenant* FindUnusedTenant(); void DispatchIdle(T2TowerDoc*); void TenantRemoved(unsigned int); void BreakoutEmergency(T2TowerDoc*); int CalcMentenanceCost(T2TowerDoc*) const; LArray* MakeTenantList(int type); LArray* MakeTenantList(BOOL (*func) (const T2Tenant*)); void Read(T2Archive&, T2TowerDoc*); void Write(T2Archive&); void RecoverRelatedTenantList(T2RegistedTenantDB*); protected: int mCounter; };