| 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/oci1.h
Go to the documentation of this file.

    00001 /*
    00002  * $Header$
    00003  */
    00004
    00005 /* Copyright (c) Oracle Corporation 1997, 1998. All Rights Reserved. */
    00006
    00007 /* NOTE:  See 'header_template.doc' in the 'doc' dve under the 'forms'
    00008       directory for the header file template that includes instructions.
    00009 */
    00010
    00011 /*
    00012    NAME
    00013      oci1.h - Cartridge Service definitions
    00014
    00015    DESCRIPTION
    00016      <short description of component this file declares/defines>
    00017
    00018    RELATED DOCUMENTS
    00019
    00020    INSPECTION STATUS
    00021      Inspection date:
    00022      Inspection status:
    00023      Estimated increasing cost defects per page:
    00024      Rule sets:
    00025
    00026    ACCEPTANCE REVIEW STATUS
    00027      Review date:
    00028      Review status:
    00029      Reviewers:
    00030
    00031    PUBLIC FUNCTION(S)
    00032      <list of external functions declared/defined - with one-line descriptions>
    00033
    00034    PRIVATE FUNCTION(S)
    00035      <list of static functions defined in .c file - with one-line descriptions>
    00036
    00037    EXAMPLES
    00038
    00039    NOTES
    00040      <other useful comments, qualifications, etc.>
    00041
    00042    MODIFIED   (MM/DD/YY)
    00043    nramakri    01/16/98 - remove #ifdef NEVER clause
    00044    ewaugh      12/18/97 - Turn type wrappers into functions.
    00045    skabraha    12/02/97 - Adding data structures & constants for OCIFile
    00046    rhwu        12/02/97 - OCI Thread
    00047    nramakri    12/15/97 - move to core4
    00048    ewaugh      12/11/97 - add OCIFormat package constants
    00049    ssamu       12/10/97 - do not include s.h
    00050    nramakri    11/19/97 - add OCIExtract definitions
    00051    ssamu       11/14/97 - creation
    00052
    00053 */
    00054
    00055
    00056 #ifndef OCI1_ORACLE
    00057 # define OCI1_ORACLE
    00058
    00059 # ifndef ORATYPES
    00060 #  include <oratypes.h>
    00061 # endif
    00062
    00063
    00064 /*---------------------------------------------------------------------------
    00065                      PUBLIC TYPES AND CONSTANTS
    00066   ---------------------------------------------------------------------------*/
    00067
    00068 /* Constants required by the OCIFormat package. */
    00069
    00070 #define OCIFormatUb1(variable)      OCIFormatTUb1(),      &(variable)
    00071 #define OCIFormatUb2(variable)      OCIFormatTUb2(),      &(variable)
    00072 #define OCIFormatUb4(variable)      OCIFormatTUb4(),      &(variable)
    00073 #define OCIFormatUword(variable)    OCIFormatTUword(),    &(variable)
    00074 #define OCIFormatUbig_ora(variable) OCIFormatTUbig_ora(), &(variable)
    00075 #define OCIFormatSb1(variable)      OCIFormatTSb1(),      &(variable)
    00076 #define OCIFormatSb2(variable)      OCIFormatTSb2(),      &(variable)
    00077 #define OCIFormatSb4(variable)      OCIFormatTSb4(),      &(variable)
    00078 #define OCIFormatSword(variable)    OCIFormatTSword(),    &(variable)
    00079 #define OCIFormatSbig_ora(variable) OCIFormatTSbig_ora(), &(variable)
    00080 #define OCIFormatEb1(variable)      OCIFormatTEb1(),      &(variable)
    00081 #define OCIFormatEb2(variable)      OCIFormatTEb2(),      &(variable)
    00082 #define OCIFormatEb4(variable)      OCIFormatTEb4(),      &(variable)
    00083 #define OCIFormatEword(variable)    OCIFormatTEword(),    &(variable)
    00084 #define OCIFormatChar(variable)     OCIFormatTChar(),     &(variable)
    00085 #define OCIFormatText(variable)     OCIFormatTText(),      (variable)
    00086 #define OCIFormatDouble(variable)   OCIFormatTDouble(),   &(variable)
    00087 #define OCIFormatDvoid(variable)    OCIFormatTDvoid(),     (variable)
    00088 #define OCIFormatEnd                OCIFormatTEnd()
    00089
    00090 #define OCIFormatDP 6
    00091
    00092
    00093 /*----------------- Public Constants for OCIFile -------------------------*/
    00094
    00095 /* flags for open.*/
    00096 /* flags for mode */
    00097 #define OCI_FILE_READ_ONLY         1   /* open for read only */
    00098 #define OCI_FILE_WRITE_ONLY        2   /* open for write only */
    00099 #define OCI_FILE_READ_WRITE        3   /* open for read & write */
    00100 /* flags for create */
    00101 #define OCI_FILE_EXIST             0   /* the file should exist */
    00102 #define OCI_FILE_CREATE            1   /* create if the file doesn't exist */
    00103 #define OCI_FILE_EXCL              2   /* the file should not exist */
    00104 #define OCI_FILE_TRUNCATE          4   /* create if the file doesn't exist,
    00105                                           else truncate file the file to 0 */
    00106 #define OCI_FILE_APPEND            8   /* open the file in append mode */
    00107
    00108 /* flags for seek */
    00109 #define OCI_FILE_SEEK_BEGINNING    1  /* seek from the beginning of the file */
    00110 #define OCI_FILE_SEEK_CURRENT      2  /* seek from the current position */
    00111 #define OCI_FILE_SEEK_END          3  /* seek from the end of the file */
    00112
    00113 #define OCI_FILE_FORWARD     1     /* seek forward                */
    00114 #define OCI_FILE_BACKWARD    2     /* seek backward               */
    00115
    00116 /* file type */
    00117 #define   OCI_FILE_BIN      0    /* binary file */
    00118 #define   OCI_FILE_TEXT     1    /* text file */
    00119 #define   OCI_FILE_STDIN    2    /* standard i/p */
    00120 #define   OCI_FILE_STDOUT   3    /* standard o/p */
    00121 #define   OCI_FILE_STDERR   4    /* standard error */
    00122
    00123 /* Represents an open file */
    00124 typedef struct OCIFileObject OCIFileObject;
    00125
    00126
    00127 /*--------------------- OCI Thread Object Definitions------------------------*/
    00128
    00129 /* OCIThread Context */
    00130 typedef struct OCIThreadContext OCIThreadContext;
    00131
    00132 /* OCIThread Mutual Exclusion Lock */
    00133 typedef struct OCIThreadMutex   OCIThreadMutex;
    00134
    00135 /* OCIThread Key for Thread-Specific Data */
    00136 typedef struct OCIThreadKey     OCIThreadKey;
    00137
    00138 /* OCIThread Thread ID */
    00139 typedef struct OCIThreadId      OCIThreadId;
    00140
    00141 /* OCIThread Thread Handle */
    00142 typedef struct OCIThreadHandle  OCIThreadHandle;
    00143
    00144
    00145 /*-------------------- OCI Thread Callback Function Pointers ----------------*/
    00146
    00147 /* OCIThread Key Destructor Function Type */
    00148 typedef void (*OCIThreadKeyDestFunc)(/*_ dvoid * _*/);
    00149
    00150
    00151 /* Flags passed into OCIExtractFromXXX routines to direct processing         */
    00152 #define OCI_EXTRACT_CASE_SENSITIVE     0x1 /* matching is case sensitive     */
    00153 #define OCI_EXTRACT_UNIQUE_ABBREVS     0x2 /* unique abbreviations for keys
    00154                                               are allowed                    */
    00155 #define OCI_EXTRACT_APPEND_VALUES      0x4 /* if multiple values for a key
    00156                                               exist, this determines if the
    00157                                               new value should be appended
    00158                                               to (or replace) the current
    00159                                               list of values                 */
    00160
    00161 /* Constants passed into OCIExtractSetKey routine */
    00162 #define OCI_EXTRACT_MULTIPLE           0x8 /* key can accept multiple values */
    00163 #define OCI_EXTRACT_TYPE_BOOLEAN         1 /* key type is boolean            */
    00164 #define OCI_EXTRACT_TYPE_STRING          2 /* key type is string             */
    00165 #define OCI_EXTRACT_TYPE_INTEGER         3 /* key type is integer            */
    00166 #define OCI_EXTRACT_TYPE_OCINUM          4 /* key type is ocinum             */
    00167
    00168 /*---------------------------------------------------------------------------
    00169                      PRIVATE TYPES AND CONSTANTS
    00170   ---------------------------------------------------------------------------*/
    00171
    00172
    00173 /*---------------------------------------------------------------------------
    00174                            PUBLIC FUNCTIONS
    00175   ---------------------------------------------------------------------------*/
    00176
    00177
    00178 /*---------------------------------------------------------------------------
    00179                           PRIVATE FUNCTIONS
    00180   ---------------------------------------------------------------------------*/
    00181
    00182
    00183 #endif                                              /* OCI1_ORACLE */

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines