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.

Properties of OTT Markers<br />

Following bullets describe the properties of OTT markers support.<br />

Carrying Forward User Added Code<br />

1. User must use the command line option USE_MARKER=TRUE from the very<br />

first time OTT is invoked to generate a file.<br />

2. User should put the markers like another <strong>C++</strong> statement; marker will be<br />

defined by OTT in the generated file as follows when the command line option<br />

USE_MARKER=TRUE is used:<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 />

3. The markers, OTT_USERCODE_START and OTT_USERCODE_END, must be<br />

preceded and followed by white space.<br />

4. OTT will copy the text/code given within markers verbatim along with the<br />

markers while generating the code next time,<br />

User modified code:<br />

1 // --- modified generated code<br />

2 OTT_USERCODE_START<br />

3 // --- including "myfullname.h"<br />

4 #ifndef MYFULLNAME_ORACLE<br />

5 # include "myfullname.h"<br />

6 #endif<br />

7 OTT_USERCODE_END<br />

8 // --- end of code addition<br />

Carried forward code:<br />

1 OTT_USERCODE_START<br />

2 // --- including "myfullname.h"<br />

3 #ifndef MYFULLNAME_ORACLE<br />

4 # include "myfullname.h"<br />

5 #endif<br />

6 OTT_USERCODE_END<br />

In the preceeding example the 1st and 8th lines of the original code have not<br />

been carried forward.<br />

How to Use the Object Type Translator Utility 7-63

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

Saved successfully!

Ooh no, something went wrong!