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.

Overview of the OUTTYPE File<br />

OCCI_STD_NAMESPACE::vector< object_type * > the_table;<br />

oracle::occi::Date the_date;<br />

oracle::occi::Number the_num;<br />

oracle::occi::Bytes the_raw;<br />

public:<br />

};<br />

void *operator new(size_t size);<br />

void *operator new(size_t size, const oracle::occi::Connection * sess,<br />

const OCCI_STD_NAMESPACE::string& table);<br />

OCCI_STD_NAMESPACE::string getSQLTypeName() const;<br />

many_types();<br />

many_types(void *ctxOCCI_) : oracle::occi::PObject (ctxOCCI_) { };<br />

static void *readSQL(void *ctxOCCI_);<br />

virtual void readSQL(oracle::occi::AnyData& streamOCCI_);<br />

static void writeSQL(void *objOCCI_, void *ctxOCCI_);<br />

virtual void writeSQL(oracle::occi::AnyData& streamOCCI_);<br />

#endif<br />

For <strong>C++</strong>, when TRANSITIVE=TRUE, the OTT utility automatically translates any<br />

types that are used as attributes of a type being translated, including types that are<br />

only being accessed by a pointer or REF in an object type attribute. Even though<br />

only the many_types object was specified in the INTYPE file for the <strong>C++</strong> example,<br />

a class declaration was generated for all the object types, including the other_<br />

type object, which was only accessed by a REF in the many_types object.<br />

Overview of the OUTTYPE File<br />

The OUTTYPE file is named on the OTT command line. When the OTT utility<br />

generates a C or <strong>C++</strong> header file, it also writes the results of the translation into the<br />

OUTTYPE file. This file contains an entry for each of the translated types, including<br />

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