#pragma once #include "common.h" class AFX_CLASS_EXPORT T2TenantMemberDef { public: T2TenantMemberDef(); virtual ~T2TenantMemberDef(); void Initialize(CResFile*, float); int GetDemandType() const; int GetStartSilhouetteType() const; int GetEndSilhouetteType() const; int GetOptionType() const; unsigned int GetNumOfPeople() const; void SetNumOfPeople(unsigned int v); float GetRate() const; void SetRate(float v); void GetName(CString& outStr) const; unsigned int GetPercent() const; void SetPercent(unsigned int v); protected: char mName[16]; int mDemandType; int mStartSilhouetteType; int mEndSilhouetteType; int mOptionType; unsigned int mPercent; unsigned int mNumOfPeople; float mRate; }; inline int T2TenantMemberDef::GetDemandType() const { return mDemandType; } inline int T2TenantMemberDef::GetStartSilhouetteType() const { return mStartSilhouetteType; } inline int T2TenantMemberDef::GetEndSilhouetteType() const { return mEndSilhouetteType; } inline int T2TenantMemberDef::GetOptionType() const { return mOptionType; } inline unsigned int T2TenantMemberDef::GetNumOfPeople() const { return mNumOfPeople; } inline void T2TenantMemberDef::SetNumOfPeople(unsigned int v) { mNumOfPeople = v; } inline float T2TenantMemberDef::GetRate() const { return mRate; } inline void T2TenantMemberDef::SetRate(float v) { mRate = v; } inline void T2TenantMemberDef::GetName(CString& outStr) const { outStr = mName; } inline unsigned int T2TenantMemberDef::GetPercent() const { return mPercent; } inline void T2TenantMemberDef::SetPercent(unsigned int v) { mPercent = v; }