From 3ce48f6dbeb537e252edb0d62c88a28796e36674 Mon Sep 17 00:00:00 2001
From: SWK <sungwk82@diteam.co.kr>
Date: 월, 26 12월 2022 15:04:42 +0900
Subject: [PATCH] ongoing60 #4403 CF AOI Review TACT 지연 개선 1. 신호 출력 방식 재개선  - 유지 시간이 없는 신호는 바로 출력 진행하도록 변경 2. 불필요 Delay 제거 및 시퀀스 변경  - 얼라인 측정 종료 처리 간 제어 신호 먼저 출력 후 카메라 Stop으로 변경  - 물류 정보 읽기 처리 후 1000ms Delay 삭제  - 얼라인 측정 시작(카메라 Live Start) 후 Delay 300ms -> 100ms(이미지 들어오는 시간 확보 필요)  - ReadRawFile 처리 시작 전 500ms Delay 삭제  - Path Scheduling 완료 후 Review Ready 신호 출력 전 1000ms Delay 삭제 3. 버그 수정  - 이미지 저장 경로 생성 간 예외 처리 부분 버그 수정 4. 로그 시간 출력 불합리 개선  - 로그 시간이 파일 출력 시점으로 작성되어 로그 스래드 지연 시 시간이 맞지 않는 불합리 있음  - 로그 시간은 로그 발생 시점에 시간 저장, 해당 시간 이용하여 파일에 기록하도록 변경

---
 ReviewHistory/include/akSTL/backup/akString.h |  143 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 143 insertions(+), 0 deletions(-)

diff --git a/ReviewHistory/include/akSTL/backup/akString.h b/ReviewHistory/include/akSTL/backup/akString.h
new file mode 100644
index 0000000..652089d
--- /dev/null
+++ b/ReviewHistory/include/akSTL/backup/akString.h
@@ -0,0 +1,143 @@
+#pragma once
+
+
+#include "akLinker.h"
+
+#include <iostream>
+#include <tchar.h>
+
+
+extern akSTL_DLLSPEC wchar_t* m_pWstrTemp;
+akSTL_DLLSPEC wchar_t* charToWchar(char* pstrSrc);
+
+
+namespace akSTL
+{
+	class akSTL_DLLSPEC CakString
+	{
+	public:
+		CakString(void);
+		~CakString(void);
+
+	public:
+		//wstring ToWString(const char * in_val);
+		//string ToString(const wstring &in_val);
+
+		
+
+		//찾고자하는 문자의 위치를 반환해주는 함수(-1이 반환되면 찾지 못한것임, 찾았으면 1이상의 값을 반환)
+		static int StringFind(const char* str, const char* keyward);
+		
+
+		static inline std::wstring ToWString(const char * in_val)
+		{
+			std::wstring temp;
+			while (*in_val != '\0')
+				temp += *in_val++;
+			return temp;
+		}
+
+		static inline std::string ToString(const std::wstring &in_val)
+		{
+			std::string temp;
+			std::wstring::const_iterator b = in_val.begin();
+			const std::wstring::const_iterator e = in_val.end();
+			while (b != e)
+			{
+				temp += static_cast<char>(*b);
+				++b;
+			}
+			return temp;
+		}
+
+		static bool IsNumber(char* strSource);
+		static void StringReplace(char* strSource, char cSourceChar, char cDestChar);
+		static void StringReplace(char* strSource, char* strSourceString, char* strDestString);
+		static bool GetFullPathName(char* strDest, int nDestSize, const char* strSourceFront, const char* strSourceEnd);
+		static void GetPath(char* strDest, int nDestSize, const char* strSource);
+		static void GetName(char* strDest, int nDestSize, const char* strSource);
+		static bool GetExt(char* strDest, int nDestSize, const char* strSource);
+		static char* GetExt(const char* strSource);
+		static int Find(const char* strSource, char cChar);
+		static int Find(const char* strSource, char* strFindString);
+		static int ReverseFind(const char* strSource, char cChar);
+		static void MakeLower(char* strSource);
+		static void MakeUpper(char* strSource);
+		static bool Left(const char* strSource, char* strDest, int nDestLength, int nLeftCount);
+		static bool Mid(const char* strSource, char* strDest, int nDestLength, int nFirstIndex, int nCount = -1);
+		static bool Right(const char* strSource, char* strDest, int nDestLength, int nRightCount);
+		
+
+
+	private:
+		
+	};
+}
+
+
+//
+//void CksgFontMaker::DrawStringOverray(
+//									  GLfloat x, 
+//									  GLfloat y,  
+//									  int windowWidth,
+//									  int windowHeight,
+//									  char* s
+//									  ,...)
+//{
+//	// Draws the given text string at the given location.
+//
+//	char text[256]={};
+//	va_list ap;
+//	va_start(ap, s);
+//	vsprintf(text, s, ap);
+//	va_end(ap);
+//
+//	GLsizei len = GLsizei(strlen(text));
+//	if (text && len > 0) 
+//	{
+//		glPushMatrix();
+//		{
+//			glPushAttrib( GL_LIGHTING_BIT );
+//			glDisable(GL_LIGHTING);
+//			glMatrixMode(GL_PROJECTION);
+//			glPushMatrix();
+//			{
+//				glLoadIdentity();
+//				gluOrtho2D(0, windowWidth, 0,windowHeight);
+//
+//				glMatrixMode(GL_MODELVIEW);
+//
+//				glPushMatrix();
+//				{
+//					glLoadIdentity();
+//
+//
+//
+//
+//					glRasterPos2i(x, windowHeight+m_logfont.lfHeight-y);
+//
+//					glPushAttrib(GL_LIST_BIT);
+//					{
+//						glListBase(m_fontListBase);
+//						glCallLists(len, GL_UNSIGNED_BYTE, (const GLvoid*)text);
+//					} glPopAttrib();
+//
+//
+//				}glPopMatrix();
+//
+//				glMatrixMode(GL_PROJECTION);
+//
+//			}glPopMatrix();
+//
+//			glMatrixMode(GL_MODELVIEW);
+//
+//
+//			glPopAttrib();
+//			//glEnable(GL_DEPTH_TEST);
+//
+//		}glPopMatrix();
+//
+//
+//
+//	}
+//}
\ No newline at end of file

--
Gitblit v1.9.3