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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
 
#include <vector>
 
typedef std::vector<CString>                    VectorString;
typedef std::vector<CString>::iterator            VectorStringIt;
typedef std::vector<CString>::const_iterator    constVectorStringIt;
 
typedef std::vector<int>                        VectorInt;
typedef std::vector<int>::iterator                VectorIntIt;
typedef std::vector<int>::const_iterator        constVectorIntIt;
 
enum RcpZoneData        { RCP_ZONE_DATA_PIXEL=0,  RCP_ZONE_DATA_CS, RCP_ZONE_DATA_RED, RCP_ZONE_DATA_GREEN,RCP_ZONE_DATA_BLUE, RCP_ZONE_DATA_COUNT };
enum RcpZoneIndex        { RCP_ZONE_INDEX_Z0=0,  RCP_ZONE_INDEX_Z1, RCP_ZONE_INDEX_Z2, RCP_ZONE_INDEX_Z3, RCP_ZONE_INDEX_Z4, RCP_ZONE_INDEX_Z5,
                        RCP_ZONE_INDEX_Z6, RCP_ZONE_INDEX_Z7, RCP_ZONE_INDEX_Z8, RCP_ZONE_INDEX_Z9, RCP_ZONE_INDEX_Z10, RCP_ZONE_INDEX_Z11,
                        RCP_ZONE_INDEX_Z12, RCP_ZONE_INDEX_Z13, RCP_ZONE_INDEX_Z14, RCP_ZONE_INDEX_Z15, RCP_ZONE_INDEX_COUNT };
 
class AFX_EXT_CLASS CRcpZoneInfo
{
public:
    CRcpZoneInfo(void);
    CRcpZoneInfo(int nType);
    virtual ~CRcpZoneInfo(void);
 
public:
    void Reset(int nType);
    void SetInfo(const CRcpZoneInfo& rhs);
    void GetInfo(CRcpZoneInfo& rhs);
 
    // setter
    void            SetZoneType(int nType)                        { m_nZoneType = nType; }
    void            SetZoneString(const CString& strString);
    void            SetZoneVecString();
 
    // getter
    int                GetZoneType() const                { return m_nZoneType; }
    CString            GetZoneString() const            { return m_strZoneString; }
    VectorString    GetVecZoneString() const        { return m_vecZoneString; }
    VectorInt        GetVecZoneNumber() const        { return m_vecZoneNumber; }
 
protected:
    int                GetZoneNumber(const CString& strZone);
 
public:
    int                m_nZoneType;
    CString            m_strZoneString;
    VectorString    m_vecZoneString;
    VectorInt        m_vecZoneNumber;
};
typedef std::vector<CRcpZoneInfo>                    VectorRcpZoneInfo;
typedef std::vector<CRcpZoneInfo>::iterator            VectorRcpZoneInfoIt;
typedef std::vector<CRcpZoneInfo>::const_iterator    constVectorRcpZoneInfoIt;