#include <TUtil.h>
Classes | |
struct | LogEvent |
struct | TOSHIParams |
Public Types | |
enum | LogType { LogType_Info , LogType_Warning , LogType_Error , LogType_Critical , LogType_NUMOF } |
Public Member Functions | |
TUtil () | |
~TUtil ()=default | |
![]() | |
TSingleton (const TSingleton &)=delete | |
TSingleton (const TSingleton &&)=delete | |
TSingleton & | operator= (const TSingleton &)=delete |
TSingleton & | operator= (const TSingleton &&)=delete |
Static Public Member Functions | |
static constexpr const TCHAR * | LogTypeToString (LogType a_eType) |
static TBOOL | ToshiCreate (const TOSHIParams &a_rToshiParams) |
static void | ToshiDestroy () |
static const TCHAR * | GetTime () |
static void | MemSet (void *ptr, TINT value, TSIZE size) |
static void * | MemCopy (void *dst, const void *src, TSIZE size) |
static void | MemClear (void *ptr, TSIZE size) |
static TINT | MemCompare (const void *ptr1, const void *ptr2, TSIZE size) |
static void * | MemMove (void *dst, const void *src, TSIZE size) |
template<class T> | |
static void | Fill (T *a_pStart, T *a_pEnd, const T &a_rcValue=T()) |
static void | Log (const TCHAR *a_szFormat,...) |
static void | Log (LogType a_eLogType, const TCHAR *a_szFormat,...) |
static void | TrimLog (const TCHAR *fileExtension, TSIZE trimTo) |
static void | LogDown () |
static void | LogUp () |
static void | LogConsole (const TCHAR *a_szFormat,...) |
static void | LogSet (TLogFile *a_logFile) |
static TLogFile * | GetCurrentLogFile () |
static TEmitter< TUtil, TUtil::LogEvent > & | GetLogEmitter () |
static TMutex & | GetGlobalMutex () |
static TPString8Pool * | SetTPStringPool (TPString8Pool *a_pStringPool) |
static TPString8Pool * | GetTPStringPool () |
static const TOSHIParams & | GetToshiParameters () |
static void | CRCInitialise () |
static TUINT32 | CRC32 (void *buffer, TUINT32 len) |
![]() | |
static TFORCEINLINE TUtil * | CreateSingleton (Args &&... args) |
static TFORCEINLINE D * | CreateSingleton (Args &&... args) |
static TFORCEINLINE void | DestroySingleton () |
static TFORCEINLINE TUtil * | GetSingletonSafe () |
static TFORCEINLINE TBOOL | IsSingletonCreated () |
static TFORCEINLINE TUtil * | GetSingleton () |
Static Public Attributes | |
static constexpr const TCHAR * | kTypeStrings [] |
static TUINT32 | s_aiCRC32LUT [(256)] = {} |
Additional Inherited Members | |
![]() | |
TFORCEINLINE | TSingleton () |
TFORCEINLINE | ~TSingleton () |
![]() | |
static TUtil * | ms_pSingleton |
enum TUtil::LogType |
Enumerator | |
---|---|
LogType_Info | |
LogType_Warning | |
LogType_Error | |
LogType_Critical | |
LogType_NUMOF |
TUtil::TUtil | ( | ) |
|
default |
|
static |
Definition at line 182 of file TUtil.cpp.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 54 of file TUtil_Win.cpp.
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 65 of file TUtil.cpp.
Definition at line 83 of file TUtil.cpp.
|
static |
Definition at line 111 of file TUtil.cpp.
|
static |
|
static |
Definition at line 129 of file TUtil.cpp.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 149 of file TUtil.cpp.
|
static |
Definition at line 16 of file TUtil_Win.cpp.
|
staticconstexpr |