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.

INITFUNC=filename<br />

OTT Utility Reference<br />

INTYPE Parameter<br />

This parameter specifies the name of the file from which to read the list of object<br />

type specifications. The OTT utility translates each type in the list.<br />

INTYPE=filename<br />

INTYPE= may be omitted if USERID and INTYPE are the first two parameters, in<br />

that order, and USERID= is omitted. For example,<br />

OTT username/password filename...<br />

If the INTYPE parameter is not specified, all types in the user’s schema will be<br />

translated.<br />

The INTYPE file can be thought of as a makefile for type declarations. It lists the<br />

types for which C structure declarations or <strong>C++</strong> classes are needed. The format of<br />

the INTYPE file is described in "Structure of the INTYPE File" on page 7-127.<br />

If the filename specified for the INTYPE parameter on the command line does not<br />

include an extension, a platform-specific extension such as TYP or .typ is<br />

automatically added.<br />

See Also: "Structure of the INTYPE File" on page 7-127 for more<br />

information about the format of the INTYPE file<br />

MAPFILE Parameter<br />

For <strong>C++</strong> only. This parameter specifies the name of the mapping file (.cpp) and<br />

corresponding header file (.h) that is generated by the OTT utility. The .cpp file<br />

contains the implementation of the functions to register the mappings while the .h<br />

file contains the prototype for the function.<br />

This parameter is required for the generation of <strong>C++</strong>. If you specify CODE=CPP, then<br />

you must also specify a value for the MAPFILE parameter. Otherwise, the OTT<br />

utility generates an error.<br />

This parameter may be specified either on the command line or in the INTYPE file.<br />

MAPFILE=filename<br />

How to Use the Object Type Translator Utility 7-123

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

Saved successfully!

Ooh no, something went wrong!