From a6552335164ce062567b76aa7d097fd046129474 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 금, 23 7월 2021 10:07:55 +0900 Subject: [PATCH] Ongoing90 #3517 CF AOI Review 자가진단 기능 개선 --- DitGlassRawMessenger/Extern/DitGlassRawClient.cpp | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/DitGlassRawMessenger/Extern/DitGlassRawClient.cpp b/DitGlassRawMessenger/Extern/DitGlassRawClient.cpp index d72362f..e6a5eb9 100644 --- a/DitGlassRawMessenger/Extern/DitGlassRawClient.cpp +++ b/DitGlassRawMessenger/Extern/DitGlassRawClient.cpp @@ -6,11 +6,16 @@ { m_hMapBasicInfo = NULL; m_hMapGlassData = NULL; - + m_pDitGlassClient =NULL; m_pGlassRawInfo = NULL; m_pGlassRawData = NULL; m_nLastCommandIdx = -1; + + m_pGlassData = NULL; + m_pBlockData = NULL; + m_pCellData = NULL; + m_pDefectData = NULL; } CDitGlassRawClient::~CDitGlassRawClient(void) @@ -100,6 +105,7 @@ m_pCellData = (_grmCellData*)&m_pGlassRawData[m_pGlassRawInfo->m_nCellDataPoint]; m_pDefectData = (_grmDefectData*)&m_pGlassRawData[m_pGlassRawInfo->m_nDefectDataPoint]; m_pStackData = (_grmDefectData*)&m_pGlassRawData[m_pGlassRawInfo->m_nStackDataPoint]; + m_pRawMergeData = (_grmDefectData*)&m_pGlassRawData[m_pGlassRawInfo->m_nRawMergeDataPoint]; return TRUE; } @@ -117,6 +123,11 @@ BOOL CDitGlassRawClient::ReadAOIRawBinFile() { return SetCommand(grcReadBin); +} + +BOOL CDitGlassRawClient::WriteReviewRawBinFile() +{ + return SetCommand(grcReviewWriteBIn); } BOOL CDitGlassRawClient::SetCommand( emGlassRawCommand nCmd ) @@ -161,6 +172,7 @@ if(isConnect() == FALSE) return FALSE; m_pGlassRawInfo->m_ClientProcStep = APS_GlassLoading; m_pGlassData->m_bStackRead = FALSE; + m_pGlassData->m_bRawMergeRead = FALSE; return SetCommand(grcSequenceGlassLoading); } @@ -192,6 +204,16 @@ return SetCommand(grcSequenceCustomReviewDataRead); } +CDitGlassRawClient* CDitGlassRawClient::GetInstance() +{ + if(m_pDitGlassClient == NULL) + { + m_pDitGlassClient = new CDitGlassRawClient; + } + + return m_pDitGlassClient; +} + void CDitGlassRawClient::RemoveReviewDefects() { int nDefectNum = m_pGlassData->m_nDefectNum; @@ -216,3 +238,5 @@ m_pGlassData->m_nDefectNum = nDefectNum-nDefectDeleteNum; } + +CDitGlassRawClient* CDitGlassRawClient::m_pDitGlassClient; \ No newline at end of file -- Gitblit v1.9.3