#pragma once #include "common.h" #include "T2Matter.h" #include "T2ObjectArray.h" class AFX_EXT_CLASS T2MatterArray : public T2ObjectArray { public: enum { kGroupSize = 448 }; T2MatterArray(unsigned int jobType, unsigned int validRange, unsigned int startID); virtual ~T2MatterArray() { } void SetValidRange(unsigned int validRange); T2Matter* FindUnusedMatter(unsigned int); unsigned int GetJobType() { return mJobType; } unsigned int GetValidRange() { return mValidRange; } unsigned int GetSpare() { return kGroupSize - mValidRange; } T2Matter* GetIndexMatter(int i) { return &mMatter[i]; } protected: friend class T2MatterArrayList; unsigned int mJobType; unsigned int mValidRange; T2Matter mMatter[kGroupSize]; };