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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Structure of the INTYPE File<br />

OTT Utility Reference<br />

The INTYPE and OUTTYPE files list the types translated by the OTT utility and<br />

provide all the information needed to determine how a type or attribute name is<br />

translated to a legal C or <strong>C++</strong> identifier. These files contain one or more type<br />

specifications. These files also may contain specifications of the following options:<br />

■ CASE<br />

■ CPPFILE<br />

■ HFILE<br />

■ INITFILE<br />

■ INITFUNC<br />

■ MAPFILE<br />

■ MAPFUNC<br />

If the CASE, INITFILE, INITFUNC, MAPFILE, or MAPFUNC options are present,<br />

then they must precede any type specifications. If these options appear both on the<br />

command line and in the INTYPE file, then the value on the command line is used.<br />

See Also: "Overview of the OUTTYPE File" on page 7-26 for an<br />

example of a simple user-defined INTYPE file and of the full<br />

OUTTYPE file that the OTT utility generates from it<br />

INTYPE File Type Specifications<br />

A type specification in the INTYPE file names an object datatype that is to be<br />

translated. The following is an example of a user-created INTYPE file:<br />

TYPE employee<br />

TRANSLATE SALARY$ AS salary<br />

DEPTNO AS department<br />

TYPE ADDRESS<br />

TYPE PURCHASE_ORDER AS p_o<br />

The structure of a type specification is as follows:<br />

TYPE type_name<br />

[GENERATE type_identifier]<br />

[AS type_identifier]<br />

[VERSION [=] version_string]<br />

[HFILE [=] hfile_name]<br />

[CPPFILE [=] cppfile_name]<br />

How to Use the Object Type Translator Utility 7-127

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

Saved successfully!

Ooh no, something went wrong!