SDC C-Project CF Review 프로그램
LYW
2021-07-29 bd13fa3f9396f1f681759f4623c55d5f91d74a9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
 
#include <vector>
 
enum JudgeType_T8    { JudgeType_T8_None=0, JudgeType_T8_OK, JudgeType_T8_TR, JudgeType_T8_PR,/*, JudgeType_T8_BR, JudgeType_T8_PT,*/ JudgeType_T8_Count };
 
class AFX_EXT_CLASS CRcpJudgeInfo
{
public:
    CRcpJudgeInfo(void);
    virtual ~CRcpJudgeInfo(void);
 
public:
    void Reset(void);
 
    // setter
    void    SetJudgeType(int nType)                { m_nJudgeType1 = nType; }
    void    SetJudgeCount(int nCount)            { m_nJudgeCount1 = nCount; }
    void    SetSubJudgeType(int nType)            { m_nJudgeType2 = nType; }
    void    SetSubJudgeCount(int nCount)        { m_nJudgeCount2 = nCount; }
    void    SetReJudgeType(int nType)            { m_nReJudgeType = nType; }
    void    SetReJudgeCode(CString strCode)        { m_strReJudgeCode.Format(_T("%s"), strCode); }
 
    // getter
    int        GetJudgeType() const                { return m_nJudgeType1; }
    int        GetJudgeCount() const                { return m_nJudgeCount1; }
    int        GetSubJudgeType() const                { return m_nJudgeType2; }
    int        GetSubJudgeCount() const            { return m_nJudgeCount2; }
    int        GetReJudgeType() const                { return m_nReJudgeType; }
    CString    GetReJudgeCode() const                { return m_strReJudgeCode; }
 
public:
    int            m_nJudgeType1;
    int            m_nJudgeCount1;
    int            m_nJudgeType2;
    int            m_nJudgeCount2;
    int            m_nReJudgeType;
    CString        m_strReJudgeCode;
};
typedef std::vector<CRcpJudgeInfo>                    VectorRcpJudgeInfo;
typedef std::vector<CRcpJudgeInfo>::iterator        VectorRcpJudgeInfoIt;
typedef std::vector<CRcpJudgeInfo>::const_iterator    constVectorRcpJudgeInfoIt;