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.

Carrying Forward User Added Code<br />

be added between OTT generated includes. User code added in any other part<br />

of a .cpp file will not be carried forward.<br />

The following code example demonstrates where user code can be added in a<br />

.cpp file:<br />

#ifndef OTT_USERCODE_START<br />

# define OTT_USERCODE_START<br />

#endif<br />

#ifndef OTT_USERCODE_END<br />

# define OTT_USERCODE_END<br />

#endif<br />

#ifndef ...<br />

# include " ... "<br />

#endif<br />

OTT_USERCODE_START // user added code<br />

...<br />

...<br />

OTT_USERCODE_END<br />

#ifndef ...<br />

# include " ... "<br />

#endif<br />

OTT_USERCODE_START // user added code<br />

...<br />

...<br />

OTT_USERCODE_END<br />

/*************************************************************/<br />

// generated method implementations for the ... object type.<br />

/*************************************************************/<br />

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

{<br />

return oracle::occi::PObject::operator new(size);<br />

}<br />

...<br />

// end of .cpp file<br />

How to Use the Object Type Translator Utility 7-67

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

Saved successfully!

Ooh no, something went wrong!