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.

OCCI Classes and Methods<br />

using Declaration<br />

The using declaration is used when the OCCI class name can be used in a<br />

compilation unit without conflict. To declare the OCCI class name in the<br />

oracle::occi namespace, you would use the following syntax:<br />

using oracle::occi::Connection;<br />

Connection now refers to oracle::occi::Connection, and myConnection<br />

can be declared as:<br />

Connection myConnection;<br />

using Directive<br />

The using directive is used when all OCCI class names can be used in a<br />

compilation unit without conflict. To declare all OCCI class names in the<br />

oracle::occi namespace, you would use the following syntax:<br />

using oracle::occi;<br />

Then, just as with the using declaration, the following declaration would now refer<br />

to the OCCI class Connection:<br />

Connection myConnection;<br />

8-4 <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!