SDC C-Project CF Review 프로그램
LYW
2022-05-31 f1a543772246f59b8b52a8857270b38ee38f3588
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
#pragma once
 
#include "Serial.h"
#include "VcrControl.h"
 
class AFX_EXT_CLASS CVcrControl_WinforSys_CodeImage : public CVcrControl, public CSerial
{
public:
    CVcrControl_WinforSys_CodeImage(int nIndex);
    virtual ~CVcrControl_WinforSys_CodeImage(void);
 
    virtual BOOL Connect(const CVcrControlInfo& controlInfo);
    virtual void Disconnect();
 
    virtual BOOL GetLightLevel(int &nValue, int nChannel = 0) const;
    virtual BOOL GetLightLevel(double &dValue, int nChannel = 0) const;
    virtual BOOL GetLightStatus(int &nValue, int nChannel = 0) const;
 
    virtual BOOL SetLightLevel(int nValue, int nChannel = 0);
    virtual BOOL SetLightLevel(double dValue, int nChannel = 0);
    virtual BOOL SetLightStatus(int nValue, int nChannel = 0);
 
    virtual BOOL SetLightOn();
    virtual BOOL SetLightOff();
 
protected:
    int m_nCurrentValue;
    int    m_nCurrentStatus;
};