// SecGemData.h: interface for the CSecGemData class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SECGEMDATA_H__A184C8FB_3A5B_4664_9E17_581493B50A87__INCLUDED_)
#define AFX_SECGEMDATA_H__A184C8FB_3A5B_4664_9E17_581493B50A87__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef  BUILD_MCCTRDLL
#define     MCCTRDLLCLASS   __declspec(dllexport)
#else
#define     MCCTRDLLCLASS   __declspec(dllimport)
#endif

class CSecGemVariable
{
public:
    int     m_iID, m_iFormat, m_iEvt;
    CString m_strSVIDValue;
};

enum
{
    WM_GET_LOT_VARIABLES = WM_USER + 3000,
    WM_GET_ALARM_TEXT,
    WM_CLEAR_SECGEM_ALARM,
};

class MCCTRDLLCLASS CSecGemData
{
public:
    CSecGemData();
    virtual ~CSecGemData();

//  get common real time variable
    bool GetCommonRealTimeVariable();

//  get lot secs gem variable
    bool GetLotSecsGemVariable();

//  get initial secs gem variable
    bool GetInitSecGemVariable();

//  get event secs gem variable
    bool GetEvtSecsGemVariable();

    static CSecGemVariable *m_LotSecGemVariable;
    static CSecGemVariable *m_InitialSecsGemVariable;
    static CSecGemVariable *m_CommonRealTimeSGVariable;
    static CSecGemVariable *m_EvtSecGemVariable;

    static int m_iNumOfLotVariables;
    static int m_iNumOfInitVariables;
    static int m_iNumOfCommonRealTimeVariables;
    static int m_iNumOfEvtVariables;

    static CString m_csAlarmText;

    static DWORD m_dwJamThreadId;
};

#endif // !defined(AFX_SECGEMDATA_H__A184C8FB_3A5B_4664_9E17_581493B50A87__INCLUDED_)
