GCpp general purpose C++ library  version 1.0
GTypes.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GTypes.hh
3  *
4  * File defining base types for the library
5  */
6 //======================================================================
7 
8 #ifndef G_TYPES_HH
9 #define G_TYPES_HH
10 
11 //======================================================================
12 
13 typedef char int8; ///< Signed integer 1 bytes
14 typedef unsigned char u_int8; ///< Unigned integer 1 bytes
15 
16 typedef short int16; ///< Signed integer 2 bytes
17 typedef unsigned short u_int16; ///< Unigned integer 2 bytes
18 
19 typedef long int32; ///< Signed integer 4 bytes
20 typedef unsigned long u_int32; ///< Unigned integer 4 bytes
21 
22 typedef long long int64; ///< Signed integer 8 bytes
23 typedef unsigned long long u_int64; ///< Unsigned integer 8 bytes
24 
25 
26 #ifndef u_short
27 /*! Defining unsigned byte (8 bits) */
28 typedef unsigned char byte;
29 #endif
30 
31 #ifndef u_short
32 /*! Defining unsigned short (16 bits) */
33 typedef unsigned short u_short;
34 #endif
35 
36 #ifndef u_int
37 /*! Defining unsigned int (32 bits) */
38 typedef unsigned int u_int;
39 #endif
40 
41 #ifndef u_long
42 /*! Defining unsigned long (32 bits) */
43 typedef unsigned long u_long;
44 #endif
45 
46 #ifndef u_long_long
47 /*! Defining unsigned long (64 bits) */
48 typedef unsigned long long u_long_long;
49 #endif
50 
51 
52 //======================================================================
53 #endif
unsigned long long u_int64
Unsigned integer 8 bytes.
Definition: GTypes.hh:23
unsigned long long u_long_long
Definition: GTypes.hh:48
unsigned char byte
Definition: GTypes.hh:28
short int16
Signed integer 2 bytes.
Definition: GTypes.hh:16
long long int64
Signed integer 8 bytes.
Definition: GTypes.hh:22
unsigned long u_int32
Unigned integer 4 bytes.
Definition: GTypes.hh:20
unsigned char u_int8
Unigned integer 1 bytes.
Definition: GTypes.hh:14
long int32
Signed integer 4 bytes.
Definition: GTypes.hh:19
unsigned long u_long
Definition: GTypes.hh:43
char int8
Signed integer 1 bytes.
Definition: GTypes.hh:13
unsigned short u_int16
Unigned integer 2 bytes.
Definition: GTypes.hh:17
unsigned int u_int
Definition: GTypes.hh:38
unsigned short u_short
Definition: GTypes.hh:33