#pragma once
|
|
#include <vector>
|
|
enum ReviewPlanType { REVIEW_PLAN_DEFECT = 0, REVIEW_PLAN_USER, REVIEW_PLAN_WSI, REVIEW_PLAN_MEASURE, REVIEW_PLAN_REFLOW, REVIEW_PLAN_WSI_REFLOW ,REVIEW_PLAN_WSI_USER, REVIEW_PLAN_WSI_MultiShot,REVIEW_PLAN_TYPE_COUNT };
|
|
class AFX_EXT_CLASS CRcpPlanInfo
|
{
|
public:
|
CRcpPlanInfo(void);
|
virtual ~CRcpPlanInfo(void);
|
void operator=(const CRcpPlanInfo& rhs);
|
|
public:
|
void Reset();
|
void SetInfo(const CRcpPlanInfo& rhs);
|
void GetInfo(CRcpPlanInfo& rhs);
|
|
int GetReviewType() const { return m_nReviewType; }
|
BOOL GetSelectSlot(int nIndex) const { return (nIndex>=TOTAL_GLASS_SLOT_COUNT) ? FALSE: m_bSelectSlot[nIndex]; }
|
|
public:
|
int m_nReviewType;
|
BOOL m_bSelectSlot[TOTAL_GLASS_SLOT_COUNT];
|
|
protected:
|
|
};
|
typedef std::vector<CRcpPlanInfo> VectorRcpPlanInfo;
|
typedef std::vector<CRcpPlanInfo>::iterator VectorRcpPlanInfoIt;
|
|
inline void CRcpPlanInfo::operator=(const CRcpPlanInfo& rhs)
|
{
|
if (this != &rhs)
|
{
|
m_nReviewType = rhs.m_nReviewType;
|
memcpy(m_bSelectSlot, rhs.m_bSelectSlot, sizeof(BOOL) * TOTAL_GLASS_SLOT_COUNT);
|
}
|
}
|