#pragma once #include "common.h" #include "LArray.h" enum EReqIDArrayPos { ReqIDArrayPos_0 = 0, ReqIDArrayPos_1 = 1, }; class AFX_EXT_CLASS T2RequestIDArray : private LArray { public: T2RequestIDArray(); virtual ~T2RequestIDArray(); void Init(const RECT&); unsigned int GetItemCount() const; void AllClear(); void Expand(EReqIDArrayPos, int); void SetRequestIDAt(int, ERequestUpDown, unsigned int); unsigned int GetRequestIDAt(int, ERequestUpDown) const; BOOL IsStopPosition(int) const; void RemoveRequest(T2TowerDoc*, int, ERequestUpDown); void Union(T2RequestIDArray*); void MoverIDChanged(T2FloorInfo*, unsigned int); void StopRemoved(T2TowerDoc*, int); void ModuleRemoved(T2TowerDoc*, unsigned int); static T2RequestIDArray* ReadReqIDArray(T2Archive&); static void WriteReqIDArray(T2RequestIDArray*, T2Archive&); private: int GetIndex(int, ERequestUpDown) const; };