blob: 27e37f5634fb806156f7a0b7bd2b26f063e90f3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef T2DLL_T2TENANTARRAYLIST_H
#define T2DLL_T2TENANTARRAYLIST_H
#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;
};
#endif
|