FLImaging 6.5.8.1
FLImaging::Base::CLog 클래스 참조

Log class 더 자세히 ...

#include <Log.h>

FLImaging::Base::CLog에 대한 상속 다이어그램 :
FLImaging::Base::CFLBase

Public 멤버 함수

virtual ~CLog ()
 소멸자
 
- FLImaging::Base::CFLBase(으)로부터 상속된 Public 멤버 함수
 CFLBase ()
 기본 생성자
 
virtual ~CFLBase ()
 소멸자
 
void Lock () const
 객체에 Lock을 설정
 
bool TryLock () const
 객체에 Lock을 시도 합니다.
 
void Unlock () const
 객체를 Unlock
 
virtual const CProcessingUnitBaseGetProcessingUnit () const
 설정된 ProcessingUnit을 반환
 
virtual const CResult SetProcessingUnit (const CProcessingUnitBase &pub)
 ProcessingUnit을 설정
 
virtual const CResult SetProcessingUnit (const CProcessingUnitBase *pPub)
 ProcessingUnit을 설정
 
virtual void ResetProcessingUnit ()
 설정된 ProcessingUnit을 해제
 
virtual bool IsValid () const
 객체 유효성 확인
 
template<class T >
bool IsValid (T &tValue) const
 입력 값 유효성 확인
 
template<class T >
bool IsValid (T *pTValue) const
 입력 값 유효성 확인
 
template<class T >
void GenerateMin (T &tValue) const
 해당 타입의 최소값 생성
 
template<class T >
void GenerateMin (T *pTValue) const
 해당 타입의 최소값 생성
 
template<class T >
void GenerateMinInt32 (T &tValue) const
 부호있는 32비트 정수 최소값 생성
 
template<class T >
void GenerateMinInt32 (T *pTValue) const
 부호있는 32비트 정수 최소값 생성
 
template<class T >
void GenerateMinInt31 (T &tValue) const
 부호있는 31비트 정수 최소값 생성
 
template<class T >
void GenerateMinInt31 (T *pTValue) const
 부호있는 31비트 정수 최소값 생성
 
template<class T >
void GenerateMax (T &tValue) const
 해당 타입의 최댓값 생성
 
template<class T >
void GenerateMax (T *pTValue) const
 해당 타입의 최댓값 생성
 
template<class T >
void GenerateMaxInt32 (T &tValue) const
 부호있는 32비트 정수 최댓값 생성
 
template<class T >
void GenerateMaxInt32 (T *pTValue) const
 부호있는 32비트 정수 최댓값 생성
 
template<class T >
void GenerateMaxInt31 (T &tValue) const
 부호있는 31비트 정수 최댓값 생성
 
template<class T >
void GenerateMaxInt31 (T *pTValue) const
 부호있는 31비트 정수 최댓값 생성
 
template<class T >
void GenerateInvalid (T &tValue) const
 Invalid값 생성
 
template<class T >
void GenerateInvalid (T *pTValue) const
 Invalid값 생성
 
virtual void OnReceiveBroadcast (const CBroadcastMessage *pMessage)
 Callback 함수. BroadcastMessage를 수신받는 함수
 
virtual int64_t GetClassType () const =0
 Class의 Type 값을 반환한다. 반환되는 값 자체는 의미가 없으나 같은 종류의 클래스인 경우 같은 값이 나오게 되어 비교가 가능하다.
 
const char * GetClassNameWithNamespace () const
 실제 인스턴스의 namespace를 포함한 클래스 명을 반환한다.
 
const char * GetClassNameWithoutNamespace () const
 실제 인스턴스의 namespace를 포함하지 않은 클래스 명을 반환한다.
 
virtual uint32_t GetClassHash () const
 실제 인스턴스의 클래스 해쉬 값을 반환합니다. 같은 클래스에 대해서는 인스턴스가 달라도 동일한 값을 가지게 됩니다.
 
virtual bool IsLicenseAvailable () const
 현재 보유한 라이선스로 해당 알고리즘을 사용할 수 있는지에 대한 여부를 반환 합니다.
 
const CResult ShareSynchronizationObject (const CFLBase *pSrcObject) const
 원본 객체의 동기화 객체를 공유
 
bool IsSharedSynchronizationObject () const
 공유 동기화 객체를 사용 중인지 여부
 
virtual void Throw (const CResult &res, const wchar_t *pWcsExtraMessage=nullptr) const
 예외를 발생 시킵니다. 발생 시킨 객체의 정보와 오류 코드가 로그에 기록 됩니다.
 
virtual void Throw (const std::exception &res, const wchar_t *pWcsExtraMessage) const
 예외를 발생 시킵니다. 발생 시킨 객체의 정보와 오류 코드가 로그에 기록 됩니다.
 

정적 Public 멤버 함수

static const CResult Initialize ()
 초기화
 
static bool IsInitialized ()
 초기화 상태 유무를 얻음
 
static const CResult Terminate ()
 초기화 해제. 해당 함수를 명시적으로 호출한 이후에는 로그 기록 함수에서 묵시적 초기화를 수행하지 않음
 
static const CResult __stdcall Write (const char *pszFormat,...)
 로그 기록
 
static const CResult __stdcall Write (const wchar_t *pWcsFormat,...)
 로그 기록
 
static const CResult __stdcall WriteWithColor (uint32_t u32Color, const char *pszFormat,...)
 지정된 색상으로 로그 기록
 
static const CResult __stdcall WriteWithColor (uint32_t u32Color, const wchar_t *pWcsFormat,...)
 지정된 색상으로 로그 기록
 
static const CResult __stdcall WriteByCategory (const char *pszCategory, const char *pszFormat,...)
 카테고리를 지정해서 로그 기록
 
static const CResult __stdcall WriteByCategory (const wchar_t *pWcsCategory, const wchar_t *pWcsFormat,...)
 카테고리를 지정해서 로그 기록
 
static const CResult __stdcall WriteWithColorByCategory (const char *pszCategory, uint32_t u32Color, const char *pszFormat,...)
 지정된 색상과 카테고리로 로그 기록
 
static const CResult __stdcall WriteWithColorByCategory (const wchar_t *pWcsCategory, uint32_t u32Color, const wchar_t *pWcsFormat,...)
 지정된 색상과 카테고리로 로그 기록
 
static const CResult SetLogBufferSize (int64_t i64BufferSize=65536)
 로그 기록 시 생성할 버퍼의 크기 설정
 
static int64_t GetLogBufferSize ()
 로그 기록 시 생성할 버퍼의 크기 얻기
 
static void SetLogPath (const wchar_t *pWcsLogPath=nullptr)
 로그 저장 경로 지정
 
static const wchar_t * GetLogPathName ()
 로그 저장 경로를 얻음
 
static const wchar_t * GetLogFileName ()
 로그 저장 파일명을 얻음
 
static const wchar_t * GetLogFileNameWithPath ()
 경로를 포함한 로그 저장 파일명을 얻음
 
static void SetLogCallback (CLogCallbackProcType pCallback, CFLBase *pReceiver)
 로그 콜백을 설정
 
static CLogCallbackProcType GetLogCallback ()
 로그 콜백을 설정
 
static CFLBaseGetReceiver ()
 로그 콜백 수신 객체 포인터를 반환
 

Protected 멤버 함수

 CLog ()
 생성자
 

상세한 설명

Log class

로그 클래스

멤버 함수 문서화

◆ GetLogBufferSize()

static int64_t FLImaging::Base::CLog::GetLogBufferSize ( )
static

로그 기록 시 생성할 버퍼의 크기 얻기

반환값
int64_t버퍼 크기 반환

◆ GetLogCallback()

static CLogCallbackProcType FLImaging::Base::CLog::GetLogCallback ( )
static

로그 콜백을 설정

반환값
FLImaging::Base::CLogCallbackProcType로그 콜백함수 포인터

◆ GetLogFileName()

static const wchar_t * FLImaging::Base::CLog::GetLogFileName ( )
static

로그 저장 파일명을 얻음

반환값
constwchar_t* 로그 저장 파일명 반환

◆ GetLogFileNameWithPath()

static const wchar_t * FLImaging::Base::CLog::GetLogFileNameWithPath ( )
static

경로를 포함한 로그 저장 파일명을 얻음

반환값
constwchar_t* 경로를 포함한 로그 저장 파일명 반환

◆ GetLogPathName()

static const wchar_t * FLImaging::Base::CLog::GetLogPathName ( )
static

로그 저장 경로를 얻음

반환값
constwchar_t* 로그 저장 경로 반환

◆ GetReceiver()

static CFLBase * FLImaging::Base::CLog::GetReceiver ( )
static

로그 콜백 수신 객체 포인터를 반환

반환값
FLImaging::Base::CFLBase*수신 객체 포인터
참고
FLImaging::Base::CFLBase

◆ Initialize()

static const CResult FLImaging::Base::CLog::Initialize ( )
static

초기화

반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ IsInitialized()

static bool FLImaging::Base::CLog::IsInitialized ( )
static

초기화 상태 유무를 얻음

반환값
bool초기화 상태 시 true 반환

◆ SetLogBufferSize()

static const CResult FLImaging::Base::CLog::SetLogBufferSize ( int64_t i64BufferSize = 65536)
static

로그 기록 시 생성할 버퍼의 크기 설정

매개변수
[in]i64BufferSize형식 문자 생성 버퍼 크기
반환값
constFLImaging::CResult 함수 실행 결과 반환

◆ SetLogCallback()

static void FLImaging::Base::CLog::SetLogCallback ( CLogCallbackProcType pCallback,
CFLBase * pReceiver )
static

로그 콜백을 설정

매개변수
[in]pCallback로그 콜백함수 포인터
[in]pReceiver수신할 객체의 포인터
참고
FLImaging::Base::CLogCallbackProcType
FLImaging::Base::CFLBase

◆ SetLogPath()

static void FLImaging::Base::CLog::SetLogPath ( const wchar_t * pWcsLogPath = nullptr)
static

로그 저장 경로 지정

매개변수
[in]pWcsLogPath로그 저장 경로, nullptr 일 시 모듈 경로로 지정

◆ Terminate()

static const CResult FLImaging::Base::CLog::Terminate ( )
static

초기화 해제. 해당 함수를 명시적으로 호출한 이후에는 로그 기록 함수에서 묵시적 초기화를 수행하지 않음

반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ Write() [1/2]

static const CResult __stdcall FLImaging::Base::CLog::Write ( const char * pszFormat,
... )
static

로그 기록

매개변수
[in]pszFormatANSI 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ Write() [2/2]

static const CResult __stdcall FLImaging::Base::CLog::Write ( const wchar_t * pWcsFormat,
... )
static

로그 기록

매개변수
[in]pWcsFormatUNICODE 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteByCategory() [1/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteByCategory ( const char * pszCategory,
const char * pszFormat,
... )
static

카테고리를 지정해서 로그 기록

매개변수
[in]pszCategory카테고리
[in]pszFormatANSI 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteByCategory() [2/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteByCategory ( const wchar_t * pWcsCategory,
const wchar_t * pWcsFormat,
... )
static

카테고리를 지정해서 로그 기록

매개변수
[in]pWcsCategory카테고리
[in]pWcsFormatUNICODE 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteWithColor() [1/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteWithColor ( uint32_t u32Color,
const char * pszFormat,
... )
static

지정된 색상으로 로그 기록

매개변수
[in]u32Color로그 뷰어에서 표시될 문자열 색
[in]pszFormatANSI 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteWithColor() [2/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteWithColor ( uint32_t u32Color,
const wchar_t * pWcsFormat,
... )
static

지정된 색상으로 로그 기록

매개변수
[in]u32Color로그 뷰어에서 표시될 문자열 색
[in]pWcsFormatUNICODE 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteWithColorByCategory() [1/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteWithColorByCategory ( const char * pszCategory,
uint32_t u32Color,
const char * pszFormat,
... )
static

지정된 색상과 카테고리로 로그 기록

매개변수
[in]pszCategory카테고리
[in]u32Color로그 뷰어에서 표시될 문자열 색
[in]pszFormatANSI 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult

◆ WriteWithColorByCategory() [2/2]

static const CResult __stdcall FLImaging::Base::CLog::WriteWithColorByCategory ( const wchar_t * pWcsCategory,
uint32_t u32Color,
const wchar_t * pWcsFormat,
... )
static

지정된 색상과 카테고리로 로그 기록

매개변수
[in]pWcsCategory카테고리
[in]u32Color로그 뷰어에서 표시될 문자열 색
[in]pWcsFormatUNICODE 기록 문자열 양식
[in]...가변 인자
반환값
constFLImaging::CResult 실행 결과에 대한 정보
참고
FLImaging::CResult