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. [詳解]
 

関数詳解

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
template<class T >
const TCHAR* WinUnit::ToString ( T *  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const bool object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const signed char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const unsigned char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const char &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const __int16 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const unsigned __int16 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const __int32 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const unsigned __int32 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const long &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const unsigned long &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const __int64 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const unsigned __int64 &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const float &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const double &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
template<>
const TCHAR* WinUnit::ToString ( const long double &  object,
TCHAR  buffer[],
size_t  bufferSize 
)
inline
void WinUnit::Trace ( const wchar_t *  formatString,
  ... 
)
inline

Wide-character version of function called by WIN_TRACE macro.

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

ANSI version of function called by WIN_TRACE macro.