#pragma once #include "common.h" #include "LArray.h" class AFX_EXT_CLASS T2RegistedTenantDB : private LArray { public: T2RegistedTenantDB(); virtual ~T2RegistedTenantDB(); void Init(T2TenantArrayList* tenantArrayList); void AddItem(T2Tenant* tenant); void RemoveItem(T2Tenant* tenant); T2EquipPtrList* GetList(unsigned int registID) const; T2Tenant* GetFirstTenant(unsigned int registID) const; T2Tenant* SearchToilet(const T2RouteNavigator*, POINT, int&) const; T2Tenant* FindEmptyParking() const; T2Tenant* FindHisParking(T2People*) const; };