SDC C-Project CF Review 프로그램
LYW
2021-06-09 754fa0614469b76fcd789a4f50f9bee59aa09e9b
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
#pragma once
#include "CHLightControls/lightcontrol.h"
#include "MVXLC/devicemanagerudp.h"
#include "MVXLC/mvxlctcp.h"
 
using namespace mvsol;
 
class AFX_EXT_CLASS CLightControl_MVSol_TCP :    public CLightControl
{
public:
    CLightControl_MVSol_TCP(int nIndex);
    virtual ~CLightControl_MVSol_TCP(void);
 
    //virtual BOOL Connect(const CLightControlInfo& controlInfo); //¹º°¡ ÀÌ»óÇØ¼­ ÁÖ¼®
    virtual LONG ConnectEx(const CLightControlInfo& controlInfo);
    virtual void Disconnect();
    virtual void DisconnectEx();
 
    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 SetAllLightLevel(int nValue) { return TRUE; }
 
    virtual BOOL SetLightOn();
    virtual BOOL SetLightOff();
 
    virtual BOOL SetLightOn(int nChannel = 0);
    virtual BOOL SetLightOff(int nChannel = 0);
 
    virtual BOOL SetLightAllOn();
    virtual BOOL SetLightAllOff();
 
    // get status
    virtual int GetStatus( int& nStatusCode, CString& strStatusMessage );
 
 
protected:
    DeviceManagerUdp*    m_pConnectorUdp;
    MvxlcTcp*            m_pConnectorTcp;
};