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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Carrying Forward User Added Code<br />

class : public oracle::occi::PObject {<br />

protected:<br />

// OTT generated data members<br />

...<br />

7-66 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

OTT_USERCODE_START // user added code<br />

... // data member / method declaration /<br />

... // inline method definition<br />

OTT_USERCODE_END<br />

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

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

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

...<br />

OTT_USERCODE_START // user added code<br />

... // data member / method declaration /<br />

... // inline method definition<br />

OTT_USERCODE_END<br />

};<br />

OTT_USERCODE_START // user added code<br />

...<br />

OTT_USERCODE_END<br />

class : public oracle::occi::PObject {<br />

...<br />

...<br />

};<br />

OTT_USERCODE_START // user added code<br />

...<br />

OTT_USERCODE_END<br />

#endif // end of .h file<br />

2. User code added in .cpp file. OTT will support adding a new user defined<br />

method within OTT markers. The user block must be added at the beginning of<br />

the file, just after the includes and before the definition of OTT generated<br />

methods. If there are more than one OTT generated includes, user code can also

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

Saved successfully!

Ooh no, something went wrong!