| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/Oracle/OCI/include/oratypes.h
Go to the documentation of this file.

    00001 /*
    00002   Copyright (c) 1982, 2003, Oracle.  All rights reserved.
    00003 */
    00004
    00005 /*
    00006  * $Header$
    00007  */
    00008
    00009
    00010
    00011 #ifndef ORATYPES
    00012 # define ORATYPES
    00013 # define SX_ORACLE
    00014 # define SX3_ORACLE
    00015
    00016 #ifndef ORASTDDEF
    00017 # include <stddef.h>
    00018 # define ORASTDDEF
    00019 #endif
    00020
    00021 #ifndef ORALIMITS
    00022 # include <limits.h>
    00023 # define ORALIMITS
    00024 #endif
    00025
    00026 #ifndef TRUE
    00027 # define TRUE  1
    00028 # define FALSE 0
    00029 #endif
    00030
    00031
    00032 #ifndef lint
    00033 typedef unsigned char  ub1;
    00034 typedef   signed char  sb1;
    00035 #else
    00036 #define ub1 unsigned char
    00037 #define sb1 signed char
    00038 #endif
    00039
    00040 #define UB1MAXVAL ((ub1)UCHAR_MAX)
    00041 #define UB1MINVAL ((ub1)        0)
    00042 #define SB1MAXVAL ((sb1)SCHAR_MAX)
    00043 #define SB1MINVAL ((sb1)SCHAR_MIN)
    00044 #define MINUB1MAXVAL ((ub1)  255)
    00045 #define MAXUB1MINVAL ((ub1)    0)
    00046 #define MINSB1MAXVAL ((sb1)  127)
    00047 #define MAXSB1MINVAL ((sb1) -127)
    00048
    00049
    00050 #ifndef lint
    00051 typedef unsigned short    ub2;
    00052 typedef   signed short    sb2;
    00053 typedef    unsigned short        utext;
    00054 #else
    00055 #define ub2  unsigned short
    00056 #define sb2  signed short
    00057 #define utext  unsigned short
    00058 #endif
    00059
    00060 #define UB2MAXVAL ((ub2)USHRT_MAX)
    00061 #define UB2MINVAL ((ub2)        0)
    00062 #define SB2MAXVAL ((sb2) SHRT_MAX)
    00063 #define SB2MINVAL ((sb2) SHRT_MIN)
    00064 #define MINUB2MAXVAL ((ub2) 65535)
    00065 #define MAXUB2MINVAL ((ub2)     0)
    00066 #define MINSB2MAXVAL ((sb2) 32767)
    00067 #define MAXSB2MINVAL ((sb2)-32767)
    00068
    00069
    00070 #ifndef lint
    00071 typedef unsigned int  ub4;
    00072 typedef   signed int  sb4;
    00073 #else
    00074 #define eb4 int
    00075 #define ub4 unsigned int
    00076 #define sb4 signed int
    00077 #endif
    00078
    00079 #define UB4MAXVAL ((ub4)UINT_MAX)
    00080 #define UB4MINVAL ((ub4)        0)
    00081 #define SB4MAXVAL ((sb4) INT_MAX)
    00082 #define SB4MINVAL ((sb4) INT_MIN)
    00083 #define MINUB4MAXVAL ((ub4) 4294967295)
    00084 #define MAXUB4MINVAL ((ub4)          0)
    00085 #define MINSB4MAXVAL ((sb4) 2147483647)
    00086 #define MAXSB4MINVAL ((sb4)-2147483647)
    00087
    00088
    00089 /* --- Signed/Unsigned eight-byte scalar (orasb8/oraub8) --- */
    00090
    00091 #define ORAXB8_DEFINED
    00092 #ifndef lint
    00093  typedef unsigned  /*_int64*/ int oraub8;
    00094  typedef signed /*_int64*/ int orasb8;
    00095  typedef oraub8 ub8;
    00096  typedef orasb8 sb8;
    00097 #else
    00098 # define ub8 oraub8
    00099 # define sb8 orasb8
    00100 # define oraub8 unsigned int /*_int64*/
    00101 # define orasb8 signed int /*_int64*/
    00102 #endif /* !lint */
    00103
    00104 #define ORAUB8MINVAL    ((oraub8)0)
    00105 #define ORAUB8MAXVAL    ((oraub8)18446744073709551615)
    00106 #define ORASB8MINVAL    ((orasb8)-9223372036854775808)
    00107 #define ORASB8MAXVAL    ((orasb8) 9223372036854775807)
    00108
    00109 #define MAXORAUB8MINVAL ((oraub8)0)
    00110 #define MINORAUB8MAXVAL ((oraub8)18446744073709551615)
    00111 #define MAXORASB8MINVAL ((orasb8)-9223372036854775807)
    00112 #define MINORASB8MAXVAL ((orasb8) 9223372036854775807)
    00113
    00114
    00115 #define UB1BITS          CHAR_BIT
    00116 #define UB1MASK          ((1 << ((uword)CHAR_BIT)) - 1)
    00117
    00118
    00119 #ifdef lint
    00120 # define oratext unsigned char
    00121 #else
    00122   typedef  unsigned char oratext;
    00123 #endif
    00124
    00125
    00126 #ifndef lint
    00127 typedef          char     eb1;
    00128 typedef          short    eb2;
    00129 typedef          int      eb4;
    00130 #else
    00131 # define         eb1      char
    00132 # define         eb2      short
    00133 # define         eb4      int
    00134 #endif
    00135
    00136 #define EB1MAXVAL      ((eb1)SCHAR_MAX)
    00137 #define EB1MINVAL      ((eb1)        0)
    00138 #define MINEB1MAXVAL   ((eb1)  127)
    00139 #define MAXEB1MINVAL   ((eb1)    0)
    00140 #define EB2MAXVAL      ((eb2) SHRT_MAX)
    00141 #define EB2MINVAL      ((eb2)        0)
    00142 #define MINEB2MAXVAL   ((eb2) 32767)
    00143 #define MAXEB2MINVAL   ((eb2)     0)
    00144 #define EB4MAXVAL      ((eb4) INT_MAX)
    00145 #define EB4MINVAL      ((eb4)        0)
    00146 #define MINEB4MAXVAL   ((eb4) 2147483647)
    00147 #define MAXEB4MINVAL   ((eb4)          0)
    00148
    00149
    00150
    00151
    00152 #ifndef lint
    00153 typedef         sb1  b1;
    00154 #else
    00155 #define         b1 sb1
    00156 #endif
    00157 #define  B1MAXVAL  SB1MAXVAL
    00158 #define  B1MINVAL  SB1MINVAL
    00159
    00160 #ifndef lint
    00161 typedef         sb2      b2;
    00162 #else
    00163 #define         b2 sb2
    00164 #endif
    00165 #define  B2MAXVAL  SB2MAXVAL
    00166 #define  B2MINVAL  SB2MINVAL
    00167
    00168 #ifndef lint
    00169 typedef         sb4    b4;
    00170 #else
    00171 #define         b4 sb4
    00172 #endif
    00173 # define  B4MAXVAL  SB4MAXVAL
    00174 # define  B4MINVAL  SB4MINVAL
    00175
    00176
    00177 #if !defined(LUSEMFC)
    00178 # ifdef lint
    00179 #  define text unsigned char
    00180 # else
    00181    typedef oratext text;
    00182 # endif
    00183 #endif
    00184
    00185 #ifdef lint
    00186 # define OraText unsigned char
    00187 #else
    00188   typedef oratext OraText;
    00189 #endif
    00190
    00191 #ifndef lint
    00192 typedef          int eword;
    00193 typedef unsigned int uword;
    00194 typedef   signed int sword;
    00195 #else
    00196 #define eword int
    00197 #define uword unsigned int
    00198 #define sword signed int
    00199 #endif
    00200
    00201 #define  EWORDMAXVAL  ((eword) INT_MAX)
    00202 #define  EWORDMINVAL  ((eword)       0)
    00203 #define  UWORDMAXVAL  ((uword)UINT_MAX)
    00204 #define  UWORDMINVAL  ((uword)       0)
    00205 #define  SWORDMAXVAL  ((sword) INT_MAX)
    00206 #define  SWORDMINVAL  ((sword) INT_MIN)
    00207 #define  MINEWORDMAXVAL  ((eword)  2147483647)
    00208 #define  MAXEWORDMINVAL  ((eword)      0)
    00209 #define  MINUWORDMAXVAL  ((uword)  4294967295)
    00210 #define  MAXUWORDMINVAL  ((uword)           0)
    00211 #define  MINSWORDMAXVAL  ((sword)  2147483647)
    00212 #define  MAXSWORDMINVAL  ((sword) -2147483647)
    00213
    00214
    00215 #ifdef _WIN64
    00216
    00217 #ifndef lint
    00218 typedef unsigned _int64 ubig_ora;
    00219 typedef   signed _int64 sbig_ora;
    00220 #else
    00221 #define ubig_ora unsigned _int64
    00222 #define sbig_ora signed _int64
    00223 #endif
    00224
    00225 #define UBIG_ORAMAXVAL ((ubig_ora)_UI64_MAX)
    00226 #define UBIG_ORAMINVAL ((ubig_ora)        0)
    00227 #define SBIG_ORAMAXVAL ((sbig_ora) _I64_MAX)
    00228 #define SBIG_ORAMINVAL ((sbig_ora) _I64_MIN)
    00229 #define MINUBIG_ORAMAXVAL ((ubig_ora) 4294967295)
    00230 #define MAXUBIG_ORAMINVAL ((ubig_ora)          0)
    00231 #define MINSBIG_ORAMAXVAL ((sbig_ora) 2147483647)
    00232 #define MAXSBIG_ORAMINVAL ((sbig_ora)-2147483647)
    00233
    00234 #else
    00235
    00236 #ifndef lint
    00237 typedef unsigned long  ubig_ora;
    00238 typedef   signed long  sbig_ora;
    00239 #else
    00240 #define ubig_ora unsigned long
    00241 #define sbig_ora signed long
    00242 #endif
    00243
    00244 #define UBIG_ORAMAXVAL ((ubig_ora)ULONG_MAX)
    00245 #define UBIG_ORAMINVAL ((ubig_ora)        0)
    00246 #define SBIG_ORAMAXVAL ((sbig_ora) LONG_MAX)
    00247 #define SBIG_ORAMINVAL ((sbig_ora) LONG_MIN)
    00248 #define MINUBIG_ORAMAXVAL ((ubig_ora) 4294967295)
    00249 #define MAXUBIG_ORAMINVAL ((ubig_ora)          0)
    00250 #define MINSBIG_ORAMAXVAL ((sbig_ora) 2147483647)
    00251 #define MAXSBIG_ORAMINVAL ((sbig_ora)-2147483647)
    00252
    00253 #endif    /* _WIN64 */
    00254
    00255 #define UBIGORABITS      (UB1BITS * sizeof(ubig_ora))
    00256
    00257
    00258 #undef CONST
    00259 #define CONST const
    00260
    00261
    00262 #define dvoid void
    00263
    00264
    00265 typedef void (*lgenfp_t)( void );
    00266
    00267
    00268 #ifndef ORASYS_TYPES
    00269 # include <sys/types.h>
    00270 # define ORASYS_TYPES
    00271 #endif
    00272
    00273 /* Define "boolean" as int, not int, per Windows custom. */
    00274 # ifndef __RPCNDR_H__            /* don't conflict if rpcndr.h already read */
    00275            typedef unsigned char boolean;
    00276 # endif
    00277
    00278 #ifdef sparc
    00279 # define SIZE_TMAXVAL SB4MAXVAL
    00280 #else
    00281 # define SIZE_TMAXVAL UB4MAXVAL
    00282 #endif
    00283
    00284 #define MINSIZE_TMAXVAL (size_t)4294967295
    00285
    00286
    00287 #if !defined(MOTIF) && !defined(LISPL)  && !defined(__cplusplus) && !defined(LUSEMFC)
    00288 typedef  oratext *string;
    00289 #endif
    00290
    00291
    00292 #endif  //ORATYPES
    00293
    00294
    00295

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines