From c70166f3e86ffd0528884911483c067a6b21ebdd Mon Sep 17 00:00:00 2001 From: kojingeun <diteam.co.kr> Date: 금, 30 6월 2023 15:48:59 +0900 Subject: [PATCH] Ongoing60 #4517 CF AOI Review 결과 파일 찾기 실패 개선 1. AOIServer RawBin 폴더 연결 TimerThread 추가 - file_dummy 생성 후 Open/Close 반복(10초) 2. 프로젝트 누락 경로 및 설정 추가 - FTPUploader Include Path, Debug모드 psapi.lib --- ReviewHistory/ReveiwHistory/Singleton.h | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/ReveiwHistory/Singleton.h b/ReviewHistory/ReveiwHistory/Singleton.h new file mode 100644 index 0000000..003088b --- /dev/null +++ b/ReviewHistory/ReveiwHistory/Singleton.h @@ -0,0 +1,35 @@ +#pragma once + +template <typename T> +class CSingleton +{ +public: + CSingleton() {} + virtual ~CSingleton() {} + + static void CreateClass() + { + if ( !m_pMgr ) + m_pMgr = new T; + } + + static void DestroyClass() + { + if ( m_pMgr ) + { + delete m_pMgr; + + m_pMgr = NULL; + } + } + + static T* GetMgr() + { + return m_pMgr; + } + +private: + static T* m_pMgr; +}; + +template<typename T> T* CSingleton<T>::m_pMgr = NULL; \ No newline at end of file -- Gitblit v1.9.3