SDC C-Project CF Review 프로그램
LYW
2022-07-05 63439977901d54a01924ed76290931aeddbce66c
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
 
typedef std::vector<BOOL> VectorBOOL;
 
struct SConnectInfo
{
    SConnectInfo() 
    {
        bConnected = FALSE;
        strConnectInfo = _T("");
    }
 
    BOOL    bConnected;
    CString    strConnectInfo;
 
};
typedef std::vector<SConnectInfo>            VectorConnectInfo;
typedef std::vector<SConnectInfo>::iterator    VectorConnectInfoIt;
 
class CConnectionStatus
{
public:
    CConnectionStatus(void);
    virtual ~CConnectionStatus(void);
 
    void Reset();
 
    void ResizeReviewCameraStatus(int nSize);
    void ResizeReviewLightStatus(int nSize);
    void ResizeReviewRevolverStatus(int nSize);
    void ResizeReviewAFMStatus(int nSize);
 
    void ResizeAlignCameraStatus(int nSize);
    void ResizeAlignLightStatus(int nSize);
    void ResizeVCRStatus(int nSize);                // [2017:02:01]-[WEZASW] : VCR Control 추가
    
    void AddReviewCameraStatus(BOOL bValue)            { m_vecReviewCameraStatus.push_back(bValue); }
    void AddReviewLightStatus(BOOL bValue)            { m_vecReviewLightStatus.push_back(bValue); }
    void AddReviewRevolverStatus(BOOL bValue)        { m_vecReviewRevolverStatus.push_back(bValue); }
    void AddReviewAFMStatus(BOOL bValue)            { m_vecReviewAFMStatus.push_back(bValue); }
 
    void AddAlignCameraStatus(BOOL bValue)            { m_vecAlignCameraStatus.push_back(bValue); }
    void AddAlignLIghtStatus(BOOL bValue)            { m_vecAlignLightStatus.push_back(bValue); }
    void AddVCRStatus(BOOL bValue)                    { m_vecVCRStatus.push_back(bValue);    }                // [2017:02:01]-[WEZASW] : VCR Control 추가
    
public:
    BOOL        m_bSignalStatus;
    BOOL        m_bMotorStatus;
    BOOL        m_bAFMStatus;
    BOOL        m_bVCRStatus;
 
    VectorBOOL    m_vecSignalStatus;
    VectorBOOL    m_vecMotorStatus;
    VectorBOOL    m_vecAFMStatus;
 
    VectorBOOL    m_vecReviewCameraStatus;
    VectorBOOL    m_vecReviewLightStatus;
    VectorBOOL    m_vecReviewRevolverStatus;
    VectorBOOL    m_vecReviewAFMStatus;
    VectorBOOL    m_vecAlignCameraStatus;
    VectorBOOL    m_vecAlignLightStatus;
    VectorBOOL    m_vecVCRStatus;                // [2017:02:01]-[WEZASW] : VCR Control 추가
};
 
interface IUpdateConnectionStatus
{
    virtual void    UpdateConnectionStatus(const CConnectionStatus* pConnectionStatus) = 0;
};
typedef std::vector<IUpdateConnectionStatus*>                ObserverUpdateConnectionStatus;
typedef std::vector<IUpdateConnectionStatus*>::iterator        ObserverUpdateConnectionStatusIt;