SDC C-Project CF Review 프로그램
LYW
2021-08-10 ebfd7a15f5c7fe5d4cf9120a49b21f3cffd050f7
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
#pragma once
 
enum RcpSortingType            { RCP_SORT_TYPE_SIZE=0, RCP_SORT_TYPE_PEAK, RCP_SORT_TYPE_COUNT };
enum RcpSortingData_Order    { RCP_SORT_DATA_ORDER_DECEND=0, RCP_SORT_DATA_ORDER_ASCEND, RCP_SORT_DATA_ORDER_COUNT };
enum RcpSortingPriority        { RCP_SORT_PRIORITY_NONE=0, RCP_SORT_PRIORITY_CIRCLE, RCP_SORT_PRIORITY_SCRATCH,RCP_SORT_PRIORITY_DENT, RCP_SORT_PRIORITY_PROTRUSION, RCP_SORT_PRIORITY_BUBBLE,  RCP_SORT_PRIORITY_COUNT };
 
const CString strSortingPriority[RCP_SORT_PRIORITY_COUNT] = {_T("NONE"), _T("TFE"), _T("SCR"), _T("MHD"), _T("MHP"), _T("BL")};
const CString strSortingPriorityText[RCP_SORT_PRIORITY_COUNT] = {_T("NONE"), _T("CIRCLE"), _T("SCRATCH"), _T("DENT"), _T("PROTRUSION"), _T("BUBBLE")};
 
class AFX_EXT_CLASS CRcpSortingInfo
{
public:
    CRcpSortingInfo(void);
    virtual ~CRcpSortingInfo(void);
 
public:
    void Reset();
 
    // getter
    void        GetInfo(CRcpSortingInfo& rhs);
    int            GetSortingType() const                    { return m_nSortType; }
    int            GetSortingData() const                    { return m_nSortData; }
    int            GetSortingPriority() const                { return m_nSortPriority; }
 
    // setter
    void        SetInfo(const CRcpSortingInfo& rhs);
    void        SetSortingType(int nType)                 { m_nSortType = nType; }
    void        SetSortingData(int nData)                 { m_nSortData = nData; }
    void        SetSortingPriority(int nPriority)         { m_nSortPriority = nPriority; }
public:
    int        m_nSortType;
    int        m_nSortData;
    int        m_nSortPriority;
};