summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MatterArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2MatterArray.h')
-rw-r--r--src/T2DLL/T2MatterArray.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/T2DLL/T2MatterArray.h b/src/T2DLL/T2MatterArray.h
index a7defaa..f19cc44 100644
--- a/src/T2DLL/T2MatterArray.h
+++ b/src/T2DLL/T2MatterArray.h
@@ -3,9 +3,11 @@
#include "T2Matter.h"
#include "T2ObjectArray.h"
-class DLL_EXPORT T2MatterArray : public T2ObjectArray {
+class AFX_EXT_CLASS T2MatterArray : public T2ObjectArray {
public:
- T2MatterArray(unsigned int jobType, unsigned int validRange, unsigned int startID);
+ enum { kGroupSize = 448 };
+
+ T2MatterArray(unsigned int jobType, unsigned int validRange, unsigned int startID);
virtual ~T2MatterArray() { }
void SetValidRange(unsigned int validRange);
@@ -13,11 +15,13 @@ public:
unsigned int GetJobType() { return mJobType; }
unsigned int GetValidRange() { return mValidRange; }
- unsigned int GetSpare() { return 448 - 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[448];
+ T2Matter mMatter[kGroupSize];
};