#ifndef T2DLL_T2MATTERARRAY_H #define T2DLL_T2MATTERARRAY_H #include "../common.h" #include "T2Matter.h" #include "T2ObjectArray.h" class AFX_CLASS_EXPORT 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]; }; #endif