Lhaz
クラス | 関数
WinUnit 名前空間

クラス

class  Assert
 
class  AssertException
 
class  AssertExceptionA
 
class  AssertExceptionW
 
class  Environment
 

関数

template<class T >
const TCHAR * ToString (const T &object, TCHAR buffer[], size_t bufferSize)
 Size of buffer in TCHARs [詳解]
 
template<class T >
const TCHAR * ToString (T *object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const bool &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const signed char &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const unsigned char &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const char &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const __int16 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const unsigned __int16 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const __int32 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const unsigned __int32 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const long &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const unsigned long &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const __int64 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const unsigned __int64 &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const float &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const double &object, TCHAR buffer[], size_t bufferSize)
 
template<>
const TCHAR * ToString (const long double &object, TCHAR buffer[], size_t bufferSize)
 
void Trace (const wchar_t *formatString,...)
 Wide-character version of function called by WIN_TRACE macro. [詳解]
 
void Trace (const char *formatString,...)
 ANSI version of function called by WIN_TRACE macro. [詳解]
 

関数詳解

◆ ToString() [1/17]

template<class T >
const TCHAR * WinUnit::ToString ( const T &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

Size of buffer in TCHARs

Implement this function for your type if you would like it to show up in assert messages as something more specific than [OBJECT].

戻り値
Pointer to buffer passed in, for easier inline use.
引数
objectObject that needs a string representation
bufferBuffer to hold the returned string

◆ ToString() [2/17]

template<class T >
const TCHAR* WinUnit::ToString ( T *  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [3/17]

template<>
const TCHAR* WinUnit::ToString ( const bool object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [4/17]

template<>
const TCHAR* WinUnit::ToString ( const signed char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [5/17]

template<>
const TCHAR* WinUnit::ToString ( const unsigned char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [6/17]

template<>
const TCHAR* WinUnit::ToString ( const char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [7/17]

template<>
const TCHAR* WinUnit::ToString ( const __int16 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [8/17]

template<>
const TCHAR* WinUnit::ToString ( const unsigned __int16 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [9/17]

template<>
const TCHAR* WinUnit::ToString ( const __int32 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [10/17]

template<>
const TCHAR* WinUnit::ToString ( const unsigned __int32 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [11/17]

template<>
const TCHAR* WinUnit::ToString ( const long &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [12/17]

template<>
const TCHAR* WinUnit::ToString ( const unsigned long &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [13/17]

template<>
const TCHAR* WinUnit::ToString ( const __int64 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [14/17]

template<>
const TCHAR* WinUnit::ToString ( const unsigned __int64 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [15/17]

template<>
const TCHAR* WinUnit::ToString ( const float &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [16/17]

template<>
const TCHAR* WinUnit::ToString ( const double &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ ToString() [17/17]

template<>
const TCHAR* WinUnit::ToString ( const long double &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline

◆ Trace() [1/2]

void WinUnit::Trace ( const wchar_t *  formatString,
  ... 
)
inline

Wide-character version of function called by WIN_TRACE macro.

◆ Trace() [2/2]

void WinUnit::Trace ( const char *  formatString,
  ... 
)
inline

ANSI version of function called by WIN_TRACE macro.