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/include/akCore/akBit.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/include/akCore/akBit.h b/ReviewHistory/include/akCore/akBit.h new file mode 100644 index 0000000..32c6701 --- /dev/null +++ b/ReviewHistory/include/akCore/akBit.h @@ -0,0 +1,57 @@ +#pragma once + + +#include "akCoreLinker.h" + +//namespace akCore +//{ + + class AKCORE_DLLSPEC CakBit + { + public: + CakBit(void); + CakBit(int nBit); + ~CakBit(void); + + + void setBit(int nBit); + void setBitFlag(int nBitIndex, bool bFlag); + + int getBit(); + bool getBitFlag(int nBitIndex); + + + protected: + int m_nBit; + + public: + //비트 체크(on되있으면 true 반환) + static int bitChk(int orig, int target) + { + if(target<32 && (orig&(0x1 << target)))return 1; + else return 0; + } + + //비트 온 + static int bitOn(int orig, int target) + { + if(target<32)return orig|(0x1 << target); + else return orig; + } + + //비트 오프 + static int bitOff(int orig, int target) + { + if(target<32)return orig&(~(0x1 << target)); + else return orig; + } + + //비트 스위치 + static int bitTurn(int orig, int target) + { + if(target<32)return orig^(0x1 << target); + else return orig; + } + }; + +//}; \ No newline at end of file -- Gitblit v1.9.3