10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OTT Utility Reference<br />

If CASE=OPPOSITE, then all uppercase letters are converted to lowercase, and all<br />

lowercase letters are converted to uppercase.<br />

CASE=[SAME|LOWER|UPPER|OPPOSITE]<br />

This parameter affects only those identifiers (attributes or types not explicitly listed)<br />

not mentioned in the INTYPE file. Case conversion takes place after a legal<br />

identifier has been generated.<br />

The case of the C structure identifier for a type specifically mentioned in the<br />

INTYPE file is the same as its case in the INTYPE file. For example, consider this line<br />

included in the INTYPE file:<br />

TYPE Worker<br />

The OTT utility generates the following C structure:<br />

struct Worker {...};<br />

On the other hand, consider an INTYPE file that includes the following line:<br />

TYPE wOrKeR<br />

The OTT utility generates this C structure, which follows the case specified in the<br />

INTYPE file:<br />

struct wOrKeR {...};<br />

Case insensitive SQL identifiers not mentioned in the INTYPE file will appear in<br />

uppercase if CASE=SAME, and in lowercase if CASE=OPPOSITE. A SQL identifier is<br />

case insensitive if it was not quoted when it was declared.<br />

CODE Parameter<br />

This parameter indicates which host language is to be output by the OTT utility.<br />

CODE=C is equivalent to CODE=ANSI_C. CODE=CPP must be specified for the OTT<br />

utility to generate <strong>C++</strong> code for OCCI applications.<br />

CODE=C|KR_C|ANSI_C|CPP<br />

This parameter is required, and there is no default value. You must specify one of<br />

the host languages.<br />

7-120 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!