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 />

The OTT utility then generates the following two header files, named tott95a.h<br />

and tott95b.h.<br />

The content of the tott95a.h file is as follows:<br />

#ifndef TOTT95A_ORACLE<br />

#define TOTT95A_ORACLE<br />

#ifndef OCI_ORACLE<br />

#include <br />

#endif<br />

typedef OCIRef px1_ref;<br />

struct px1<br />

{<br />

OCINumber col1;<br />

OCINumber col2;<br />

}<br />

typedef struct px1 px1;<br />

struct px1_ind<br />

{<br />

OCIInd _atomic;<br />

OCIInd col1;<br />

OCIInd col2;<br />

}<br />

typedef struct px1_ind px1_ind;<br />

#endif<br />

The content of the tott95b.h file is as follows:<br />

#ifndef TOTT95B_ORACLE<br />

#define TOTT95B_ORACLE<br />

#ifndef OCI_ORACLE<br />

#include <br />

#endif<br />

#ifndef TOTT95A_ORACLE<br />

#include "tott95a.h"<br />

#endif<br />

typedef OCIRef px3_ref;<br />

struct px3<br />

{<br />

struct px1 col1;<br />

};<br />

typedef struct px3 px3;<br />

struct px3_ind<br />

{<br />

OCIInd _atomic;<br />

7-130 <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!