| | |
| | | { |
| | | if(this != &rhs) |
| | | { |
| | | int iLoop; |
| | | int iLoop; |
| | | |
| | | Reset(); |
| | | m_nLightCount_Trans = rhs.m_nLightCount_Trans; |
| | |
| | | |
| | | m_strMachineName = rhs.m_strMachineName; |
| | | m_strLineID = rhs.m_strLineID; |
| | | m_nPLCSignalRetry = rhs.m_nPLCSignalRetry; |
| | | m_nSaveImageQuality = rhs.m_nSaveImageQuality; |
| | | m_nPLCSignalRetry = rhs.m_nPLCSignalRetry; |
| | | |
| | | // m_dOneScanTime = rhs.m_dOneScanTime; |
| | | m_nSaveImageQuality = rhs.m_nSaveImageQuality; |
| | | m_bAsyncFullSave = rhs.m_bAsyncFullSave; |
| | | |
| | | // m_dOneScanTime = rhs.m_dOneScanTime; |
| | | m_nFolderRemoveDay = rhs.m_nFolderRemoveDay; |
| | | |
| | | m_PLCSettings = rhs.m_PLCSettings; |
| | |
| | | |
| | | void CHardwareSettings::Reset() |
| | | { |
| | | // m_dOneScanTime = 0.; |
| | | // m_dOneScanTime = 0.; |
| | | m_nLightCount_Trans = 0; |
| | | m_nLightCount_Reflect = 0; |
| | | m_nCameraCount = 0; |
| | |
| | | m_nFolderRemoveDay = 0; |
| | | m_nPLCSignalRetry = 0; |
| | | m_nSaveImageQuality = 30; |
| | | m_bAsyncFullSave = FALSE; |
| | | m_strMachineName = _T(""); |
| | | m_strLineID = _T(""); |
| | | m_nBoardType = GRAB_LINK_BOARD; |
| | |
| | | str = _T("SAVE_DEBUG_IMAGE"); |
| | | else if((void *)&m_nSaveImageQuality == pValue) |
| | | str = _T("SAVEIMAGE_QUALITY"); |
| | | else if ((void*)&m_bAsyncFullSave == pValue) |
| | | str = _T("ASYNC_FULL_SAVE"); |
| | | |
| | | // ly,2025.07.10 |
| | | else if ((void*)&m_bSaveResultByHour == pValue) |
| | |
| | | return FALSE; |
| | | BasicInfoFile.GetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality,30); |
| | | |
| | | str = GetFileString((void*)&m_bAsyncFullSave); |
| | | if (str.IsEmpty() == TRUE) |
| | | return FALSE; |
| | | BasicInfoFile.GetItemValue((TCHAR*)(LPCTSTR)str, m_bAsyncFullSave, FALSE); |
| | | |
| | | SetCameraCount(m_nCameraCount,m_nScanCount); |
| | | iLoop = 0; |
| | |
| | | str = GetFileString((void *)&m_nSaveImageQuality); |
| | | if(str.IsEmpty() == TRUE) |
| | | return FALSE; |
| | | Register.GetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality,30); |
| | | Register.GetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality,30); |
| | | |
| | | str = GetFileString((void*)&m_bAsyncFullSave); |
| | | if (str.IsEmpty() == TRUE) |
| | | return FALSE; |
| | | Register.GetItemValue((TCHAR*)(LPCTSTR)str, m_bAsyncFullSave, FALSE); |
| | | |
| | | SetCameraCount(m_nCameraCount,m_nScanCount); |
| | | iLoop = 0; |
| | |
| | | if(str.IsEmpty() == TRUE) |
| | | return FALSE; |
| | | Register.SetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality); |
| | | |
| | | str = GetFileString((void*)&m_bAsyncFullSave); |
| | | if (str.IsEmpty() == TRUE) |
| | | return FALSE; |
| | | Register.SetItemValue((TCHAR*)(LPCTSTR)str, m_bAsyncFullSave); |
| | | |
| | | if(m_pCameraSettings != NULL) |
| | | { |
| | |
| | | if (str.IsEmpty() == TRUE) { |
| | | return FALSE; |
| | | } |
| | | BasicInfoFile.SetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality); |
| | | BasicInfoFile.SetItemValue((TCHAR*)(LPCTSTR)str,m_nSaveImageQuality); |
| | | |
| | | str = GetFileString((void*)&m_bAsyncFullSave); |
| | | if (str.IsEmpty() == TRUE) { |
| | | return FALSE; |
| | | } |
| | | BasicInfoFile.SetItemValue((TCHAR*)(LPCTSTR)str, m_bAsyncFullSave); |
| | | |
| | | if (m_pCameraSettings != NULL) { |
| | | iLoop = 0; |