1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#ifndef TS_DATATYPE_HPP
#define TS_DATATYPE_HPP
#include <string>
namespace ts
{
typedef std::string TS_STRING;
typedef unsigned char TS_ASCII; ///< 1 byte. Range: 0 to 255
typedef unsigned short int TS_UTF8; ///< 2 bytes. Range: 0 to 65,535
typedef unsigned int TS_UNICODE; ///< 4 bytes. Range: 0 to 4,294,967,295
typedef unsigned long long int TS_UNISYMBOL; ///< 8 bytes. Range: 0 to 18,446,744,073,709,551,615
typedef char TS_CHAR; ///< 1 byte. Range: -127 to 127 or 0 to 255
typedef unsigned char TS_UCHAR; ///< 1 byte. Range: 0 to 255
typedef signed char TS_SCHAR; ///< 1 byte. Range: -127 to 127
typedef wchar_t TS_WCHAR; ///< 2 bytes. Range: 0 to 65,535
typedef short int TS_WORD; ///< 2 bytes. Range: -32,768 to 32,767
typedef unsigned short int TS_UWORD; ///< 2 bytes. Range: 0 to 65,535
typedef signed short int TS_SWORD; ///< 2 bytes. Range: -32768 to 32767
typedef int TS_INT; ///< 4 bytes. Range: -2,147,483,648 to 2,147,483,647
typedef unsigned int TS_UINT; ///< 4 bytes. Range: 0 to 4,294,967,295
typedef signed int TS_SINT; ///< 4 bytes. Range: -2,147,483,648 to 2,147,483,647
typedef long int TS_LONG; ///< 4 bytes. Range: -2,147,483,648 to 2,147,483,647
typedef unsigned long int TS_ULONG; ///< 4 bytes. Range: 0 to 4,294,967,295
typedef signed long int TS_SLONG; ///< 4 bytes. Range: -2,147,483,648 to 2,147,483,647
typedef long long int TS_QUAD; ///< 8 bytes. Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
typedef unsigned long long int TS_UQUAD; ///< 8 bytes. Range: 0 to 18,446,744,073,709,551,615
typedef signed long long int TS_SQUAD; ///< 8 bytes. Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
typedef float TS_FLOAT; ///< 4 bytes. Range: 1.17549e-38 to 3.40282e+38
typedef double TS_DOUBLE; ///< 8 bytes. Range: 2.22507e-308 to 1.79769e+308
typedef long double TS_LDOUBLE; ///< 16 bytes. Range: 3.3621e-4932 to 1.18973e+4932
} // namespace ts
#endif // TS_DATATYPE_HPP
|