//! Header files of Common Data Types
/**
* General Library version 4.0
* This header file mainly defines the Unified Data Type and exception base class, which will be provided to all header files in the general library.
* @ Author zdhsoft (Zhu Donghua)
* @ Version 4.0
* @ Date 2008-03-01
* @ File xcommon. h
* @ Test: tested
*/
# Ifndef _ X_COMMON_H _
# Define _ X_COMMON_H _
// Included header file
# Include <xconfig. h>
# Include <string>
# Include <cassert>
Namespace zdh
{
Typedef unsigned char XByte; // <8-bit unsigned integer
Typedef char XChar; // <8 characters
Typedef unsigned short XWord; // <16-bit unsigned integer
Typedef short XShort; // <16-bit signed integer
# If CONFIG_CPU32
Typedef unsigned int XDWord; // <32-bit unsigned integer
Typedef int XInt; // <32-bit signed integer
# Else
Typedef unsigned long XDWord; // <32-bit unsigned integer
Typedef signed long XInt; // <32-bit signed integer
# Endif
# If CONFIG_BCB
# If CONFIG_BCB5
Typedef unsigned _ int64 XDDWord; // <64-bit unsigned integer
Typedef signed _ int64 XLong; // <64-bit signed integer
# Elif CONFIG_BCB6 | CONFIG_BCB2006
Typedef unsigned long XDDWord; // <64-bit unsigned integer
Typedef signed long XLong; // <64-bit signed integer
# Else
Typedef unsigned _ int64 XDDWord; // <64-bit unsigned integer
Typedef signed _ int64 XLong; // <64-bit signed integer
# Endif
# Elif CONFIG_VC
# If CONFIG_VC2003 | CONFIG_VC2005 | CONFIG_VC2001
Typedef unsigned long XDDWord; // <64-bit unsigned integer
Typedef signed long XLong; // <64-bit signed integer
# Elif CONFIG_VC6 | CONFIG_VC5
Typedef unsigned _ int64 XDDWor